-
Notifications
You must be signed in to change notification settings - Fork 569
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
进程(调用Debug版版本库)退出时异常 #207
Comments
看不出什么有效信息 代码git hash是多少? |
ZLToolKit-master.zip |
采用Visual studio 2015,将ZLToolKit编译为动态库,进行调用动态库时出现上图异常。 |
这个异常是否与我的使用方法有关。我的使用方法:我在动态库sampled.dll中调用了静态库ZLToolKit,然后进程sampled.exe中调用了sampled.dll |
把zltoolkit编译成dll 建议还是c封装下比较好 因为c++的abi是不兼容的。 |
1 similar comment
把zltoolkit编译成dll 建议还是c封装下比较好 因为c++的abi是不兼容的。 |
了解了,谢谢
***@***.***
发件人: 夏楚
发送时间: 2024-01-28 19:42
收件人: ZLMediaKit/ZLToolKit
抄送: dyzyrax; Author
主题: Re: [ZLMediaKit/ZLToolKit] 进程(调用Debug版版本库)退出时异常 (Issue #207)
把zltoolkit编译成dll 建议还是c封装下比较好 因为c++的abi是不兼容的。
从你debug信息看 是ZLToolkit的socket被系统回收了或者被同进程代码关闭了 不得而知。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
我验证了,封装为C动态库也不行,进程销毁时异常,问题原因应该是ZLToolKit内部定义的大量全局变量
***@***.***
发件人: ***@***.***
发送时间: 2024-01-29 16:35
收件人: ZLMediaKit/ZLToolKit; ZLMediaKit/ZLToolKit
抄送: ***@***.***; Author
主题: Re: Re: [ZLMediaKit/ZLToolKit] 进程(调用Debug版版本库)退出时异常 (Issue #207)
了解了,谢谢
***@***.***
发件人: 夏楚
发送时间: 2024-01-28 19:42
收件人: ZLMediaKit/ZLToolKit
抄送: dyzyrax; Author
主题: Re: [ZLMediaKit/ZLToolKit] 进程(调用Debug版版本库)退出时异常 (Issue #207)
把zltoolkit编译成dll 建议还是c封装下比较好 因为c++的abi是不兼容的。
从你debug信息看 是ZLToolkit的socket被系统回收了或者被同进程代码关闭了 不得而知。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
我尝试将test_tcpClient.cpp中的main函数改名并已C接口导出,运行正常,进程销毁时也存在异常。我分享下问题复现方式: ZLToolKitDLL.zip
③ 构建Visual Studio 2015 64位工程,编译测试程序ZLToolKitDLL_test,程序运行后,按‘esc’或'q'键退出,退出过程中就会报异常 |
The text was updated successfully, but these errors were encountered: