Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2006, 08:36 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can i free memory used by objects

is there any way to free memory used by object of an application?

i m filling datatable Whenever i request for a data from database, each time it increases memory used by application.
is there any way to call garbage collector or something that kind of solution?

 
Old May 10th, 2006, 02:18 AM
Authorized User
 
Join Date: Nov 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

when you fill the data into a dataset and you displays the data into the gatagrid or any other object on the screen you must then dispose your dataset or let it be = to NULL.
in this way you will be freeing you memeory and this is the best way to decrease your memory usage.

Hope it will help.

<GMK>
 
Old May 10th, 2006, 04:06 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ya its definatly right but just for datasets or say for our variables
but wt abt forms, whenever i open a form it allocates memory and after closing it doesnt free that memory even though this form has no dataset fill or any other variable declaration
even when i call System.GC.Collect() on Closing but it doesnt works.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I get iSQL *Plus for free Will Weatherford Oracle 1 January 28th, 2008 09:02 PM
can I get the book for free jervis0211 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 August 27th, 2005 12:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.