PDA

View Full Version : Crash detection



^NyAw^
22nd December 2008, 12:05
Hi,

Is there anyway to force an application to execute a piece of code when it crashes?

Sometimes my application crash (as I have to solve the problem) I want to do some clean because it have altered some Database values and copied some files that have to be deleted.

Thanks,

caduel
22nd December 2008, 12:29
signal handlers...
e.g. see http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_21.html

spirit
22nd December 2008, 14:25
examine call stack and you could see when crash was occur.

^NyAw^
22nd December 2008, 15:53
Hi,



examine call stack and you could see when crash was occur.


Yes, but I want to execute a piece of code when a crash ocurrs.

Im using Qt 4.3.0 on Windows.

Thanks,

^NyAw^
23rd December 2008, 12:09
Hi,

Is the destructor being called?

Thanks,