Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cl.GetPlatformIDs panic: runtime error: cgo argument has Go pointer to Go pointer #6

Open
notnot opened this issue Oct 29, 2017 · 0 comments

Comments

@notnot
Copy link

notnot commented Oct 29, 2017

Go1.8
I can get the dreaded 'panic: runtime error: cgo argument has Go pointer to Go pointer' in
cl.GetPlatformIDs() when i make the cl.PlatformID argument a non-local variable. Same for cl.DeviceId in cl.GetDeviceIDs()...
Things seem to work fine if those variables are local, like in the provided sample code. It is a mystery to me, because this panic comes and goes, depending on code changes i make, and thus maybe the
actual addresses where the cl.PlatformID and cl.DeviceId are stored?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant