Non je n'ai aucun paramètre à passer, c'est une application MFC.
Pour le code c'est vraiment trop compliqué, en plus je ne crois pas que c'est cette fonction en question qui est la cause du pb, c'est les appels aux fonction précedentes, pourtant j'ai essayé de nettoyer avant cet appel.
De toute façon si ça peut t aider, voici la fonction qui foire tout:
Debug(std::string text)
{
SE_Logs * newlog = new SE_Logs(_T("DBUG" ),CString(text.c_str()),CTime::GetCurrentTime()) ;
logs.push_back(*newlog);
Logfile = GetFile(this->GetPathName(),CFile::modeReadWrite|CFile::shareDenyNone ,NULL);
if(Logfile == NULL) return OK_SE;
Logfile->SeekToEnd();
CString rString;
newlog->FormatLogItem(rString);
Logfile->Write(rString,rString.GetLength());
Logfile->Flush();
Logfile->Close();
UpdateAllViews(NULL, ID_ADD_LOG, (CObject*) newlog) ;
delete newlog;
return (se_code_t) OK_SE;
}