in article 43261@palm-dev-forum, Thomas Maeder at [EMAIL PROTECTED]
wrote on 3/23/01 12:24 AM:

> 
> Paul Nevai wrote:
>> 
>> I wonder if I am alone and if I am overdoing it when I use the
>> ErrFatalDisplayIf () stuff below.
> 
> As Aaaron suggested, I'd only display Fatal Dialogs in the debug versions
> of my apps. You could either surround the calls to ErrFatalDisplayIf with
> #ifndef NDEBUG / #endif or use a macro that expands to ErrFatalDisplayIf if
> NDEBUG isn't defined.

These error manager calls are macros already which are controlled by the
ERROR_CHECK_LEVEL compile-time variable.  If you're using pre-compiled
headers, in the PalmOS.pch file, you just uncomment a couple lines to
compile all these macros out of your app:

#include <BuildDefines.h>
#define ERROR_CHECK_LEVEL ERROR_CHECK_NONE

Mark Peters


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to