Hello
The problem im having is that the program crashes while writing to a file.
I have made a tool that generates code during the pre build step.
The code doing the writing looks like this:
#define WRITE_LINE( x ) file << x << "\n";
std::ofstream file( "GenClass.cpp" );
...
WRITE_LINE( "some text" << someVariable << "some more text" )
WRITE_LINE( "long line of text" )
The code is very simple.
And at the current state it dosnt write that much either.
It writes about 1000 lines of code.
It crashes when it tries to write regular text just like the second example of WRITE_LINE.
If for example the text im trying to write at the point of the crash is "void TestFunction()".
It only writes "void Tes".
If i change the text to "//void TestFunction()".
It only writes "//void T".
So it feels like it maxes out some sort of buffer.
Never run into this before, so not quite sure what to do.