Crashing App

Okay, I have developed an application. It runs for around 20 seconds, and then crashes. Is there a small piece of code which I might (more than likely) be missing? Unfortunately, I cannot post my code.

Anything can be responsible for that…
There’s no way to even begin to speculate.

oh wait!
did you try:

#undefine _20K_MS_APP_CRASH?

I would use a debbuger to see where the program crashed. Examine the stack trace and then set a break point before the statement that causes the crash. Run to the brteak point and inspect the variables to see if there is something obviously wrong. Anyway you need to find out where your program is crashing to have a chance of finding out why it is crashing.