Re: Awkward Exiting

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Hari (Hari_at_discussions.microsoft.com)
Date: 01/08/05


Date: Sat, 8 Jan 2005 05:45:03 -0800

no. i am testing it only on device. as per your suggestion, i have tested it
with another application whcih has only a single form. no problems with that
application and it is exiting normally to the position where it has
started(File explorer window). I am testing in both ASUS & HP devices and
all my applications are written in vb.net.
i have tried with form1.close(), form1.dispose(), application.exit(), but no
change. 7 out of 10 times, it is CLOSING the File Explorer window. (:

Now i have tested with Emulator also. There also, the application closes
the File Explorer Window. I am using 13 forms, and each form has global
reference variable and i use the dispose method just before exit to destroy
these objects. could you please think about this?

regards,
hari

"Daniel Moth" wrote:

> Is this on an emulator? I cannot replicate this in the emulator and don't
> have a PPC here to test with. The only time I managed to close the app and
> file explorer was when I was tapped twice on the top right corner so the
> first time the app closed and the second tap went to explorer's X
>
> Does it happen with all CF apps or just with one in particular? Write the
> simplest CF app and try that to see if the behaviour is the same...
>
> If it only happens on the device post the details so if someone else has run
> in to it can help...
>
> Cannot find anything in archives either..closest match is this:
> http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/878588c5ed979b7b/9f704ddf03e880ce?q=file+explorer+closes&_done=%2Fgroup%2Fmicrosoft.public.dotnet.framework.compactframework%2Fsearch%3Fgroup%3Dmicrosoft.public.dotnet.framework.compactframework%26q%3Dfile+explorer+closes%26qt_g%3D1%26searchnow%3DSearch+this+group%26&_doneTitle=Back+to+Search&&d#9f704ddf03e880ce
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
>
> "Hari" <Hari@discussions.microsoft.com> wrote in message
> news:D6F573D6-C888-4C27-893A-CA5C4169471A@microsoft.com...
> > hi,
> > we can start an application by Start->Programs->FileExplorer->browse the
> > application & tap on it (for example). The same way i am starting my
> > application.
> >
> > Now we can check the Running Programs. Only the File Explorer & My
> > Application is running. But whenever i exit from my application(exiting
> > properly and nothing is displayed Running Programs List),sometimes the
> > FileExplorer window is also getting closed. This happens when we starts
> > the
> > application & exiting(closing) from it, continuously for six to seven
> > times.
> > i.e., open the application, close it -repeat the process for 6-7 times.
> >
> > The same thing i tested by opening & closing the Calculator program of
> > pocket pc(start-programs-file explorer-my device-windows-calc) using file
> > explorer window. (click on the calculator, close it, continue opening &
> > closing calculator for 6-7 times) but file explorer window is always
> > there
> > and it doesn,t get closed. that means my application has got some memory
> > leaks or something else which forces it close the file explorer window
> > also.
> > my application has no connection with closing other applications. still it
> > happens. (: i have checked for exceptions, but no exceptions also. for
> > removing certain references to forms other than the main form, i am using
> > the
> > dispose() method. is that the problem?
> >
> > kindly reply,
> > regards,
> > hari
> >
> > "Daniel Moth" wrote:
> >
> >> Not sure I understand what you are asking... If you go in
> >> Settings->Memory
> >> do you see your app? If yes, it was minimised rather than closed; to
> >> close
> >> it you need to set Form.MinimizeBox=false.
> >>
> >> If you mean something else please post a sample app describing what it
> >> does
> >> and what you expect it to do instead.
> >>
> >> Cheers
> >> Daniel
> >> --
> >> http://www.danielmoth.com/Blog/
> >>
> >>
> >> "Hari" <Hari@discussions.microsoft.com> wrote in message
> >> news:19F96229-8AA3-470D-8DF3-2472E4B44760@microsoft.com...
> >> > hi,
> >> > while i am exiting my application, the just previous menu (for example,
> >> > File
> >> > Explorer) is not displying and sometimes it displays only the Main
> >> > screen
> >> > of
> >> > the pocket pc and closes File Explorer.
> >> >
> >> > i will make it clear. For starting my application,
> >> > Start->Programs->File
> >> > Explorer->My Device->ProgramFiles->FolderName->Tap on the Application.
> >> > Suppose I am choosing this method for starting the application.
> >> > Whenever
> >> > I
> >> > exit my application, the file explorer is also closed sometimes and
> >> > sometimes
> >> > Start-Programs menu is displayed.
> >> > I am developing my application in visual studio 2003 and using vb.net.
> >> > I
> >> > have tried with Application.Exit() and also with Form.close(). No use.
> >> > What should i do to exit normally from the application?
> >> >
> >> > kindly reply,
> >> > regards,
> >> > hari
> >>
> >>
> >>
> >>
>
>
>
>