|
-
December 18th, 2003, 06:11 AM
#1
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
-
December 18th, 2003, 06:52 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|