This is just plain weird. I have a thread in which I have included fstream and created an ofstream. I know the lines are being executed because I have set breakpoints and they get hit. But no file opening, and nothing writing?!!
TetClientSink.h:
#include "trackedWindow.h"
#include <fstream>
using namespace std;
... //other declarations
ofstream tetFile;
TetClientSink.cpp
CTetClientSink::CTetClientSink(CTrackedWindow *pTrackedWindow)
{
m_dwRef = 0;
m_pTrackedWindow = pTrackedWindow;
tetFile.open("eyeLog.out", ios::app);
tetFile << "I'm here!";
tetFile.flush();
}
Does this possibly have anything to do with the fact it's a thread? That's the one aspect of this code I don't feel I have a perfect understanding of.
Let me know if posting the fstream buffer contents before/after any of the tetFile code.
thanks
~Lykaios