PDA

View Full Version : Upgrading CSharpClient to VS 2005 - Issue


simonr
07-14-2006, 03:05 PM
Hi,

After upgrading the CSharpClient sample application to VS 2005 there are exeptions being thrown when the event 'StepDone' is fired.

The following can be seen in the output window -

'A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll'

Do I have to make some changes to get this to work with 2005?

Regards,
Simon.

kinook
07-15-2006, 07:55 AM
The code was not properly marshalling the events back to the GUI thread (for some reason it only seems to be a problem when running under the VS2005 debugger). Attached is a fix.

simonr
07-15-2006, 01:42 PM
Many thanks, works a treat.

Simon.