Awkward Exiting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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
 
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..._doneTitle=Back+to+Search&&d#9f704ddf03e880ce

Cheers
Daniel
 
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
 
So:

1. A simple CF app does *not* exhibit the problem on a device or the
emulator
2. This particular app exhibits the problem on both emulator and a couple of
devices

Without looking at the code I cannot point a generic finger at generic
places... Can you share the project? What pinvokes are you using, search for
all dllimport and declare.

Cheers
Daniel
 
Back
Top