Re: Memory problem
- From: "Geoff Callaghan" <gcallaghan@xxxxxxxxxxx>
- Date: Fri, 4 Nov 2005 10:17:47 -0500
I am having this exact same problem. I don't know for sure whether it is my
selects, though it could be. How do you know how much free memory you have
left, and how can you tell what calls are causing the leaks?
I am getting Out Of Memory exceptions after an hour or so of running. If a
select from SQL CE causes memory leaks I can't fix, what am I supposed to
do?
"S. Berwanger" <S.Berwanger@xxxxxxxxxx> wrote in message
news:um1Vj%23T4FHA.268@xxxxxxxxxxxxxxxxxxxxxxx
> 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: S. Berwanger
- Re: Memory problem
- References:
- Memory problem
- From: S.Berwanger
- Re: Memory problem
- From: Ilya Tumanov [MS]
- Re: Memory problem
- From: S. Berwanger
- Memory problem
- Prev by Date: Re: Merge CAB file into the single CAB file.
- Next by Date: Re: mscoree.stat file?
- Previous by thread: Re: Memory problem
- Next by thread: Re: Memory problem
- Index(es):
Relevant Pages
|