At the time it happens the app has at most one other thread, but those threads (if any) are idle. This call is triggered by a button push in the main thread of my app. M_portHand is a HANDLE, and portDevice is an std::string and contains "COM5". NULL ) // hTemplate must be NULL for comm devices m_portHand = CreateFileA( portDevice.c_str(),Ġ, // must be opened with exclusive-access I'm finding that occasionally the CreateFileA call that I do to open the serial port is taking up to 30 seconds to complete! Obviously I'm doing something to trigger this odd behavior, and I want to know what it is I might be doing to cause this. I've got a Qt app (Qt 4.8.1) that's doing some Windows serial port tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |