if I run hg612_stats.exe manually it crashes, is that expected?
fault module msvcrt.dll
No, it's completely unexpected!
It doesn't crash at this end when run manually (that's how I test things out).
Is the Ongoing logging (run via the every minute scheduled task working O.K?)
Some of the event/error logs are only updated if the program completes or exits in a controlled manner & some of them update 'on the fly'
In the main, the *.TXT files in the Scripts, Ongoing_Stats & Current_Stats folders update right up to the point where the program might crash.
Have you copied all the files from the zip into your Scripts folder?
They do rely on each other.
Could you please post relevant parts of the various logs for me to try to see where things are going wrong?
I should also note that if any of the event/error logs are open via programs such as Windows own
Notepad.exe, the programs are unable to write to them.
However, that should force a controlled exit rather than a program crash.
Free Programs such as
TextPad (the one I use) & I think the free
Notepad2 do allow open files to be updated though.
Even if HG612_stats.exe is already running on a scheduled task at the same time you try to run it manually, the manually run instance should exit cleanly, reporting an error such as
"*** Now in exit_2_instances as there are 2 instances of HG612_stats.exe running"