POL automatically calls FrmCloseAllForms() to unwind form stack, call all destructors and free used memory. Therefore you can simply remove this line of code. Just play with the tutorial or with any example. They all can be normally terminated from any place.
______________________________________________ Best regards, Maks Pyatkovskiy > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce-palm-dev- > [EMAIL PROTECTED] On Behalf Of htn > Sent: Wednesday, March 12, 2003 8:34 AM > To: Palm Developer Forum > Subject: Re: Help with global find service in POL > > > I finally found the problem. I had a ::FrmCloseAllForms( ) in > ExitInstance() function, it didn't occur to me that ExitInstance() would > be called. If this is the case, where would be a safe place for me to > call FrmCloseAllForms() before exiting my app? > > Thanks for your helps, > htn > > Maks Pyatkovskiy wrote: > > Can you send project archive with the problem to [EMAIL PROTECTED] > > > > ______________________________________________ > > > > Best regards, > > Maks Pyatkovskiy > > > > > > > >>-----Original Message----- > >>From: [EMAIL PROTECTED] > > > > [mailto:bounce-palm-dev- > > > >>[EMAIL PROTECTED] On Behalf Of htn > >>Sent: Wednesday, March 12, 2003 12:30 AM > >>To: Palm Developer Forum > >>Subject: Re: Help with global find service in POL > >> > >> > >> > >>Maks Pyatkovskiy wrote: > >> > >>>But the tutorial works. So, there is some difference between two > >>>projects... > >>>You have to check: > >>>a) project settings (especially expanded mode option, POL tutorial > >>>doesn't use expanded mode). > >> > >>no, I don't use expanded mode. > >> > >> > >>>b) location of particular files in segments. > >> > >>it's in segment 1 with POLD1.lib, MSL_C++_PalmOS_2i_Dbg.lib and > >>PalmOSRuntime_2i_A5.lib. > >> > >> > >>>c) source code (do you use some globals or call virtual functions > >> > > from > > > >>>that code?). > >> > >>Do you mean other functions in the file or just the FindLauch( ) > >>function. Below is my FindLauch function: > >> > >>Err CMyApp::FindLaunch( FindParamsPtr pFindParams ) > >>{ > >> return errNone; > >>} > >> > >>Using the debuger, I am certain than this function was invoked and > >>crashed the app after returning. > >> > >>htn > >> > >> > >>-- > >>For information on using the Palm Developer Forums, or to unsubscribe, > >>please see http://www.palmos.com/dev/support/forums/ > > > > > > > > > > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
