ok i have a timer object in my windows forms application, the app also
makes use of a COM object which also uses threading.
I have a seperate class that deals with COM object but this class has to
pass infomation back to the main windows form from time to time, so i
pass the main form to the class that that calls the COM object so i can
access the windows form GUI.
However this always causes errors...
A first chance exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.InvalidOperationException'
occurred in System.Windows.Forms.dll
in the debugging window and the GUI never updates properly. I am fairly
certain it is to do with me calling the main form from the class that
deals with the COM object, probably a threading issue i think.
Anyone know how i can update my GUI from the seperate class ?
any help appreciated.
--
Eps