Results 1 to 7 of 7

Thread: Error When Running project the second Time

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2003
    Location
    Portville NY
    Posts
    780

    Error When Running project the second Time

    I have a project that will run while I'm working on it only once. The second time I try to run it I get the following error.

    The operation could not be completed. The process cannot access the file

    Does anyone know what that error means and why I'd have to restart my computer every time I want to run the project a second time?
    "...Men will still say THIS was our finest hour"
    If a tree falls in the woods and no one is there to see it, do all the other trees make fun of it?

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Error When Running project the second Time

    Everytime you 'run' your project, VB will attempt to compile it. Its possible that when you close your application that file is not closing correctly, ie, its still running! You can check task manager to see if this is the case, and if so terminate it. Try this first and if it is the case you should work out why your application is not closing correctly.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2003
    Location
    Portville NY
    Posts
    780

    Re: Error When Running project the second Time

    I Think i've got it worked out actually. When I open it on another machine to work on it, the project compiles just fine.
    "...Men will still say THIS was our finest hour"
    If a tree falls in the woods and no one is there to see it, do all the other trees make fun of it?

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Error When Running project the second Time

    That doesn't exactly answer why it is wrong . App file read-only? No permissions, ie run as admin?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2003
    Location
    Portville NY
    Posts
    780

    Re: Error When Running project the second Time

    Thats true it doesn't. I think it may have something to do with not having serial ports on the machine in question.
    "...Men will still say THIS was our finest hour"
    If a tree falls in the woods and no one is there to see it, do all the other trees make fun of it?

  6. #6
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Error When Running project the second Time

    So it could be that your application is not closing due to a fault on shutdown code ....

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2003
    Location
    Portville NY
    Posts
    780

    Re: Error When Running project the second Time

    That could be. I need to learn how to program expected errors and not expected errors. Its been so long since I've done any VB(muchless vb.net). I'll have to find some tutorials on error handling
    "...Men will still say THIS was our finest hour"
    If a tree falls in the woods and no one is there to see it, do all the other trees make fun of it?

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