Debug error !!!
-
Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...
B!Z
-
Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...
B!Z
Sounds like your application doesn't exit in an appropriate fashion. We might be able to help if you provide some sourcecode. -Larantz-
for those about to code, we salute you
http://www.itverket.no -
Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...
B!Z
check the task manager if it is executing is it could be a virus or an anti virus application .
It is Good to be Important but! it is more Important to be Good
-
Sounds like your application doesn't exit in an appropriate fashion. We might be able to help if you provide some sourcecode. -Larantz-
for those about to code, we salute you
http://www.itverket.noLarantz wrote:
We might be able to help if you provide some sourcecode.
What source code would you suggest in this particular case?
Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website
-
Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...
B!Z
If your app is running, the EXE file is locked and a new build will fail. Most probable cause is you create some thread that does not finish, and was not declared a background thread. Background threads don't prevent an app from exiting, foreground threads do. See Thread.IsBackground :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Larantz wrote:
We might be able to help if you provide some sourcecode.
What source code would you suggest in this particular case?
Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website
I see your point - as he doesn't know where it's happening and it might be a large application. Though he could show us exitpoint of application, cleanups, anything related to starting/stopping threads perhaps. :) -Larantz-
for those about to code, we salute you
http://www.itverket.noPlease refer to the Forum Guidelines for appropriate posting.
-
If your app is running, the EXE file is locked and a new build will fail. Most probable cause is you create some thread that does not finish, and was not declared a background thread. Background threads don't prevent an app from exiting, foreground threads do. See Thread.IsBackground :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google