hi,
i have a garbage collection problem. i have an application writen by
vb.net, i am opening a form and in this form there is a big query. when i
open the form, it takes 80 mb memory because of the data table. when i closed
the form it is already taking 80 mb memory. where is garbage collection? i am
waiting 30 minutes but memory usage is not decreasing. what must i do?
thanks,
Ömer KUL 14 1529
Have a look at http://getdotnetco.web101.discountas...%20Mystery.htm
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message
news:AD******** *************** ***********@mic rosoft.com... hi, i have a garbage collection problem. i have an application writen by vb.net, i am opening a form and in this form there is a big query. when i open the form, it takes 80 mb memory because of the data table. when i closed the form it is already taking 80 mb memory. where is garbage collection? i am waiting 30 minutes but memory usage is not decreasing. what must i do? thanks, Ömer KUL
hi Hederman,
i have read the article. thank you very much for your help. the article is
very helpful but it is not answering my question. i am opening a form and
memory usage is increasing(80 mb), after that i am closing it but memory
usage is not decreasing. whenever i open the form memory usage is increasing
80 mb and going on so... that is the problem...
thanks
Ömer KUL
"Sean Hederman": Have a look at http://getdotnetco.web101.discountas...%20Mystery.htm
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message news:AD******** *************** ***********@mic rosoft.com... hi, i have a garbage collection problem. i have an application writen by vb.net, i am opening a form and in this form there is a big query. when i open the form, it takes 80 mb memory because of the data table. when i closed the form it is already taking 80 mb memory. where is garbage collection? i am waiting 30 minutes but memory usage is not decreasing. what must i do? thanks, Ömer KUL
If you're not holding any references to your datasets then the CLR will free
the memory when it needs to, not on some schedule. So the point would be to
ensure that the references to your datasets are being cleared.
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message
news:05******** *************** ***********@mic rosoft.com... hi Hederman, i have read the article. thank you very much for your help. the article is very helpful but it is not answering my question. i am opening a form and memory usage is increasing(80 mb), after that i am closing it but memory usage is not decreasing. whenever i open the form memory usage is increasing 80 mb and going on so... that is the problem... thanks Ömer KUL
"Sean Hederman":
Have a look at http://getdotnetco.web101.discountas...%20Mystery.htm
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message news:AD******** *************** ***********@mic rosoft.com... > hi, > i have a garbage collection problem. i have an application writen by > vb.net, i am opening a form and in this form there is a big query. when > i > open the form, it takes 80 mb memory because of the data table. when i > closed > the form it is already taking 80 mb memory. where is garbage > collection? i > am > waiting 30 minutes but memory usage is not decreasing. what must i do? > thanks, > Ömer KUL
Task Manager doesn't always show memory usage correctly. To see this follow
these steps:
- Create a new Windows Forms application
- Run it
- Check memory usage in Task Manager
- My computer shows 15,554 K
- Minimize the app
- Check memory usage in Task Manager
- My computer shows 864 K
- Restore the app
- Check memory usage in Task Manager
- My computer shows 1,784 K
Try minimizing the app after you close the form and see if the memory usage
changes.
--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada http://msmvps.com/windsor/
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message
news:05******** *************** ***********@mic rosoft.com... hi Hederman, i have read the article. thank you very much for your help. the article is very helpful but it is not answering my question. i am opening a form and memory usage is increasing(80 mb), after that i am closing it but memory usage is not decreasing. whenever i open the form memory usage is increasing 80 mb and going on so... that is the problem... thanks Ömer KUL
"Sean Hederman":
Have a look at http://getdotnetco.web101.discountas...%20Mystery.htm
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message news:AD******** *************** ***********@mic rosoft.com... > hi, > i have a garbage collection problem. i have an application writen by > vb.net, i am opening a form and in this form there is a big query. when > i > open the form, it takes 80 mb memory because of the data table. when i > closed > the form it is already taking 80 mb memory. where is garbage > collection? i > am > waiting 30 minutes but memory usage is not decreasing. what must i do? > thanks, > Ömer KUL
"Rob Windsor [MVP]" <ro************ *****@gmail.com > wrote in message
news:OK******** ******@TK2MSFTN GP09.phx.gbl... Task Manager doesn't always show memory usage correctly. To see this follow these steps:
- Create a new Windows Forms application - Run it - Check memory usage in Task Manager - My computer shows 15,554 K - Minimize the app - Check memory usage in Task Manager - My computer shows 864 K - Restore the app - Check memory usage in Task Manager - My computer shows 1,784 K
Try minimizing the app after you close the form and see if the memory usage changes.
And what makes you think this isn't correct here?
The OS automatically reduces the workingset of a windows application
(any)when minimizing, this has been done since NT4 was introduced years ago.
Taskman takes it's values from the preformance counters, do you mean that
these aren't correct?
Willy.
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message
news:AD******** *************** ***********@mic rosoft.com... hi, i have a garbage collection problem. i have an application writen by vb.net, i am opening a form and in this form there is a big query. when i open the form, it takes 80 mb memory because of the data table. when i closed the form it is already taking 80 mb memory. where is garbage collection? i am waiting 30 minutes but memory usage is not decreasing. what must i do? thanks, Ömer KUL
When there is no garbage, there is nothing to collect, that's how the GC
works, so in your case there is no garbage because you are still holding
references to your Data Tables. Please post your code if you want to get any
more help.
Willy.
Hi Willy,
i am closing the form that increases the memory usage. are not the all
variables and controls on the form disposed? after now, does not the GC
collect them?
i can not send you all code, because it is an ERP packet and it is 50 mb
when zipped. i can send you code samples if you want.
thanks
Ömer KUL
"Willy Denoyette [MVP]": "Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message news:AD******** *************** ***********@mic rosoft.com... hi, i have a garbage collection problem. i have an application writen by vb.net, i am opening a form and in this form there is a big query. when i open the form, it takes 80 mb memory because of the data table. when i closed the form it is already taking 80 mb memory. where is garbage collection? i am waiting 30 minutes but memory usage is not decreasing. what must i do? thanks, Ömer KUL
When there is no garbage, there is nothing to collect, that's how the GC works, so in your case there is no garbage because you are still holding references to your Data Tables. Please post your code if you want to get any more help.
Willy.
Ömer KUL wrote: i have a garbage collection problem. i have an application writen by vb.net, i am opening a form and in this form there is a big query. when i open the form, it takes 80 mb memory because of the data table. when i closed the form it is already taking 80 mb memory. where is garbage collection? i am waiting 30 minutes but memory usage is not decreasing. what must i do?
Merely waiting won't do anything - garbage collection is triggered by
allocations, not a timer.
-- www.midnightbeach.com
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message
news:AD******** *************** ***********@mic rosoft.com... Hi Willy, i am closing the form that increases the memory usage. are not the all variables and controls on the form disposed? after now, does not the GC collect them?
No, only those variables that are only referenced on the form will be
available for GC, and just because they're available doesn't mean they will
be GC'd.
i can not send you all code, because it is an ERP packet and it is 50 mb when zipped. i can send you code samples if you want. thanks Ömer KUL
"Willy Denoyette [MVP]":
"Ömer KUL" <me****@discuss ions.microsoft. com> wrote in message news:AD******** *************** ***********@mic rosoft.com... > hi, > i have a garbage collection problem. i have an application writen by > vb.net, i am opening a form and in this form there is a big query. when > i > open the form, it takes 80 mb memory because of the data table. when i > closed > the form it is already taking 80 mb memory. where is garbage > collection? i > am > waiting 30 minutes but memory usage is not decreasing. what must i do? > thanks, > Ã-mer KUL
When there is no garbage, there is nothing to collect, that's how the GC works, so in your case there is no garbage because you are still holding references to your Data Tables. Please post your code if you want to get any more help.
Willy.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob |
last post by:
Are there any known applications out there used to test the performance of the .NET garbage collector over a long period of time? Basically I need an application that creates objects, uses them, and then throws them away and then monitors the garbage collection and store statistics on it, preferably in C#. I want to know what is the longest period of time that an application may lock up while garbage collection is processing. Thanks!
|
by: Ganesh |
last post by:
Is there a utility by microsoft (or anyone) to force garbage collection in a
process without have access to the process code.
regards
Ganesh
|
by: Rick |
last post by:
Hi,
My question is.. if Lisp, a 40 year old language supports garbage
collection, why didn't the authors of C++ choose garbage collection for
this language? Are there fundamental reasons behind this? Is it because
C is generally a 'low level' language and they didn't want garbage
collection to creep into C++ and ruin everything?
Just wondering :)
|
by: Ville Voipio |
last post by:
I would need to make some high-reliability software
running on Linux in an embedded system. Performance
(or lack of it) is not an issue, reliability is.
The piece of software is rather simple, probably a
few hundred lines of code in Python. There is a need
to interact with network using the socket module,
and then probably a need to do something hardware-
related which will get its own driver written in
C.
|
by: Bob lazarchik |
last post by:
Hello:
We are considering developing a time critical system in C#. Our tool used in
Semiconductor production and we need to be able to take meaurements at
precise 10.0 ms intervals( 1000 measurement exactly 10 ms apart. In the
future this may decrease to 5ms ). I am concerned that if garbage
collection invokes during this time it may interfere with our measurement
results. I have looked over the garbage collection mechanism and see no...
| |
by: mike2036 |
last post by:
For some reason it appears that garbage collection is releasing an object
that I'm still using. The object is declared in a module and instantiated
within a class that is in turn instantiated by the mainline. The class that
instantiated the object in question is definitely still in existence at the
point garbage collection swoops in and yanks it out from under my processing.
Is there a way to ensure an instantiated object cannot be freed...
|
by: Goalie_Ca |
last post by:
I have been reading (or at least googling) about the potential addition
of optional garbage collection to C++0x. There are numerous myths and
whatnot with very little detailed information.
Will this work be library based or language based and will it be based
on that of managed C++? Then of course there are the finer technical
questions raised (especially due to pointer abuse). Is a GC for C++
just a pipe dream or is there a lot of work...
|
by: Johnny E. Jensen |
last post by:
Hellow
I'am not sure what to think about the Garbage Collector.
I have a Class OutlookObject, It have two private variables.
Private Microsoft.Office.Interop.Outlook.Application _Application = null;
Private Microsoft.Office.Interop.Outlook.NameSpace _Namespace = null;
The Constructor:
public OutlookObject()
|
by: Lloyd Bonafide |
last post by:
I followed a link to James Kanze's web site in another thread and was
surprised to read this comment by a link to a GC:
"I can't imagine writing C++ without it"
How many of you c.l.c++'ers use one, and in what percentage of your
projects is one used? I have never used one in personal or professional
C++ programming. Am I a holdover to days gone by?
|
by: pushpakulkar |
last post by:
Hi all,
Is garbage collection possible in C++. It doesn't come as part of
language support. Is there any specific reason for the same due to the
way the language is designed. Or it is discouraged due to
some specific reason. If someone can give inputs on the same, it will
be of great help.
Regards,
Pushpa
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |