.NET CF: Open new form: old disappears...

K

Kenny Rymes

Hello

I am creating an application which is zipping some files. For the zipping
process I am open a new Form with .ShowDialog...

The zip process is about 5 Minutes. When I then leave the PPC and it is
turning off and when I then turn it back on and close the Zip Form, the
original first form has disappeard...

What's happening? Is it possible that .NET CF thinks every form is an
application and is closing inactive forms?!

Thanks

kenny
 
K

Kenny Rymes

Disappeared... unfortunately...

If I restart the application it's really restarting, not just bringing it
back to the front...

It's only happening if the suspend Timeout turns off the PocketPC... Seems
like WM sends a WM_Close when I turn on the PPC again. I have also 2 entries
in the Application list for my application... for every open form...
 
L

Lao K

Windows CE sends a WM_HIBERNATE when it detects low-memory situation,
so probably CLR did something upon receiving the message. Not sure
whether this is the reason, but you can check out by adding an event
handler:
Microsoft.WindowsCE.Forms.MobileDevice.Hibernate += new
EventHandler(XXXXXXXXXX);

One thing I do not understand is: If your Zip form is a modal dialog to
your application's main form, why you could still see the zip form when
you turned the device back on, supposedly the main form was already
closed at that time?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top