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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB crash closing form array with Crystal OCX.

Status
Not open for further replies.

andrewwatson

Programmer
Jul 16, 2002
10
GB
I’ve got a MDI Child form with a Crystal OCX (v4.6) on.

I run multiple reports in this using a form array:

Dim frmReport1 As New frmReportForm

frmReport1.rptCrystal.PrintReport
frmReport1.Show
...etc

When I close the first form in the array, no problem. When I try to close the second, VB shuts down (no error, no GPF, it just shuts down without warning!)

Is there any way round this (other than storing the OCX on a different form from the one I’m using to display the results)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top