ERR_SOME_FILE_ERROR

 

Hello!

I have some EA, which in init() function creates one file and delete it in deinit() function. In start() function EA opens and close it.

The problem is that sometimes (don't understand why) file is not deleted and I get ERR_SOME_FILE_ERROR 4100.

Please, tell me, how to fix this problem.

Thanks

 
_beast_:

Hello!

I have some EA, which in init() function creates one file and delete it in deinit() function. In start() function EA opens and close it.

The problem is that sometimes (don't understand why) file is not deleted and I get ERR_SOME_FILE_ERROR 4100.

Maybe you have the file open at the time ?
 
No, the file is not opened at the time.
 
I hope your MetaTrader location is not in windows 7 /program files
 

Yes, it is.

So, should it not be there?

 
Then you will have file problems - UAC implemation in Windows 7 causes MetaTrader problems.
 
_beast_:

Yes, it is.

So, should it not be there?

Hi _beast_,

Try, like C:\My Other Program\<your MT 4 goes here> just anything outside Program Files.

Reason: