Program crashes in debugger before anything happens

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-05-11T22:05:49Z Indexed on 2010/05/11 22:24 UTC
Read the original article Hit count: 293

Filed under:
|
|

I'm building an application for Windows XP using the MinGW tool chain and it sometimes crashes unexpectedly. So, I'm trying to use a debugger (Gdb) but the program exits with code 03 before anything happens. In fact, all I see from GDB is:

[New thread 3184.0x7b8]
[New thread 3184.0xef8]

Program exited with code 03.

My suspicion is that there is some failed dynamic linking of a dependency (which are Qt, VTK, and ITK, all built with MinGW). However, this does not happen when I just run the program normally. Or if it happens, it appears to be intermittent and well after the program is launched and running. NOTE: I'm also using Cmake for cross compiling.

What should I do? What can I try?

© Stack Overflow or respective owner

Related posts about qt

Related posts about c++