Invoke workspaces show in another thread

Topics: CAB & Smart Client Software Factory
May 23, 2006 at 8:30 PM
originally posted by: RolandLi

The OnShow(...) methods of the workspaces in SCSF don't deal with the condition when it is called in another thread.

It will throw an exception when you want to do so because the workspace can be accessed only within the thread which creates it.

Is this a bug of SCSF or I shouldn't use workspaces in another thread?
May 26, 2006 at 2:49 AM
originally posted by: DLorenz

You will probably need to create a CAB Service that allows you to access the Shell. From there, you can check the shell's InvokeRequired property. If true, you need to Invoke the show method on the Shell, making it thread safe again.