I'm using serialization to save an object to a file. Here's the method:
The object is saved with no problem into the required file. However, when I try to open it, i get a fatal error message. I began debugging it to trace it to the exact line, but the compiler compiles comfortably upto the line just before the cArch1.Close() line and exits the method. It then proceed to this snippet from a "Wincore.cpp":
void Table :: Serialize(CArchive &cArch1)
cArch1 << csName << nSerialNumber << bCreated;
cArch1 >> csName >> nSerialNumber >> bCreated;
What is happening? Why is the saving happening but the loading not happening?
lResult = AfxProcessWndProcException(e, &pThreadState->m_lastSentMsg);
TRACE(traceAppMsg, 0, "Warning: Uncaught exception in WindowProc (returning %ld).\n",