c# - error "unable to copy file because it is being used by another process -


i use windowsform application using c# language, have many forms, , when want traverse 1 another, use this.hide();

when use method, receive shown error,

i know solution end process using windows task manager, question is there way can use travel between forms without leading error?

 error  9   unable copy file "obj\x86\debug\windowsformsapplication1.exe" "bin\debug\windowsformsapplication1.exe". process cannot access file 'bin\debug\windowsformsapplication1.exe' because being used process.  c:\windows\microsoft.net\framework\v4.0.30319\microsoft.common.targets  2868 

although hide() forms, still remain part of process. if don't close every form properly, process remain running , cannot recompile project , have kill process using taskmanager.
visual studio tries rewrite executable , if executable runs process, windows refuse write .exe.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -