Home > Software engineering >  By cfile to open a TXT file, newspaper sharingviolation fault.
By cfile to open a TXT file, newspaper sharingviolation fault.

Time:09-19

As title, using cfile to open a TXT file, an error, the cfileexception m_cause given the code value is 11, meaning sharingviolation, through the resource monitor Windows 7, not found associated with the TXT file handle, is can't find which process is taking up this TXT file, why? Exit vc2010 to debug, but restart the machine, there is no problem, tell who is a great god?

CodePudding user response:

refer to the original poster ychg75 response:
, such as title, using cfile to open a TXT file, an error, the cfileexception m_cause given the code value is 11, meaning sharingviolation, through the resources monitor Windows 7, not found associated with the TXT file handle, or can't find which process is taking up this TXT file, why? Exit vc2010 to debug, but restart the machine, there is no problem, tell who is a great god?

Please give directions, thank you!

CodePudding user response:

Restart the machine there is no problem, it's your Open Open file is not normal Close? Ran out of the Open Close in time

CodePudding user response:

refer to the second floor zgl7903 response:
restart machine no problem, it's your Open to Open the file does not Close properly? Ran out of the Open Close in time

Previously did not open, it is the first time,

CodePudding user response:

refer to the second floor zgl7903 response:
restart machine no problem, it's your Open to Open the file does not Close properly? Ran out of the Open Close in time

But this file is another program ABC. Exe downloaded from the Internet, but the exe is closed at this time, and ABC. Exe downloaded files every day thousands of this kind of mistake can appear a couple of days time,
  • Related