Memory problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hallo all,

I have a problem with the memory management of the compact framework.
Without a obvious reason the VB.NET program uses more and more memory which
ends with a system stop because there is no more free memory.

My program has a global dataset. If these dataset has changed data it will
be created a new temporary dataset with a changed data for updating a
database. After the updating the temporary dataset is not further necessary
and should be distroyed automatically.

I have made a simple test program showing the same behaviour.
These program has a global dataset with some changed rows in a datatable.
Then it calls a function with checks the dataset for modifications and creat
a new dataset, copies the changed rows in these dataset and gives the new
dataset back. That's all. The temporary dataset will not be used further.
Because I do not call "accept changes" each check finds changed rows in the
global dataset.
For checking the dataset contents I use a timer event.

Has everyone a Idea what I can do agains the increasing of the used memory?




.



Relevant Pages

  • Re: Memory problem
    ... > I have a problem with the memory management of the compact framework. ... After the updating the temporary dataset is not further ... > These program has a global dataset with some changed rows in a datatable. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Memory problem
    ... I am getting Out Of Memory exceptions after an hour or so of running. ... I only transfer changed rows back to the database, ... > then the datatables from device and from the server. ... > the Select function from the datatable for receiving the changed rows. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Clear Dataset
    ... Not that this is definately your problem, but you may want to refernce this ... > I have a temporary dataset that I can't seem to throw away. ... but the GC never seems to reclaim the memory. ...
    (microsoft.public.dotnet.languages.csharp)
  • Clear Dataset
    ... I have a temporary dataset that I can't seem to throw away. ... and dispose, but the GC never seems to reclaim the memory. ... It all works, but like I said, the GC doesn't reclaim the memory. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Clear Dataset
    ... all my memory was returned. ... windows service. ... >> I have a temporary dataset that I can't seem to throw away. ... but the GC never seems to reclaim the memory. ...
    (microsoft.public.dotnet.languages.csharp)