Hi all,

     Thanks for the response,
     You said it right : "reset"  =  bad for user
      So what else can we do ??

       if we just close the forms and exit the application will it not
cause memory leak ?
      is it wise to put an if/else aroud EVERY MemPtrNew/MemHandleNew/etc..
that we do ?

Prashant Gupta





Aaron Ardiri <[EMAIL PROTECTED]> on 12/05/2000 09:23:46 AM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (bcc: Gupta Prashant-SWD-ITIL-UB/Itilmail)

Subject:  Re: Gracefull Exit !!




> State the nature of the terminal error and call ErrFatalDisplay (which
puts
> up that dialog with the reset button) Its not very graceful but it seems
> to be accepted practice for most Palm apps.

  maybe in the first days - but surely, "reset" = bad for user.
  i moved away from the ErrFatalDisplay... routines to give the
  user the re-assurance that everything will be a-ok and bring
  up a custom dialog of my own.

> However, your best method of handling terminal errors is to design your
app
> to avoid them when possible.  i.e. Test for the necessary(or guestimated)
> memory before entering memory intensive routines - don't allow entry if
> memory is too low, can't find the DB - generate it yourself but make sure
> your app can handle either 0 records or has a default record to generate.
> Now you should be able to handle terminal errors with the standard method
> because, hopefully they will almost never occur.

  you can check out how i do this in the Cube3D sources - which you can
  get here. i create a custom form called xmemForm.

    http://www.ardiri.com/palm/cube3D/

  i believe this issue should be mentioned somewhere in the design
  guidelines.. ErrFatalDisplay.. routines are great for debugging :)
  (in POSE)

  cheers

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


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







-- 
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