theres a couple of small things i see so far, not likely to crash though,
in Simulate() it says
PHP Code:
Event nextEvent; // type of the next event
Initialize();
MakeTrace(nextEvent);
nextEvent is not initialized before use, depending on which mode (and which compiler) you compile it, will depend on the contents of that variable, since its a stack and not a global. (non initialized globals are always guaranteed to be 0, local/stack are not)
also it should be fstream not fstream.h, you might be getting away with that on vc7/net i'm guessing.
need customer .h too and customer.cpp if there is one.