08-25-2004, 01:38 PM
Retired BBF Moderator
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Post Thanks: 1
Thanked 0 Times in 0 Posts
Although I am familiar with programming many other platforms (I have been programming for 19 years), I haven't made software for BlackBerry yet, but let me try to provide a few leads:
(1) Possibility One.
From certain platforms I believe you cannot display messages during certain kinds exceptions, especially operating-system-related exceptions. To solve this, you may have to set a variable flag that another handler checks and display the message in there instead. This may not apply to Blackberry, but I should mention this.
(2) Possibility Two
Another thing is that your exception handler is not even being executed at all. You will need to debug this. (Exception debugging is a toughie, inconsistent behaviour on different platforms too)
(3) Possibility Three
Displaying not updating before the crash, or that your alert message is non-blocking (i.e. does not pause all application threads when the message is displayed -- your message could be pre-empted if your application exits before the 'OK' is clicked on). I am not sure if that particular alert message is blocking (as in fully application modal, in Windows-ese programming terminology)
(4) Possibility Four
Look for ther source-code-available applications like those I listed, and study how this particular exception handling is done. Reverse engineer the technique into your software if allowed to do so. (i.e. open source applications are a good learning tool -- see the other links in this forum -- though you will have to rewrite the code on your own for proprietary use)