Cortex won't start. Windows Application logs shows System.IO.IOException

@galakanokis ran into an issue where Cortex wouldn’t launch on a system where he had just installed it. There was not error message that would pop up, but in the Application section of the Windows Logs it showed this cryptic error:

Application: Cortex.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException
Stack:
    at System.IO.__Error.WinIOError(Int32, System.String)
    at System.IO.FileStream.WriteCore(Byte[], Int32, Int32)
    at System.IO.FileStream.FlushWrite(Boolean)
    at System.IO.FileStream.Flush(Boolean)
    at System.Diagnostics.TextWriterTraceListener.Flush()
    at System.Diagnostics.TraceSource.Flush()
    at MtiFilm.Core.Extensions.LogMessage(System.Diagnostics.TraceEventType, System.String, Int32, Int32)
    at CohogGui.App.Main()

Turns out that the c:\temp\myListener.log file had grown to over 100G from running Convey over the years which uses the same underlying logging system.

After deleting all the files in c:\tmp and c:\temp the application launched successfully. We also ran disk cleanup on the c:\ drive and removed all temporary files, as I have seen that cause issues for some processes in the past, though it didn’t have anything to do with this particular issue.