Print Thread
TOracleQuery leaking memory
#4876 04/28/03 04:19 PM
Joined: Apr 2003
Posts: 12
M
Member
OP Offline
Member
M
Joined: Apr 2003
Posts: 12
Hello,

My batch program creates a lot of TOracleQueries and destroy them after executing. If I look in the taskmanager I see increasing the size of my program.

I use Oci 8.1 and Doa 3.4.6.4.

Searching through the forum I found that there was a problem with Oracle 8.0.x. So I tried to turn on UseOci7 and it worked.

But shouldn't the problem be resolved in Oracle 8.1?

kindly regards,
Matthias

Re: TOracleQuery leaking memory
#4877 04/28/03 10:28 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
I'm not sure if all Net 8.1.x version are memory leak free. It may be a good idea not to create/destroy lots of TOracleQuery instances in a batch program, because this also creates/frees the corresponding Oracle Net handles. You will be more prone to Net 8 resource leaks that way.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: TOracleQuery leaking memory
#4878 05/01/03 09:37 PM
Joined: Nov 2002
Posts: 9
I
Member
Offline
Member
I
Joined: Nov 2002
Posts: 9
I have gotten around this by using a global TOracleQuery for general use. You don't have to keep instantiating the rascal, which makes it pretty quick.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.078s Queries: 13 (0.048s) Memory: 2.5032 MB (Peak: 3.0428 MB) Data Comp: Off Server Time: 2024-05-18 08:27:52 UTC
Valid HTML 5 and Valid CSS