ocx on mdichild hangs up Visual Studio IDE

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

Guest

I am developing a c# application in Visual Studio 2003.
I have to use a third party ocx on a form. If I open the form as a dialog
everything works fine, but if i open the form as mdichild the application
crashes with this error:

Debug Assertion Failed!
Program: c:\.....\myapp.exe
File: afxwin2.inl
Line: 256

The same error comes out and hangs up the Visual Studio IDE if I set the
property "ShowInTaskBar" of the form to false.

What does it matters? How can I workaround that?
Thankyou very much,
 
I resolved it this way:
I have cutted the instruction

"this.Controls.Add(this.axControlName);"
from the InitializeComponent() method
and I have pasted it as the first line of the Form_Load event.

This way it works, but I can't see the control on the form at design time.
Too bad, it's not so important.
 
Back
Top