Hi,
This code produces First-chance exception warnings on its last pass while reading the contents of the file m_IniFileName into the CString variable strAptLine.
ie.
CArchive exception: endOfFile.
First-chance exception in Prog.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Is this an error? and could it cause the full prog to give ASSERT errors when compiling the 'release' version?
(The 'debug' compile runs fine)
Is there another way of writing the code without the warnings?
Cheers
This code produces First-chance exception warnings on its last pass while reading the contents of the file m_IniFileName into the CString variable strAptLine.
ie.
CArchive exception: endOfFile.
First-chance exception in Prog.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Code:
CFile IniFile;
CFileException Err;
if(!IniFile.Open(m_IniFileName,CFile::modeRead,&Err) )
{
CString command;
command.Format("Config File %s \ncould not be opened\nError no %i\n",m_IniFileName,Err.m_cause);
MessageBox(command);
return;
}
CArchive IniArch(&IniFile,CArchive::load);
CArchiveException IniExn;
while(IniArch.ReadString(strAptLine))
{
.....
}
IniArch.Close();
IniFile.Close();
Is this an error? and could it cause the full prog to give ASSERT errors when compiling the 'release' version?
(The 'debug' compile runs fine)
Is there another way of writing the code without the warnings?
Cheers