CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Join Date
    Mar 2006
    Posts
    38

    Re: Serializtion problem in C#

    nelo
    the problem is solved but i don't know why
    code you pls explain why this is the solution for my issue

  2. #17
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Serializtion problem in C#

    You should mark your events as [field: NonSerialized]. If you think about it, it makes sense. Your events are basically lists of delegates, which are pointers to functions of other objects. When sending around serialized data, those objects probably won't even exist, which causes problems . Your main form class was listening to one of those events, and it is not serializable.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured