escape of memory problem?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply

escape of memory problem?

Post by olivier.rx » Mon 06 Dec 2004 12:31

I use the OraDirect corelab component in a windows Service, which throw some treatments defined in some other .net librarys, at regulars intervals (batch).
I have some escape of memory, and I'm asking myself is the problem didn't comes from the corelab component.
I explitly call the dispose method on all the component after each treatment.
I call explitly the gc.collect method after each of them too, to enable live monitoring of my process with the task manager.

Are you sure that the dispose methods clear effectly the used ressources from the components?

Thank you.


Devart Team
Posts: 264
Joined: Thu 28 Oct 2004 13:56

Re: escape of memory problem?

Post by Oleg » Tue 07 Dec 2004 15:03

Explicit call dispose method on our components certainly releases associated with it resources.
Some variants are possible if you use connection pooling (enabled by default):
on closing a connection it isn't closed but placed to the pool. In this case resources of this connection aren't released.

Post Reply