|
-
Sep 22nd, 2010, 09:35 AM
#1
Thread Starter
Fanatic Member
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?
-
Sep 22nd, 2010, 11:13 AM
#2
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.
-
Sep 24th, 2010, 09:02 AM
#3
Thread Starter
Fanatic Member
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?
-
Sep 24th, 2010, 09:06 AM
#4
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?
-
Sep 24th, 2010, 09:08 AM
#5
Thread Starter
Fanatic Member
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?
-
Sep 24th, 2010, 09:14 AM
#6
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 ....
-
Sep 24th, 2010, 09:22 AM
#7
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|