What is going wrong when Visual Studio tells me “xcopy exited with code 4”

后端 未结 16 2081
北荒
北荒 2020-12-05 01:33

I\'m not very familiar with post-build events, so I\'m a little confused as to what\'s going wrong with my program. When compiling in visual studio 2010, I get the following

16条回答
  •  [愿得一人]
    2020-12-05 02:09

    I ran across this issue, so I ran the xcopy command from the command line and it said:

    File creation error - The requested operation cannot be performed on a file with
     a user-mapped section open.
    

    It was actually Visual Studio holding onto something. I just restarted Visual Studio and it worked.

提交回复
热议问题