![]() |
|
COM port read error 995 ReadFile (Windows) |
Paul whoknows
Member #5,081
September 2004
![]() |
I am reading the COM port using ReadFile in non-overlapped mode, it works sometimes, but sometimes it does not work and I get this error 995 "ERROR_OPERATION_ABORTED". ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
bamccaig
Member #7,536
July 2006
![]() |
uggc://jjj.rkcregf-rkpunatr.pbz/Cebtenzzvat/Ynathntrf/PCC/D_20035151.ugzy I encoded it because I didn't want to have that site appear on Allegro.cc (at least it will require a little more work now). -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Paul whoknows
Member #5,081
September 2004
![]() |
Thanks bamccaig! I think it was a problem of buffer length, I just reduced the number of bytes sent from 200 to only a few and now it works fine, not sure about what caused the error, but don't want to mess with Microsoft's MSDN again, I think I'll never like it. ____ "The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner. |
GullRaDriel
Member #3,861
September 2003
![]() |
That link sucks. Expert Exchange is mostly costing money and occasionaly have some answer in the comments. "Code is like shit - it only smells if it is not yours" |
bamccaig
Member #7,536
July 2006
![]() |
Yeah, I hate it too, but often (especially when searching for non-.NET/Windows stuff) it's the only semi-on-topic Google results... Occasionally they have the solution to your problem. I would never subscribe though. ** EDIT ** I now realize that the link isn't working properly... I hate Experts Exchange... You can find the link again through Google: 995 read serial port. At the time of writing, it was the 11th result for me (top of second default page). For some reason, when coming from Google the solutions are displayed, at least for me... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
GullRaDriel
Member #3,861
September 2003
![]() |
bamcaig said:
I only even bother checking Experts Exchange links when I'm desperate. ;-) "Code is like shit - it only smells if it is not yours" |
|