D
Daniel
Hi all!
I have a game that seems to be running fine, but now that I want to
distribute this I would like to catch any unhandled exception, you
know the ones that just print a stack-trace to the console window. I
want to get that stack-trace to a file and pop-up a dialog to the user
informing them that something went very wrong and then close the
program.
Anyway I've read and looked on the net and there seems like there is
no good way to do this (am I right?)
At present I have written my own printstream that when it gets invoked
creates an exception and then counts the ammount of elements and write
the message to file, and when the countdown (the initial count done
only once) reaces zero it pops up a message and quits.
I of course install this as stdErr with the appropirate method calls
This feels like a rather ugly solution so I wonder if anyone has any
better ideas on how to handle this?
/Daniel
I have a game that seems to be running fine, but now that I want to
distribute this I would like to catch any unhandled exception, you
know the ones that just print a stack-trace to the console window. I
want to get that stack-trace to a file and pop-up a dialog to the user
informing them that something went very wrong and then close the
program.
Anyway I've read and looked on the net and there seems like there is
no good way to do this (am I right?)
At present I have written my own printstream that when it gets invoked
creates an exception and then counts the ammount of elements and write
the message to file, and when the countdown (the initial count done
only once) reaces zero it pops up a message and quits.
I of course install this as stdErr with the appropirate method calls
This feels like a rather ugly solution so I wonder if anyone has any
better ideas on how to handle this?
/Daniel