Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / February 2005

Tip: Looking for answers? Try searching our database.

OutOfMemoryException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe - 27 Feb 2005 21:34 GMT
I'm trying to return a DataTable with 146k rows * 41 columns. Returning
smaller sets works but the larger ones throw this exception. I saw there was
a bug in 1.0 sp 1 &2 but I thought it was fixed by now. Are there any
suggestions on what could be the cause?

The remoting object is being hosted by IIS and the machine has 2 gigs of
physical ram. w3wp.exe shows a max usage of 503 megs of ram.
Alexander Shirshov - 28 Feb 2005 02:47 GMT
Joe,

Can you save the DataSet to a file using WriteXml and tell us its size?

Sorry, I don't have the answer but can suggest what might be a workaround.
DataSet always serilaizes to XML. If values you return are small the overhead
XML verbosity imposes can be enormous. You could try to do your own serialization.

Alexander

> I'm trying to return a DataTable with 146k rows * 41 columns.
> Returning smaller sets works but the larger ones throw this exception.
[quoted text clipped - 3 lines]
> The remoting object is being hosted by IIS and the machine has 2 gigs
> of physical ram. w3wp.exe shows a max usage of 503 megs of ram.
M.Posseth - 28 Feb 2005 07:39 GMT
Joe

if you are really passing a datatable object    , try it with a dataset this
might solve your problem

i noticed already strange behaviors with datable objects and remoting /
webservices

Even better with webservices you can`t pass datatables at all only when they
are contained inside datasets this behavior is by design
( in my opinion this  breaks good OOP but  that is another story )

http://support.microsoft.com/default.aspx?scid=kb;en-us;306134

Signature

Met vriendelijke groet
Kind regards,

Michel Posseth
Software Developer
Microsoft Certified Professional

> Joe,
>
[quoted text clipped - 13 lines]
> > The remoting object is being hosted by IIS and the machine has 2 gigs
> > of physical ram. w3wp.exe shows a max usage of 503 megs of ram.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.