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

\samples\checklistbox\ 无法运行,报错:exit status 0xc000041d #219

Open
magainic opened this issue Dec 24, 2024 · 3 comments
Open

Comments

@magainic
Copy link

go run main.go
Library Version: 2.2.3
exit status 0xc000041d

@ying32
Copy link
Owner

ying32 commented Dec 25, 2024

错误信息太少,个人猜测:
大概率是因为dll动态基址问题,可以用 go build -buildmode=exe测试下。

@magainic
Copy link
Author

复现方法:
1、Go语言版本:最新的1.24.4
2、用 go build -tags tempdll -buildmode=exe 构建成功,而且执行exe会成功。
3、在 \samples\checklistbox\main.go 的import中添加 _ "github.com/mattn/go-sqlite3"。
4、用 go build -tags tempdll -buildmode=exe 构建成功,但是执行exe会闪退。

run.bat

go mod init testapp
go mod tidy
go build -tags tempdll -buildmode=exe
testapp
pause

@ying32
Copy link
Owner

ying32 commented Dec 27, 2024

最新版本Go1.23.4,最新go-sqlite3, 使用-tag tempdll,没有何问题
image

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

2 participants