Sounds like your form event handler function is doing something bad when
it gets the frmCloseEvent. Try running the app under the debugger, with
a breakpoint set on the form event handler case for this event, and then
step through the code that's executed when you exit the app.

Most likely, your app is trying to close the serial port twice, or free
the same memory block twice, or access a memory block associated with
the serial port after you've closed the port.


> Hi,
>   I've write an application for the Palm III, using CW5.
>   But, when I quit the application with the "application button", I
>   have an error : "The current application has just read directly from an
> unallocated
>   chunck of memory" and with the debugger, I have only this :
>             0x10CD43BA( __Startup__ )
>                 0x10C0FA6C( SysAppStartup )
>                 0x10C4E4CA( UIReset )
>                 0x10C529AC( WinEraseWindow )
>                 0x10C53C58( WinEraseRectangle )
>                 0x10C53BCE( DrawRectangle )
>                 0x10C42DD2( ScrRectangleRoutine )
>
>
>   I don't understand because my StopApplication is very easy
>   static void StopApplication(void) {
>          serialClosePort() ;
>          FrmCloseAllForms();
>   }
>
> can anyone help me ?
>
>
--

  John Schettino - http://members.tripod.com/schettino/
  Palm OS Programming For Dummies, CORBA For Dummies, AppleScript
Applications, and more.


Reply via email to