[go-nuts] bug or missbevae between GO and C -> GO crash

2020-02-15 Thread aotto1968zwei
Hi I have a C test file using a "special" operator "&a->obj" to access an embedded class just starting at begin. #include #include struct base { int b; }; struct A { struct base obj; int a; }; void method_base (struct base* hdl, int val)

[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