Results 1 to 4 of 4

Thread: Application not exiting on Mobile Devices

  1. #1

    Thread Starter
    Hyperactive Member vbud's Avatar
    Join Date
    Jan 2002
    Location
    Mru 20 17S, 57 33E Goal: Get out of the BOX Status: In The Shadows!!! Target Posts: 3,000,000,000
    Posts
    378

    Question 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.
    >!v!<
    Free your mind, stop thinking
    http://inspirone.blogspot.com

    Please rate this post if it helped you

  2. #2
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    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

  3. #3

    Thread Starter
    Hyperactive Member vbud's Avatar
    Join Date
    Jan 2002
    Location
    Mru 20 17S, 57 33E Goal: Get out of the BOX Status: In The Shadows!!! Target Posts: 3,000,000,000
    Posts
    378

    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?
    >!v!<
    Free your mind, stop thinking
    http://inspirone.blogspot.com

    Please rate this post if it helped you

  4. #4
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    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
  •  



Click Here to Expand Forum to Full Width