471,627 Members | 1,479 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

waiting on function

sam
I have a timer that sends data out a serialport frequently. The call
to Send() on the serial port takes a while, and is making UI slow, and
even making the mouse jump. I've tried some various Threading
scenarios, but even when I call Send on a new thread it ties up the UI.

Thanks for any help,

Sam

Feb 9 '06 #1
2 1113
sam <sa****@3rddim.com> wrote:
I have a timer that sends data out a serialport frequently. The call
to Send() on the serial port takes a while, and is making UI slow, and
even making the mouse jump. I've tried some various Threading
scenarios, but even when I call Send on a new thread it ties up the UI.


It shouldn't affect the UI if it's on a different thread. How sure are
you that you were really calling Send on a new thread?

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Feb 9 '06 #2
sam
Thanks for the reply, the problem is elswhere though. By looking at
System.Threading.Thread.CurrentThread at various places, I could see
that the functions where being called on a seperate thread.

Feb 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Bart van Deenen | last post: by
2 posts views Thread by Grant Merwitz | last post: by
5 posts views Thread by Hansen | last post: by
1 post views Thread by Simon_21 | last post: by
1 post views Thread by matej | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.