Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: NewB Memory Leak ? Pin
Peter Molnar19-Nov-03 14:43
Peter Molnar19-Nov-03 14:43 
GeneralNeed Help Pin
Cory Renfrow18-Nov-03 14:18
Cory Renfrow18-Nov-03 14:18 
GeneralRe: Need Help Pin
David Crow18-Nov-03 14:26
David Crow18-Nov-03 14:26 
GeneralRe: Need Help Pin
Cory Renfrow18-Nov-03 14:40
Cory Renfrow18-Nov-03 14:40 
GeneralRe: Need Help Pin
David Crow19-Nov-03 2:25
David Crow19-Nov-03 2:25 
GeneralRe: Need Help Pin
Roger Allen19-Nov-03 2:27
Roger Allen19-Nov-03 2:27 
GeneralNested object serialization - probably a newbie question Pin
srev18-Nov-03 13:52
srev18-Nov-03 13:52 
GeneralRe: Nested object serialization - probably a newbie question Pin
Peter Molnar19-Nov-03 14:39
Peter Molnar19-Nov-03 14:39 
I suspect that you try to save and load different things, that 's why you get EOF errors.

What I mean is:
void CYourObject::Serialize( CArchive& ar )
{
    CObject::Serialize( ar );
     
    if( ar.IsStoring() )
        ar << m_nParam1 << m_nParam2;
    else
        ar >> m_nParam1 >> m_nParam2 >> m_nParam3;
 }

Storing should go fine with this object.
Even on loading the first two params, they are filled OK. The problem arises when the loading part of serialization expects a third parameter which does not exist in the serialized file, and EOF error is shown.

I think your complicated data structure triggers the same effect.
Check it again for storing and loading conformance including the number, sequence and type of variables.





Peter Molnar
GeneralCDataGrid Only Certain Colums are available! Pin
vancouver77718-Nov-03 13:43
vancouver77718-Nov-03 13:43 
Generaliptypes.h Pin
Member 57135818-Nov-03 12:51
Member 57135818-Nov-03 12:51 
GeneralRe: iptypes.h Pin
Christian Graus18-Nov-03 13:38
protectorChristian Graus18-Nov-03 13:38 
GeneralRe: iptypes.h Pin
Member 57135818-Nov-03 19:15
Member 57135818-Nov-03 19:15 
GeneralRe: iptypes.h Pin
Christian Graus19-Nov-03 10:24
protectorChristian Graus19-Nov-03 10:24 
GeneralRe: iptypes.h Pin
Member 57135819-Nov-03 21:06
Member 57135819-Nov-03 21:06 
Generallimited dynamic CStatics Pin
halblonious18-Nov-03 9:45
halblonious18-Nov-03 9:45 
GeneralRe: limited dynamic CStatics Pin
Christian Graus18-Nov-03 9:48
protectorChristian Graus18-Nov-03 9:48 
GeneralRe: limited dynamic CStatics Pin
halblonious19-Nov-03 4:15
halblonious19-Nov-03 4:15 
GeneralRe: limited dynamic CStatics Pin
Christian Graus19-Nov-03 10:16
protectorChristian Graus19-Nov-03 10:16 
GeneralRe: limited dynamic CStatics Pin
Peter Molnar19-Nov-03 14:20
Peter Molnar19-Nov-03 14:20 
GeneralRe: limited dynamic CStatics Pin
halblonious20-Nov-03 9:24
halblonious20-Nov-03 9:24 
GeneralRe: limited dynamic CStatics Pin
Peter Molnar20-Nov-03 11:02
Peter Molnar20-Nov-03 11:02 
QuestionProperty Sheet in a CDialogBar - possible? Pin
srev18-Nov-03 9:34
srev18-Nov-03 9:34 
AnswerRe: Property Sheet in a CDialogBar - possible? Pin
Peter Molnar18-Nov-03 12:53
Peter Molnar18-Nov-03 12:53 
GeneralRe: Property Sheet in a CDialogBar - possible? Pin
srev18-Nov-03 13:47
srev18-Nov-03 13:47 
GeneralFile read Pin
Anonymous18-Nov-03 8:42
Anonymous18-Nov-03 8:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.