Re: Out of Memory

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

From: Jeff Ptak (jptak_at_REMOVE.NO-SPAM.stny.rr.com)
Date: 02/08/04


Date: Sun, 08 Feb 2004 17:28:19 GMT

I agree with Ben's statement. You could force the garbage collector to run
by entering the following statement:

GC.Collect()

"Juan Carlos Gonzalez" <anonymous@discussions.microsoft.com> wrote in
message news:9F4D14D7-ED3F-4154-A4B4-23B262DBFD62@microsoft.com...
> Hi
>
> I have three functions, each one uses a connection to get information, I
close that connections when the functions finish. I call the function every
10 seconds. But I sometimes get an exception:
>
> ERROR [S1001] [INTERSOLV][ODBC ]Out Of Memory
> ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed
>
> How to avoid this exception?
>
> Regards
> J.C.



Relevant Pages

  • Re: Out of Memory
    ... Are you just closing and opening the connection or disposing and creating ... The Garbage Collector ... a new connection object every 10 seconds you most likely run out of memory ... But I sometimes get an exception: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • get your potentially resuming element on board my squad
    ... exclusive era. ... require a transmission! ... it eases a contest too positive in connection with her ...
    (sci.crypt)
  • RE: Web.config update to allow remote connection to sql server 200
    ... The line throw an exception is this line: ... I looked at code and it seems hard that to find out what database connection ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.general)
  • Re: SF: Refresher course
    ... All instant diplomatic house substitutes computers ... Hey, I'll decline the german. ... in connection with me it's ... access after Virginia blocks the strict kingdom's exception? ...
    (sci.crypt)
  • Re: Strange sudden shutdown issue with CF app
    ... Phone devices are notoriously low on virtual memory right out of the box because the OEMs decide to put every little thing into its own DLL and then have 25 processes launched at boot. ... Chris Tacke, Embedded MVP ... We have created an app that basically connects to a web service gets data, then stores it locally on the device, and when a record needs to be modified/added the system first tries to connect the web server sees if its availible, if not then it stores in locally on the device until the connection comes back, now I noticed that if the device does not mess around with the data connection then the application sits nicely as long as its open, and never gets shut down. ... But again most of the time I get no exception at all but just simply disappears. ...
    (microsoft.public.dotnet.framework.compactframework)