|
-
Sep 27th, 2006, 12:10 AM
#1
Thread Starter
Hyperactive Member
Application not exiting on Mobile Devices
Hi all,
I am actually developing an application for mobile devices using C# 2005 and the PDAs have windows mobile 5 running. During testing of the devices through active sync, when the application is exited it seems that there is still a process running on the device and the next time I try to deploy the application on the device for debugging VS says that there is a file which is already in use by another program something like :
"[Deployment and/or registration failed with error: ) 0x8973190e. Error writing file '%csidl_program_files%\[my path goes here]\tapilib.dll'. Error 0x80070020: The process cannot access the file because it is being used by another process.
".
In this case I need to warm boot the device to be able to deploy the application again.
I've tried using VS 2005 remote spy to check if there were any processes running on the device but could not find any which would indicate that a component is still running. Has anyone encountered this or anything know what could be the problem related to this issue please?
Last edited by vbud; Sep 27th, 2006 at 12:17 AM.
-
Sep 28th, 2006, 04:42 AM
#2
Fanatic Member
Re: Application not exiting on Mobile Devices
are you using application.exit when you closed the application?
forms run on their own thread so make sure that all forms are closed and disposed when you are finished with them
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
Sep 29th, 2006, 02:22 AM
#3
Thread Starter
Hyperactive Member
Re: Application not exiting on Mobile Devices
All forms are closed actually before doing application.exit but still seems to have this issue. Does this.Close() actually dispose the form or should the reference to the form be called to dispose?
-
Sep 29th, 2006, 04:54 AM
#4
Fanatic Member
Re: Application not exiting on Mobile Devices
well if you have it like this
Dim myform As new myform
myform.showdialog
myform.dispose
but i have noticed that if you reference some libraries such as opennetcf and use the batterymonitor, as i recently used, i had to actually dispose of it before the application.exit or else it wouldnt quit the application fully
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|