Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when closing a form.

Status
Not open for further replies.

Ingonito

Technical User
Jan 28, 2006
3
I have 2 forms. MainForm and ChildForm.

ChildForm includes Query.component and Datasource-component.
And Edit-box where I can write sql-sentence.

I write to the edit-box: select *from Table. And everything is working.

BUT. Now when I close this ChildForm Program crash. I get 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

Does anyone have some solution or hint how I can fix this problem ?

Close-buttons code are:

Query->Close();
ChildForm->Close()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top