I am looking for any advice that can help to prevent the application from freezing (becoming unresponsive).
For debugging purposes while programming a strategy I write a lot of comments and other pieces of information to a text file using the command:
File.AppendAllText(FileWithPath, outTextNoLF);
Print("text");
I also installed a RAMdisk and use it to store the file on a very fast drive to minimize any delay that might stem from hardware issues.
Without the logging turned on my strategy runs fine and without freezing up NT7. Yet, as soon as I turn the logging on NT becomes unresponsive. I can see that my strategy writes data so it is not locked up or in an endless loop.
Is there any way to log data (maybe through a different function/command) to a text file that puts less strain on NT7? Are there any options that I may have to turn on (or off)?
Thanks in advance for any help!
NutFlush
Comment