|
-
Jan 19th, 2010, 08:37 PM
#1
Thread Starter
New Member
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|