Re: Need realy help! Nobody there who knows a solution for my memory-error on WM5??



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@xxxxxxxxxxxxxxxx
Rene,

What is the error message you get when you try to close the data reader?

--
Ginny





.



Relevant Pages

  • Re: [TOMOYO #10 (linux-next) 7/8] File operation restriction part.
    ... whenever the reader fetches an element in a list. ... You will also need the ACCESS_ONCEon the pointer fetch in order ... Macros to force memory ordering. ... That will indeed make the assignment to "a" happen before the ...
    (Linux-Kernel)
  • Re: RS232 for Ge 1050MCCM
    ... GE made a serial card to plug into the tape reader driver slot that was used in some big shops that had dnc links installed. ... I run a 1050MMC and two 1050HL's and they all are very stable controls. ... There are two Tulip boards available, one with a single memory and another with a dual memory setup with an A/B switch. ...
    (alt.machines.cnc)
  • Re: Memory visibility and MS Interlocked instructions
    ... On a relaxed memory architecture, my understanding has been that to guarantee that R sees the value written by W, W must follow the write with a release membar and R must precede the read with an acquire membar. ... understanding had been that the reader, too, would have to take some action ...
    (comp.programming.threads)
  • Re: Adobe Reader issue
    ... | When I close a pdf file and check the task manager, ... memory in use by Adobe Reader. ...
    (microsoft.public.windowsxp.basics)
  • Re: Library location for MSReader
    ... solution is having the book in main memory. ... MS Reader does not work correctly if it is necessary to have the ... on the card and have them work correctly. ... >> are the files that fail to load all DRM5 files? ...
    (microsoft.public.pocketpc)

Loading