Ask for help: exception at 0x6549960a (QtGuid4.dll)
Hello,
I compiled my Qt application with 4.5.0 rc-1 and had the following exception:
Unhandled exception at 0x6549960a (QtGuid4.dll) in myApp.exe: 0xC0000005: Access violation reading location 0xfeeeff9a.
I didn't have such problem with 4.4.3. I copied the call stack as following. Could anyone help me with this problem and what to do? Is it a bug in 4.5.0 rc-1?
thank you!
Code:
> QtGuid4.
dll!QMenu::findIdForAction(QAction * act
=0x02c5cc78
) Line
3152 + 0x8 C
++ QtGuid4.
dll!QMenuPrivate
::activateCausedStack(const QList<QPointer<QWidget> >
& causedStack
={...
},
QAction * action
=0x02c5cc78,
QAction::ActionEvent action_e
=Trigger,
bool self
=true) Line
960 + 0x13 C
++ QtGuid4.
dll!QMenuPrivate
::activateAction(QAction * action
=0x02c5cc78,
QAction::ActionEvent action_e
=Trigger,
bool self
=true) Line
1056 C
++ QtGuid4.
dll!QWidget::event(QEvent * event
=0x0012c03c
) Line
7512 C
++ QtGuid4.
dll!QMenu::event(QEvent * e
=0x0012c03c
) Line
2347 C
++ QtGuid4.
dll!QApplicationPrivate
::notify_helper(QObject * receiver
=0x02d803b8,
QEvent * e
=0x0012c03c
) Line
4051 + 0xf C
++ QtGuid4.
dll!QApplicationPrivate
::sendMouseEvent(QWidget * receiver
=0x02d803b8,
QMouseEvent * event
=0x0012c03c,
QWidget * alienWidget
=0x00000000,
QWidget * nativeWidget
=0x02d803b8,
QWidget * * buttonDown
=0x65b23c80, QPointer<QWidget>
& lastMouseReceiver
={...
}) Line
2913 + 0xe C
++ QtGuid4.dll!QETWidget::translateMouseEvent(const tagMSG & msg={...}) Line 3166 + 0x28 C++
QtGuid4.dll!QtWndProc(HWND__ * hwnd=0x00050bfa, unsigned int message=514, unsigned int wParam=0, long lParam=6029582) Line 1669 + 0xc C++
user32.dll!7e418734()
user32.dll!7e418816()
user32.dll!7e4189cd()
ntdll.dll!7c915d27()
ntdll.dll!7c915d27()
user32.dll!7e418a10()
QtCored4.
dll!QEventDispatcherWin32
::processEvents(QFlags<enum
QEventLoop::ProcessEventsFlag> flags
={...
}) Line
746 + 0x17 C
++ QtGuid4.
dll!QGuiEventDispatcherWin32
::processEvents(QFlags<enum
QEventLoop::ProcessEventsFlag> flags
={...
}) Line
1177 + 0x15 C
++ QtCored4.
dll!QEventLoop::processEvents(QFlags<enum
QEventLoop::ProcessEventsFlag> flags
={...
}) Line
145 C
++ QtCored4.
dll!QEventLoop::exec(QFlags<enum
QEventLoop::ProcessEventsFlag> flags
={...
}) Line
195 + 0x2d C
++ myApp.exe!main(int argc=2, char * * argv=0x02aa6d68) Line 182 + 0x6 C++
myApp.exe!WinMain(HINSTANCE__ * instance=0x00400000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x00141f07, int cmdShow=1) Line 133 + 0x12 C++
myApp.exe!WinMainCRTStartup() Line 390 + 0x39 C
kernel32.dll!7c817067()
ntdll.dll!7c915d27()
Re: Ask for help: exception at 0x6549960a (QtGuid4.dll)
It would be better to see the code with marked line where the error appears.
Re: Ask for help: exception at 0x6549960a (QtGuid4.dll)
The problem is that I don't know where the error happens in my code. From the track stack, it is from the QtGuid4.dll.
I have no idea where to start ...:(
Re: Ask for help: exception at 0x6549960a (QtGuid4.dll)
Hi richardander,
from line 26 in your post
Code:
myApp.exe!main(int argc=2, char * * argv=0x02aa6d68) Line 182 + 0x6 C++
I would guess that you are passing an argument to your programm. First of all I would try to not pass any arguments to the application and see what is happening.
argc => argument count
the number of arguments passed to the application from the command line. the first argument is always the executables name.
Then it would be helpfull if you could show us how you start your application, e.g.
Code:
myApp.exe firstArgument
Taurho