CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Location
    Copenhagen, Denmark
    Posts
    6

    Serialization problem

    Hi all

    I try to serialize an ArrayList containing a lot of simple objects to a file. When the ArrayList has 20.000 elements the serialization works (but is VERY slow) and I can deserialize fast and without problems. When the ArrayList has 50.000 elements or more I get a System.StackOverflowException.
    I use Microsoft Visual C#.NET with .NET Framework 1.0 version 1.0.3705

    Any ideas?

    Kind regards
    Peter

  2. #2
    Join Date
    May 2003
    Location
    Germany
    Posts
    936
    Hi,

    I think the system need ressources to serialize your objects. And if there are to many object the ressources won't be enough. But in your Application you can cut your big ArrayList in a few little ArrayLists and serialize and if you deserialize you concat the ArrayLists to the one you need.
    I don't know wheather this is the best way, but I think it's a solution.

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