Additional
dbCAP
AnyDAC
ThinDAC
NCOCI8
Topic: Error \"Out of memory\"
Error "Out of memory"
Posted: 2008/01/25 10:00
 
Hi,

sometimes, after the programm runs a while I get an Exception "Out of memory".
It has raise on several PC...

Don't know where to search.
Does this come from AnyDac or from Oracle?

Using:
AnyDac 1.12.2 (Build 225)
Oracle 10g XE


Many Thanks.
Tim (Hamburg)
Re:Error "Out of memory"
Posted: 2008/01/27 00:50
 
Hello

If it comes from AnyDAC, then due to following reason. Your application fetches large rowset's and AnyDAC cahes all fetched records. Like a X * 1,000,000 of records, where each record has many fields, etc. Often that happens if to execute SELECT * FROM LargeTable or to use TADTable with LargeTable.

If some of that are your cases, then consider:
- replace or TADTable with TADQuery
- check that each TADQuery working with LargeTable has SELECT with WHERE
- if application does not need to visualize dataset or walk through it backward and forward, but only forward, then set Unidirectional to True

There are additional considerations to minimize memory usage, but listed above are the primary considerations.

Regards,
Dmitry
Re:Error "Out of memory"
Posted: 2008/01/31 07:26
 
Thank you very much,

TADTable I don't use, but I have change Unidirectional to True on the TADQuery.

Let's see If it helps
Re:Error "Out of memory"
Posted: 2008/02/19 17:48
 
Hi,

still got the Exception...

What with prepare and unprepare, do ist help anything?
Re:Error "Out of memory"
Posted: 2008/05/19 18:44
 
Hi,

in combination with FastMM the Error was gone.
But know I have some komplex select statement and the error returns...
In SQL-Developer the statement runs without problems

AnyDac 2.0 fixed the problem?
Re:Error "Out of memory"
Posted: 2008/05/19 21:08
 
1) I have fixed the bug leading to "Out of memory" in v 2. Probably, it is your case. I will suggest to test the 2.0 trial version.
2) Could you post to here or send to me by email: ADConnection setup + ADQuery setup (extraction from DFM or from code).
Re:Error "Out of memory"
Posted: 2008/05/20 04:40
 
It depends an the RAM, wenn I use a PC with RAM 512MB the error comes very early, on 1 GB sometimes. On my 2 GB PC it never comes.
Re:Error "Out of memory"
Posted: 2008/05/20 04:40
 


Post edited by: Timbo, at: 2008/05/20 04:41