Access violation exception
-
Hey guys, i was testing my program and i saw that sometimes it crashes with a access violation exception, but qt dosent tell me where it happens and windows only gives me this information. Is there any way to know where it can be happening?
@ Problem Event Name: APPCRASH
Application Name: cliente1.exe
Application Version: 0.0.0.0
Application Timestamp: 5215121b
Fault Module Name: cliente1.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5215121b
Exception Code: c0000005
Exception Offset: 00002299
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 3082
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789@ -
Hi and welcome to devnet,
Did you try running your program with a debugger ?
-
You better familiarize yourself with debuggers. Without a debugger, it will be very hard - if not impossible - to trace a crash back to the source.
First of all, you need to make a "debug" build (i.e., a binary with debugging symbols) of your application. And you need to link it against the "debug" version of Qt. Normal "release" binaries won't give you helpful stack trace...
Once you have a proper debug build, run it "inside" the debugger. As soon as the application crashes, the debugger should trigger a break and show you where (in the source code) it crashed, including a complete callstack of the thread that has crashed. Then you can check the specific code in detail.