As a FYI for anyone else who may have this problem.

After doing some more reading/searching another solution is to not use cgo 
at all. 

By using syscall.NewLazyDLL and dynamically loading the function, then with 
the loaded function just use func.Call(). This completely skips cgo and 
thus all the checks. Though of course you have to becareful to not 
accidently pass a Go pointer to a Go pointer.

Phil

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to