DWORD CALLBACK TForm1::ThreadFunc(void* P)
success = Listen();
I have this code. The ThreadFunc is called right when the program starts up. The Log::LogWrite opens up an ofstream, and writes to the end of the file. Its not writing tho. I know the problem isn't with this function because it works every where else in my application except in the ThreadFunc or any LogWrites within the Listen function. I guess it might have something to do with my program trying to write to the log file, same time this thread is trying to write to the log file. How would I go about getting the logs to write without any major application slowdown. Thanks!