Change BaudRate on Condition

Discussion in '.NET' started by litechniks, Mar 18, 2008.

  1. litechniks

    litechniks

    Joined:
    Mar 18, 2008
    Messages:
    1
    Likes Received:
    0
    In my task I have to change the baudrate after having a specified string received but send an ACK before.
    I'm trying to do this by placing the following line into "private void DataReceived":
    this.Invoke(new EventHandler(Change_BaudRate));

    Where Change_BaudRate closes the port, reconfigures and reopens it.

    BUT the program crashes at the change, I guess because it is illegal to "call" a method that closes the port on DataReceived event.

    I can't figure out how to do this,
    thanks
     
    litechniks, Mar 18, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin Maurer
    Replies:
    3
    Views:
    6,070
    Peter
    Apr 19, 2006
  2. -
    Replies:
    12
    Views:
    983
    Remon van Vliet
    Jun 15, 2005
  3. Q. John Chen
    Replies:
    0
    Views:
    460
    Q. John Chen
    Nov 15, 2006
  4. Michael
    Replies:
    4
    Views:
    1,176
    Steven Cheng [MSFT]
    Jun 20, 2008
  5. kiran423

    baudrate generator

    kiran423, Mar 28, 2011, in forum: VHDL
    Replies:
    9
    Views:
    2,529
    kiran423
    Apr 17, 2011
  6. Alan Z. Scharf

    Change color of Item Template TextBox on Condition

    Alan Z. Scharf, Aug 26, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    454
    Alan Z. Scharf
    Aug 29, 2003
  7. Paul D. Fox

    Hyperlink template column and change link text based on Condition

    Paul D. Fox, Jun 15, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    583
    Kim Quigley
    Jun 16, 2005
  8. Bill W.
    Replies:
    13
    Views:
    561
    Phillip Gawlowski
    May 9, 2011
Loading...