Hi,
I'm currently working with CodeGear Delphi 2007 under Vista. My application returns out of memory error during some rather heavy calculations. The .exe files grows from 150 Mb to an amazing 2 Gb (! LOL )
Regarding this issue:
1) I'm changing some arrays into arraylist BUT It's giving me some rather difficult issues to resolve (see sample below)
2) Suggestions that work with multidimensional structures AND require Little changes in the code are MOST appreciated!
Now the old way of addressing a member was:
function TResults.GetTriangleA(ComNr, triangleA, PtNr : integer) : single;
Begin
try
result := ListTriangleRes[TriangleA - 1].GetA(ComNr, PtNr);
And ther's the class TriangleResult:
TTriangleRes = class(TResults)
private
IndexPoint1, IndexPoint2, Indexpoint3 : integer;
MyA : array of array [1..3] of single;
MyB : array of array [1..3] of single;
Here, I'm trying to work my way out with the new arraylist, but not very successful till now
function TResults.GetTriangleVz(ComNr, triangleA, PtNr : integer) : single;
Var
MyTriangleRes: TTriangleRes;
MyObj: Tobject;
begin
MyTriangleRes:= TTriangleRes.Create ;
try
MyObj := ListTriangleRes[TriangleA - 1] ;
result := MyObj <<<<?????? how to>>>>MyTriangleRes.GetVz(ComNr, PtNr);
Mkr
Edward