tobimat80

Hi!

Based on the gps example from the sdk I build my own gps application. The problem is to quit the application. Application.Exit() doesn't work. Is there a way to figure out what resources have to be released THX

Tobias

EDIT: The problem seems that I'am hosting the wmplayer in my application but I don't know what resources to release. I tried dispose() and close() on the control but had no luck Sad


Re: .NET Compact Framework How to end application?

Ilya Tumanov

The only resource which would keep application in memory is running thread. So make sure you terminate them all or mark them as background. Also upgrade to NETCF V2 SP2, it has a fix for situation where application won't exit in case you're using call backs from native code on thred which was not created by NETCF (e.g. sound driver thread).






Re: .NET Compact Framework How to end application?

tobimat80

Well my problem is that it seems that there is no other thread than the main thread is running. If I remove the wmplayer control the application shuts down fine. I use the script generated AxWMPLib.cs and there is no other thread started.




Re: .NET Compact Framework How to end application?

Ilya Tumanov

How did you check for running threads Try using remote process viewer - and don't be surprised to find out you have, say, half a dozen threads running. Compare that before and after call to Application.Exit().

By the way, are you using finalziers anywhere Make sure they do not hang or your application will stuck. Also make sure you're running NETCF V2 SP2.