Hello there, I’ve been using Qt for a while and it is great, however I encountered a problem in the newer version.
When I start dragging and drop immediately – application just crashes with an error message “Access violation reading location”, I swear I checked everything twice, made a lot if/else for sanity checks, still nothing. (looked into sample code, documentation, everything)
It crashes before it gets a chance to call dropEvent() function, even though dragEnterEvent() and dragMoveEvent() being called.
What could it be? I have no debugging symbols and call stack is just helpless.
Drag and drop action happens between two QMainWindows that are owned by the main QMainWindow (dragging from QListWidget and dropping to QTableWidget that are inherited by custom classes).
It is crashing in both Debug and Release.
P.s. if I wait a little before dropping all seems to be working
!http://i.imgur.com/VJre463.png(Screen_of_the_call_stack)! (probably worthless) :(
http://i.imgur.com/IAdr8CW.png New, captured with application verifier on. (all options enabled except for “Low resource simulation”)
Looks like a similar issue: http://stackoverflow.com/questions/15050300/visual-studio-2010-access-violation-reading-location-debuging-not-much-info
Don’t know if that will help, but here is what verifier outputted.
First-chance exception at 0x664d1d9a in pleaseWork.exe: 0xC0000005: Access violation reading location 0x00000004.
===========================================================
VERIFIER STOP 0000000000000013: pid 0x6454: first chance access violation for current stack trace
0000000000000004 : Invalid address being accessed
00000000664D1D9A : Code performing invalid access
00000000001CEA00 : Exception record. Use .exr to display it.
00000000001CE510 : Context record. Use .cxr to display it.
===========================================================
This verifier stop is continuable.
After debugging it use 'go' to continue.
===========================================================
=======================================
VERIFIER STOP 00000013: pid 0x6454: First chance access violation for current stack trace.
00000004 : Invalid address causing the exception.
664D1D9A : Code address executing the invalid access.
002EB0A8 : Exception record.
002EB0F8 : Context record.
Thanks for any help!
—-Environment
Windows 7 ×64 SP1
Qt 5.0.0 (one that is provided with installer)
Visual Studio 2010 SP1
↧