Crashing .Net CF?

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

Guest

I'm writing an app on .Net CF on Smartphone 2003, and I get spurious
Form.Closing events firing. The only place I close the app is from one of
my menu items, but that never gets hit.

It seems to happen sometimes when I'm running other apps, or when it comes
out of suspension.

Has anyone seen this before?

Thanks
Jay
 
Possibly...

Will it close apps by sending WM_CLOSE events, or will it just kill the
process directly? I would think it would be the latter. Is there a way for
me to detect this?

I don't think I'm running 32 processes - I'm barely running any apps at all.
 
It should send WM_CLOSE, which you should be able to trap in an OnClose
event handler. Even though you don't have any other apps running, the phone
may have other processes going.

--
Ginny Caughey
..Net Compact Framework MVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups
 
So this happens to other apps too, not just mine, right? (like, Smartphone
will occassionally close different apps?)

It's OK for me to ignore the WM_CLOSE if I'm in the middle of doing
something, right? :)

(so far I've been ignoring it and not letting it close)
 
JO,

I don't think it's a good idea to just ignore WM_CLOSE requests. Is there
some way to construct your app so it can save the state of what it's doing
and start back up again at that point later?

--
Ginny Caughey
..Net Compact Framework MVP

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Back
Top