Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

How can I handle processor exceptions (segmentation violations, floating point exceptions, etc) to provide graceful termination of an application without crashing the system?

This may help you
https://developer.brewmp.com/forum/need-help-brewarm-restrictions
 
That being said, I was able to trap a divide by zero on my own the
standard way, however I'm not sure such code would be acceptable
for certification on BREW, since it would likely circumvent the standard
exception handling which probably safeguards the system against
various security issues. 
 

This may help you
https://developer.brewmp.com/forum/need-help-brewarm-restrictions
 
That being said, I was able to trap a divide by zero on my own the
standard way, however I'm not sure such code would be acceptable
for certification on BREW, since it would likely circumvent the standard
exception handling which probably safeguards the system against
various security issues. 
 

Thanks.  I realized when I posted this that it might be confused with C++ exceptions.  What I'm talking about here is catching segmentation violations (and other processor traps), thereby averting a system panic.
We're not executing on a handset device, this is an embedded M2M application.   It's going to be pretty hard to recover from a panic by pressing the '*' key    ;-)

Thanks.  I realized when I posted this that it might be confused with C++ exceptions.  What I'm talking about here is catching segmentation violations (and other processor traps), thereby averting a system panic.
We're not executing on a handset device, this is an embedded M2M application.   It's going to be pretty hard to recover from a panic by pressing the '*' key    ;-)