Re: Memory problem
- From: "S. Berwanger" <S.Berwanger@xxxxxxxxxx>
- Date: Fri, 4 Nov 2005 14:00:28 +0100
Hallo Ilya,
thank's for your reply.
My real application works with a Webservice for data exchanging with a SQL
Server database. I only transfer changed rows back to the database, because
there are some other WinCE devices which can change the data too.
A other function of the WS reads the hole data from the database and merges
then the datatables from device and from the server.
When I let run the program until there is no more free memory then a
messagebox is displayed for aborting a running program.
Meanwhile I have found the statement which produces the memory leak: I call
the Select function from the datatable for receiving the changed rows. Then
I creat a new datatable and copy the rows returned from the select call.
When I do not use this select function then the free memory remains
constant.
I have found that using the select function produces memory laeks generally.
It isn't a big problem for me to replace the call at this position, but I
use the select function on many places and in more complicated cases in the
program. I need a real solution.
.
- Follow-Ups:
- Re: Memory problem
- From: Geoff Callaghan
- Re: Memory problem
- References:
- Memory problem
- From: S.Berwanger
- Re: Memory problem
- From: Ilya Tumanov [MS]
- Memory problem
- Prev by Date: Re: NumericUpDown.Value cannot be > 2^16
- Next by Date: DataBinding no longer updates underlying datasource when a form is closed?
- Previous by thread: Re: Memory problem
- Next by thread: Re: Memory problem
- Index(es):
Relevant Pages
|