Re: [go-nuts] annoing: runtime error: cgo argument has Go pointer to Go pointer

2020-01-31 Thread Andreas Otto
thanks to the Info, don't have profiled this overhead… It was just an assumtion. Am Donnerstag, 30. Januar 2020 18:12:50 UTC+1 schrieb Jake Montgomery: > > > > On Thursday, January 30, 2020 at 2:31:59 AM UTC-5, Andreas Otto wrote: >> >> >> >> Am Mittwoch, 29. Januar 2020 23:19:34 UTC+1 schrieb Br

Re: [go-nuts] annoing: runtime error: cgo argument has Go pointer to Go pointer

2020-01-30 Thread Jake Montgomery
On Thursday, January 30, 2020 at 2:31:59 AM UTC-5, Andreas Otto wrote: > > > > Am Mittwoch, 29. Januar 2020 23:19:34 UTC+1 schrieb Bruno Albuquerque: >> >> One way to work this around is to use https://github.com/mattn/go-pointer >> . >> >> >> thanks, but also use this kind of "*HASH based and ex

Re: [go-nuts] annoing: runtime error: cgo argument has Go pointer to Go pointer

2020-01-29 Thread Andreas Otto
Am Mittwoch, 29. Januar 2020 23:19:34 UTC+1 schrieb Bruno Albuquerque: > > One way to work this around is to use https://github.com/mattn/go-pointer. > > > thanks, but also use this kind of "*HASH based and export the hash handle*" solution. But I call this a "slow" solution, because of the *has

Re: [go-nuts] annoing: runtime error: cgo argument has Go pointer to Go pointer

2020-01-29 Thread Bruno Albuquerque
One way to work this around is to use https://github.com/mattn/go-pointer. On Wed, Jan 29, 2020 at 2:12 PM wrote: > Hi, > > I try to use a *C* library with *GO* and have a small problem passing a > *GO* pointer through *C* into a *GO* callback. > If I set: "*export GODEBUG=cgocheck=0*" everythin

[go-nuts] annoing: runtime error: cgo argument has Go pointer to Go pointer

2020-01-29 Thread aotto1968zwei
Hi, I try to use a *C* library with *GO* and have a small problem passing a *GO* pointer through *C* into a *GO* callback. If I set: "*export GODEBUG=cgocheck=0*" everything works fine but without I get the error from above Detail: I want to pass "*argv*" through *C* back to *GO*, the lifetime