Is it possible to make it so when my program crashes it produces a crash log? I've seen some C# programs do this. Basically, a stack dump showing line numbers of bad code (ex: in event of going past the end of an array, division by 0 etc).