Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
MDI application with database
I'm making a MDI application with IB database components and packages.
I show the form from the package with a function like:
type TShowChild: procedure(db: TIbDatabase; tr: TIbTransaction);
var ShowChild: TShowChild;
in the form's unit:
var db0: TIbDatabase, tr0: TIbTransaction;
procedure TFormChild.ShowChild(db: TIbDatabase; tr: TIbTransaction);
db0 := db;
tr0 := tr;
IbQuery1.Database := db0;
IbQuery1.Transaction := tr0;
The program works fine, but when I close the MDI child form,
he releases the IbDatabase1 and the IbTransaction1.
0 · ·