Hi,
I was trying to write a MDI application in C#. There will be a 3D Graph ActiveX component on one of children forms. I did successfully run (in debug stage) the 3D graph on a standalone form, i.e. do not set the MDI parent property. However, when I set "this.MdiParent" to the MDI form, and try to show this form, it gives me an error message:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt." at the Application.Run(new frmMDI()); line in Program.cs.
at this stage, the program is already running and opened some other children forms.
If I comment out the "this.MdiParent = ..." line, the form with 3D Graph shows up correctly.
I am using MS Visual studio 2005 and Measurement Studio 8.1. I wonder if this is a bug. Any body can provide solutions or the way get arround it. Thank you in advance.
Best to you all.
Dufei