-
Notifications
You must be signed in to change notification settings - Fork 390
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
How to build a plog in a dynamic link library #292
Comments
Could you post the code you've used? |
Since I wouldn't use it in a dynamic link library, I tried to create a console program and use it just like I would in the main function, but it crashed my program directly |
@EricYoung121 Thanks for the code. I'll try it tomorrow when I have access to a Windows machine. Meanwhile it would be helpful if you post a crash stack trace. |
@EricYoung121 I can see a couple of variable life-time issues:
Also be careful with
|
I used a dynamic link library to create a console to record the data generated by the dll, but it could not output the data after I initialized it, or the program crashed after I called PLOG_INFO. Is there any way to create a console using a dynamic link library and call it?
The text was updated successfully, but these errors were encountered: