Problem in closing MDIChild Form having ActiveX control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have VB2005 Application. It has VB MDI Form and MDI Child form.
The child Form hosts an ActiveX control.
when I close the ChildForm at runtime, It gives error message
"AccessViolation Exception: Attempt to read or write protected memory".
This problem occurs only the activex controls is hosted in MDI Child form.

I hosted the activex control in a Windows Form. It works fine on close.
The problem I see only with MDI child form.
I think, the activex control is not disposed properly in case of MDI child
form.
Could anyone help me in solving this.
 
Are you disposing of the ActiveX control in the Form_Closing event of your
MDI child? Or you could also try disposing your MDI child and see if that
helps.

Robin S.
 
Back
Top