Posts: 1
Joined: Wed Jun 22, 2011 4:26 pm

The calling thread cannot access this object becau

Wed Jun 22, 2011 4:34 pm

I use the SerialTool and following line to line the Sample1 that came with the free trail download. The only difference is I use VS 2010 WPF instead of a Form.

I read data from the serial port and do a MessageBox.Show on the data and it works fine.
But when I try to so substring on the data or insert the data to a TextBox I get the following error:

"The calling thread cannot access this object because a different thread owns it."

Then I realize there was this line of code in Sample1:

port.Parent = this;

I worry that may or may not causes threading problem in my WPF application but in WPF there is no "this". What else could be causing this problem? Has any one use this tool successfully on a WPF application?

Return to “SerialTools”