View Full Version : Runtime error in qt

5th December 2011, 07:25
Hi I'm new to Qt. I've studied it for quite some time and I am developing a game right now. I have been successful in creating a puzzle. The problem is, a runtime error appears for some time.. the error appears as follows:

ASSERT: “d” in file
c:\iwmake\build_vs2008_opensource_________________ __padding____________
______\include\qtcore\../../src/corelib/tools/qscopedpointer.h, line 112

.. but after 10 builds all works fine.. I'm afraid that the error would still come up. So anyone, please.. help?

5th December 2011, 08:15
The message will be output in debug mode when you attempt to dereference a null QScopedPointer. The message will not be output if the program is built with QT_NO_DEBUG set (as it may be in release mode).

You need to inspect your code that is using QScopedPointer. If you are not using QScopedPointer directly then run the program in a debugger until it stops at this line and follow back along the back trace until find your code and the offending statement.