Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: "Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx>
- Date: Sat, 28 Apr 2007 16:31:00 -0400
Rene,
As far as I remember, calling Close on the reader should internally also call Dispose to free its resources. But if you get the same error if you close the reader or if you don't (and I'm not clear about this from your reply) then perhaps something else is holding memory that needs to be freed.
--
Ginny
"Rene Scharf" <NoReply@xxxxxxxxxx> wrote in message news:OsCMbRciHHA.680@xxxxxxxxxxxxxxxxxxxxxxx
Hi Ginny,
I don't get an error by closing the DataReader.
I get the Memory-Error insufficient memory for this operation after 30-50 SQLs
one SQL =
cmd.CommandText = sSqlString;
dr = cmd.ExecuteReader();
After severeal tests I think that the dr is the object that does not give back the memory.
Whereby it does not matter whether I close it or not.
best regards
René
"Ginny Caughey [MVP]" <ginny.caughey.online@xxxxxxxxxxxxxx> schrieb im Newsbeitrag news:8672297D-E7A7-416A-B7E5-9DE1676E3495@xxxxxxxxxxxxxxxxRene,
What is the error message you get when you try to close the data reader?
--
Ginny
.
- References:
- Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: MoonBreaker
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Pete Vickers [MVP]
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: MoonBreaker
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Ginny Caughey [MVP]
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Rene Scharf
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Ginny Caughey [MVP]
- Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- From: Rene Scharf
- Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Prev by Date: Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Next by Date: Re: How to generate a database or table script in CE
- Previous by thread: Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Next by thread: Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??
- Index(es):
Relevant Pages
|
Loading