Hello,
I m working on visual studio 2005 (in C#) and use WaveFormGraph component 8.5. My application is a MDI interface and each child window content a waveformgraph component. The problem appears when i create a child window, which embeded the component, from an external thread. I use delegates functions as it's explained by Microsoft, but it doesn't work fine. The error message says that the controls created on a thread can not be parents
of a control of another thread (see the attached file).
Sometimes the child window is created correctly and sometime it is not. Is the WaveformGraph component thread safe ?
The line which cause the problem is :
try
{
myPhysGraphViewer.MdiParent = this;
}
catch(Exception Exc)
{
...
}
where :
- 'this' is the instance of the main class
- 'myPhysGraphViewer' is the child window which contains the waveformgraph component
Could you help me please ?
Best regards
Norbert