Ingonito
Technical User
- Jan 28, 2006
- 3
Hello.
I have 2 Forms. ChildForm and MainForm. In the MainForm I have Table-component and datasource component and DBGrid.
Ok. In the mainForm I can browse the Access-table.
In the ChildForm I have Query-component and Datasource component and Edit-field where I can write sql-sentences.
Query works fine. BUT when I close this ChildForm I got error:
What causes this error ?
Close button which are in ChildForm are like this:
I have 2 Forms. ChildForm and MainForm. In the MainForm I have Table-component and datasource component and DBGrid.
Ok. In the mainForm I can browse the Access-table.
In the ChildForm I have Query-component and Datasource component and Edit-field where I can write sql-sentences.
Query works fine. BUT when I close this ChildForm I got error:
Code:
Project projekti2.exe raised exception class EAccessViolation with message 'Access violation at address
40056CB1 in module 'VCL50.BPL'. Read address 0000022c'.
Process stopped. Use Step to Run to Continue
What causes this error ?
Close button which are in ChildForm are like this:
Code:
Query1->Close();
ChildForm->Close()