Page 1 of 1

escape of memory problem?

Posted: Mon 06 Dec 2004 12:31
by olivier.rx
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.

Olivier.

Re: escape of memory problem?

Posted: Tue 07 Dec 2004 15:03
by Oleg
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.