Re: Out of Memory
From: Jeff Ptak (jptak_at_REMOVE.NO-SPAM.stny.rr.com)
Date: 02/08/04
- Next message: Herfried K. Wagner [MVP]: "Re: Shuting Down XP from within a Windows Form Application"
- Previous message: Ken Tucker [MVP]: "Re: Shuting Down XP from within a Windows Form Application"
- In reply to: Juan Carlos Gonzalez: "Out of Memory"
- Next in thread: Juan Carlos: "RE: Out of Memory"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Herfried K. Wagner [MVP]: "Re: Shuting Down XP from within a Windows Form Application"
- Previous message: Ken Tucker [MVP]: "Re: Shuting Down XP from within a Windows Form Application"
- In reply to: Juan Carlos Gonzalez: "Out of Memory"
- Next in thread: Juan Carlos: "RE: Out of Memory"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|