-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/cgo: FreeLibrary a go c-shared dll make app crash #32497
Comments
You are not calling the Go SayHi function anywhere on the C side, that is probably why you don't see anything happen. You probably need to add something like |
/cc @ianlancetaylor |
dup #11100 |
I have this same problem. Golang based dll is used in installer app (on windows). When installer finishes, it releases all used libraries. Occasionally this causes panic in golang code (from the released library). In this case process exit code is changed and program ends with 0xC0000005 (reported by Windows as Integer value, so for example in .bat file errorlevel shows -1073741819). |
I'm also seeing this issue trying to use a golang dll I wrote in Visual Studio 2017. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as spam.
This comment was marked as spam.
Duplicate of #11100 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
dll.go:
dll.c
What did you expect to see?
What did you see instead?
after call FreeLibrary ,app crash ,but no error messagebox
The text was updated successfully, but these errors were encountered: