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 / Distributed Applications / December 2005

Tip: Looking for answers? Try searching our database.

Serviced Component Throws OutOfMemoryException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arjuna Marambe - 02 Dec 2005 14:56 GMT
Hi,

When I try to load around 17,000 records into a DataSet and return it
through a Serviced Component I get the following message from the runtime.

Exception of type System.OutOfMemoryException was thrown.

Does anyone know what I can do to avoid this.
Klaus H. Probst - 09 Dec 2005 03:05 GMT
Don't pass so many records. Seriously, the dataset is a big memory hog
because it's essentially an in-memory database. The problem here is that if
your COM+ application is server-activated (instead of inproc) then the
entire dataset has to be serialized and moved over the wire. So try to use
DataTables instead, or move the data in chunks or something.

Signature

Klaus H. Probst, MVP
  http://www.simulplex.net/

> Hi,
>
[quoted text clipped - 4 lines]
>
> Does anyone know what I can do to avoid this.
Arjuna Marambe - 20 Dec 2005 11:44 GMT
Returning a DataTable also does not help. Try the following SQL Statement
against the Northwind database and you will still get the same error.

"select top 400000 c1.* from customers c1, customers c2, customers c3"

Thanks
Arjuna.

> Don't pass so many records. Seriously, the dataset is a big memory hog
> because it's essentially an in-memory database. The problem here is that if
[quoted text clipped - 10 lines]
> >
> > Does anyone know what I can do to avoid this.

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.