[go-nuts] Re: Freeing memory of a cgo library

2018-05-26 Thread Liron Levy
Hey Jake, Yes, i will probably go with the first option :) feel a bit massy but it is probably the better way to go... Plus in my case probably the only way hahaha. Thanks a lot for helping. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To u

[go-nuts] Re: Freeing memory of a cgo library

2018-05-25 Thread Liron Levy
Gotcha :) Thanks for the info, guess i will have to find a way around it then. At least i now know there is no real way to do what i wanted so that close this door :) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

[go-nuts] Re: Freeing memory of a cgo library

2018-05-25 Thread Liron Levy
Well it is kinda reoated as im in this mass because of go :) Anyway, is there anyway to use cgo with msvc? I actually run the cgo command from msvc cmd assuming the c part will be compiled with msvc. In addition as far as i know you can actually do that with visual studio if you put the /md (mu

[go-nuts] Re: Freeing memory of a cgo library

2018-05-25 Thread Liron Levy
Hey Jake, First if all thanks for the willing to help. Cgo is the built-in tool in go of building c libraries (see: https://golang.org/cmd/cgo/) What I basically do is that I have a go code, which i build into c library (dll), i.e, i insert the go code onto the cgo mechine then get .h and .dll

[go-nuts] Freeing memory of a cgo library

2018-05-24 Thread Liron Levy
Hey guys, I'm in a bit of a mass, I can not see how I'm getting out of... What do I got: * A library I built using cgo. * A cpp app using this library (dll). What do I do: I try to free memory I have allocated in the cgo library in the cpp app. What Tools do I use: To build the library (dll) I u