I have resolved the problem.
I think taht there is a bug somethere, in DOA , oracle or delphi.
I remove the oraclequery.clearvariables;
before to set the variables.
It work fine with simple variable, but with array dml give me the memory problem.
Now all work and the memory use is very low.