Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am serialising array object using soap formatter.But while serialising it gives 'OutOfMemoryException'. Can anybody tell me what is maximum size of object we can serialise using soap formatter.

Thanx
Posted
Comments
Keith Barrow 26-Apr-12 9:06am    
Can you post some code please and describe what you are doing.
It is unlikely that the formatter is at fault: whilst there are upper limits to the number of items in a list and [I think] an absolute upper message size, neither are large enough to cause the OutOfMemoryException. It is more likely that the code has an infinite loop somewhere, or you are getting too much data.
sanketdeshmukh1989 27-Apr-12 1:35am    
yes I am getting large data.i am retrieving user information from sql table of large number of users.some users might have exchange service assigned.After retriving ,it is giving outofmemoryexception at the time of serialise().

1 solution

What kind of objects are you serializing?
Did you implement ISerializable on those objects yourself?
Do these objects reference each other? (this could cause endless recursive object serialization - until you run out of memory)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900