Original Post
i set up a logging class (outputs formatted text to specifed text file) like this...
when i compile and run this thing under MS VC6, i get three (3) "starts" at the end of file.
but when i compile it under devc++ (g++) i get five (5) starts...
shouldn''t there be only one? what''s going on?
Abnormal behavior of abnormal brain makes me normal...
// header guard
class axpLogger
{
axpLogger(char* filename, bool switch);
~axpLogger();
void Out(char* fmtlist,...);
};
// constructor
...
// destructor
axpLogger::~axpLogger()
{
Out("* ");
}
void axpLogger::Out(char* fmt_list,...)
{
// open file
// parse through formmating list
// write to file
// close file
}
static axpLogger gLog("text.log",true);
// end header guard