Out of memory error while posting a new record
Posted: Mon 02 Nov 2009 12:08
I'm running a program on both windows xp sp2 and windows 2003 server and get the subject error on both. Here is the code snippet that gets the error:
Once the program gets to the Post, it just sits there. I opened Task Manager and watched the Memory usage for the program creep up. After about 6 minutes the program has consumed about 1.6GB of memory and the program reports an Out of Memory error.
What is causing the OraTable.Post method to chew up all my memory?
If you need more info, let me know.
Thanks!
Code: Select all
OraTable1.Append;
OraTable1.FieldByName('C1').AsString:='EURS'+ChangeID;
OraTable1.FieldByName('C3').AsInteger:=DateTimeToInt(Now);
OraTable1.FieldByName('C5').AsString:='GatherInfo';
OraTable1.FieldByName('C6').AsInteger:=DateTimeToInt(Now);
OraTable1.FieldByName('C7').AsInteger:=0;
OraTable1.FieldByName('C8').AsString:='IP: '+IP+' Audit ID '+AuditID+' - '+AuditName;
OraTable1.FieldByName('C260000001').AsInteger:=5;
OraTable1.FieldByName('C200000003').AsString:='Change';
OraTable1.FieldByName('C200000004').AsString:='Information Assurance';
OraTable1.FieldByName('C200000005').AsString:='Accreditation';
OraTable1.FieldByName('C200000006').AsString:='N86';
OraTable1.FieldByName('C200000007').AsString:='NCTS';
OraTable1.FieldByName('C200000012').AsString:='EU Naples';
OraTable1.FieldByName('C240000001').AsString:='Automated Retina Scan Import';
OraTable1.FieldByName('C240000005').AsString:='retina.scan';
OraTable1.FieldByName('C240000006').AsString:='EU NASM - RETINA SCANS';
OraTable1.FieldByName('C240000007').AsString:='IP: '+IP+' MAC: '+MAC+' Severity: '+SevCode+' Retina Audit ID: '+AuditID+' Fix Information: '+FixInformation;
OraTable1.FieldByName('C240000015').AsString:='';
OraTable1.FieldByName('C240000017').AsInteger:=1;
OraTable1.FieldByName('C260000128').AsInteger:=0;
OraTable1.Post;
What is causing the OraTable.Post method to chew up all my memory?
If you need more info, let me know.
Thanks!