PDA

View Full Version : debugging in Visual Studio



vonCZ
22nd November 2008, 13:44
When I run the release version of my application on my computer, it runs fine. On most other computers it also runs fine, but on some it crashes with the following error report:



Error signature:
AppName: dune.exe
AppVer: 0.0.0.0
ModName: qtqui4.dll
ModVer: 4.2.3.0
Offset: 00049d2f (something like this... but actually different w/my current app)


So I went back and looked at the debug version; when I "Start Debugging" in Visual Studio 2005 it crashes with the following error message:

Unhandled exception at 0x6505bdb5 (QtGuid4.dll) in dune.exe:
0xC0000005: Access violation reading location 0x464d6f63.

Unfortunately, it doesn't show me where in the code my problem is; instead the problem is shown to be here in qwidget.h:



inline Qt::WindowType QWidget::windowType() const
{ return static_cast<Qt::WindowType>(int(data->window_flags & Qt::WindowType_Mask)); }

I'm pretty sure the problem has to do with a pointer(s) in my application... but I'm not sure which. Is there a way to find this using Visual Studio's debugger?

jpn
23rd November 2008, 18:38
Check the call stack window.