Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QextSerialPort CommEvent overlapped write error: 170
QtWS25 Last Chance

QextSerialPort CommEvent overlapped write error: 170

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AttilaPethe
    wrote on last edited by
    #1

    Hi, If I uncomment the only commented line below I got "CommEvent overlapped write error: 170". Why? Thanks for the answers!
    @
    void SerialOut::sendOut(QString in)
    {
    const char buff[2]={0x00,0x0A};
    port->write(buff,2);
    port->waitForBytesWritten(250);
    const char *temparray;
    QByteArray tempbytearray=in.toAscii();
    temparray=tempbytearray.constData();
    qDebug() << "outstring:" << temparray;
    qint64 i=port->write(temparray);
    port->waitForBytesWritten(250);
    //port->write(buff,2); This is the only line which throw the error
    port->waitForBytesWritten(250);
    }@

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved