CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    1

    UI Freeze while transmitting via RS232

    Hi all,
    I'm having a problem, my UI freeze while I transmit and receiving data thru RS232. The program works just that the UI freeze for a while. It return to normal after the Tx/Rx completed in RS232. I wonder why. I try many things like Update the UI thru invalidata and updatewindow method in the function that sends the data but it doesnt help at all. Pls help, tq.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: UI Freeze while transmitting via RS232

    You should move your code for RS232 communications to the secondary thread(s)
    Victor Nijegorodov

  3. #3
    Join Date
    Feb 2002
    Posts
    4,640

    Re: UI Freeze while transmitting via RS232

    Ditto. You need to create a worker thread for the transmitting/receiving of the data.

    Viggy

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

Featured