Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Natalie Katz

@Natalie Katz
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cancelation of WriteFile WINAPI
    N Natalie Katz

    Hi I'm using the WriteFile and ReadFile WINAPI to write/read from a COM port periodically. The protocol is : first wirte to a port and then read the response from a port (=device). The write operation occures every 50 msec at least. Every second attempt to call WriteFile fails and GetLastError returns ERROR_OPERATION_ABORTED. Then I use PurgeComm to clean a port after the failure. The next call to WriteFile succeedes, ReadFile succeedes, and the next try to write is cancelled and so on. Does anybody know what can cause this error? Thanks :(( Natalie

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups