Results 1 to 5 of 5

Thread: [Solved] Threading error

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Posts
    3

    [Solved] Threading error

    Hi, I am using phidget device to collect information from the sensor. However, whenever I run the program, this error shows up, saying that "The calling thread cannot access the object because a different thread owns it"

    The code:

    Private Sub phid_SensorChange(ByVal sender As Object, ByVal e As Phidgets.Events.SensorChangeEventArgs) Handles phid.SensorChange
    If e.Index = 0 Then
    lblDisplayTemp.Content = e.Value.ToString
    End If

    End Sub
    How do I solve this problem?
    Last edited by griggle; Jan 28th, 2010 at 03:29 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width