Windows crash using DLL
Windows 7 Qt 5.6.1 MSVC 15
I'm using QsLog as a dynamic lib, but cannot seem to make it work without crashing. I've now simplified my use case down to the bare minimum (basically the same as the Examples), and the app still crashes as soon as you log the first message.
Specifically, the first message is logged (both in the Debug output and to a File output), then the app crashes afterwards. Given that everything compiles, runs and these messages are sent, I assume I have imported the binaries and headers correctly.
Curiously this only happens when using the built binaries though - if I switch my .pro to include your .pri file, everything works perfectly.
You mentioned in your blog post of April 26th (http://blog.codeimproved.net/posts/qslog-2.html) that "One issue that's still open is a crash reported on Windows when using QsLog as DLL", is this the same issue?
Comments (2)
-
repo owner -
repo owner - changed status to closed
Unfortunately I didn't get any new information and I can't reproduce it.
- Log in to comment
Hi Daniel,
The bug referenced in the blog post is this one: https://bitbucket.org/codeimproved/qslog/issues/7/segfault-when-logger-enabled I wasn't able to reproduce it and closed it.
I will need some more information in order to figure out what's causing the crash in your case. First of all, can you run the program in a debugger and post the stack trace of the crash here?
Could you also post your bare minimum example?
Best, Raz