Discussion:
what is the reason of stack over flow when I close a table in the close event of a form !!
(too old to reply)
Isaac
2008-05-27 20:51:34 UTC
Permalink
Hello,
I placed a code in the close event in the form to close a table

TfrmDailySales.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
with DBDM do begin
frmDailySales.Close; <<<<<<-------
end;
action := cafree;
end;

I get stack over flow when I close this form!!!
Bill Todd [TeamB]
2008-05-27 21:10:15 UTC
Permalink
Post by Isaac
I get stack over flow when I close this form!!!
A stack overflow is almost always the result of recursive function
calls. Step through your code in the debugger to see how this is
happening.
--
Bill Todd (TeamB)
Isaac
2008-05-27 21:16:07 UTC
Permalink
Post by Bill Todd [TeamB]
Post by Isaac
I get stack over flow when I close this form!!!
A stack overflow is almost always the result of recursive function
calls. Step through your code in the debugger to see how this is
happening.
LOL, Thanks alot it is obvious now I am trying to close the form in the
close event instead of closing the table

frmDailySales --- >tblDailySales

many thanks

Loading...