PDA

View Full Version : qt crashed!



erfan
3rd July 2012, 10:39
hi ;
i have 3 levels in my game that writewith qt ,i am using qgraphicsview and qgraphicsScene i write this 3 levels then i add this levels separately to the scene by calling
myscene.addItem(...) and it work ; (each scene contains some QPixmap ; ...)

but when i want to start from level 1 it errors:
i mean that when level1 finish i write with signal and slot that scene.clear() and add new level
but it errors?
SIGSEGV error?
please help me!

Lykurg
3rd July 2012, 11:01
Debug your application and send us the backtrace. Otherwise we can only guess.

amleto
3rd July 2012, 13:26
another 'whats wrong with my code' post that shows no code.

d_stranz
3rd July 2012, 18:27
SIGSEGV error?

This error almost always means one of several things: you are trying to access something using a bad pointer (one that is NULL, has not been initialized or has been freed already), you are trying to access an array with an invalid index, or something else you did has corrupted memory and overwritten memory with garbage.

So since you are the only one looking at your code right now, you will have to figure out for yourself which of these problems applies.