have a question about the EA log writing system in MT4

 

If the C drive is full and MT4 can no longer write logs, but the EA keeps printing messages —

my question is: will MT4 still keep trying to write data to the log file even though it can’t, or will it skip the file writing but still show the Print messages in the Expert log window?

I tested this on MT5, and it automatically deletes old logs, which I really like.


 
Manu Tabtim:

If the C drive is full and MT4 can no longer write logs, but the EA keeps printing messages —

my question is: will MT4 still keep trying to write data to the log file even though it can’t, or will it skip the file writing but still show the Print messages in the Expert log window?

I tested this on MT5, and it automatically deletes old logs, which I really like.


even if mt4 did stop trying to write to the file, you dont have any free space for ticks or candles.
 
Michael Charles Schefe #:
even if mt4 did stop trying to write to the file, you dont have any free space for ticks or candles.
So in summary, it stops writing, right? It doesn’t keep trying to write.
Thanks for the new information — I just wanted to understand how it works
 
Manu Tabtim #:
So in summary, it stops writing, right? It doesn’t keep trying to write.
Thanks for the new information — I just wanted to understand how it works
huh? of course it will continue to attempt to write to your hard drive. Windows will also try to write to your hard drive when it runs out of physical memory, it will attempt to use free hard drive space. If there is none, as you show in your image, then, your system will freeze, shutdown, and possibly lose much of your settings upon a system restart. So i strongly urge you to clean some free space before that happens.
 

Note a tip made on another thread. sorry i dont have the link now.

and you have to close mt for this!

after closing mt, go to the MQ folder and find folders named Logs. you can delete these, but then, create a file with same name Logs. note that you may need to remove the extension txt when you create it.

then, right click on that file name "Logs", select properties and towards bottom of that is a "Attributes", with a tick box "Read Only". tick that and then click apply and Ok to close that window.

After that mt will stop saving logs. Just check your cpu usage every now and then, to just check that your cpu or harddive does increase in usage %. 

This tip is working on my system for 3 days without issue. windows taskmanager is still showing write attempts, but no freezes or constant reattempts to do the writes either.