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
Post a Comment