Hey Nerseus, thanks for your reply !
I am using the object further down, so I guess its not a compiler issue.
the relevant function is:
void txMgr::AddLogEntry(String *i_logEntry, Char i_warnning[], Char i_error[])
{
String *line = DateTime::Now.ToString(L"dd/MM/yyyy HH:mm:ss", DateTimeFormatInfo::InvariantInfo);
line = line->Concat(i_logEntry);
if(line->Length > 255)
line = line->Substring(0,255);
m_logFile->WriteLine(line);
m_logFile->Flush();
}
The strange thing is that on my log file (m_logFile) on some cases I do see the date prefix and on other cases I dont (only the i_logEntry).
On debugging I see that nothing comes back from DateTime::Now.ToString() even though I do see the Now object (when doing "DateTime now = DateTime::Now") . Maybe there is a problem with the ToString ? I have no idea ...