Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Cross-thread operation not valid for WorkspaceViewer

Last post 12 Jan 2008, 3:57 AM by BlueCell. 1 replies.
Sort Posts: Previous Next
  •  03 Jan 2008, 9:05 AM 12923

    Cross-thread operation not valid for WorkspaceViewer

    Dear atalasoft,

     I receive the following exception:

    Cross-thread operation not valid: Control 'WorkspaceViewer' accessed from a thread other than the thread it was created on. This WorkspaceViewer is a component within a custom control. The exception occurs when I am disposing that form (while closing it):

    Protected Overrides Sub Dispose(ByVal disposing As Boolean)

    Try

    If disposing AndAlso components IsNot Nothing Then

    components.Dispose()

    End If

    Finally

    MyBase.Dispose(disposing)    <<< HERE

    End Try

    End Sub

    For as far as I know, the WorkspaceViewer is created in the UI thread (single threaded). And disposing occurs in the same UI thread IMO. Do you know anything that might cause this?

    Please ask for more details if needed!

    Filed under:
  •  12 Jan 2008, 3:57 AM 12952 in reply to 12923

    Re: Cross-thread operation not valid for WorkspaceViewer

    Anyone? Please? The exception is still occuring
View as RSS news feed in XML