IOException Failed to write array overlapped; [996] Overlapped I/O event is not in a signaled state.

559 views
Skip to first unread message

geooooooo

unread,
Jun 26, 2008, 4:02:14 AM6/26/08
to bluecove-users
i write in the ouput stream array of 10000 byte
so i ve that exception on server side


outputStream.write(message.getBytes());
the length of message is equal to 10000 byte

any one can help

Vlad Skarzhevskyy

unread,
Jun 26, 2008, 9:22:51 AM6/26/08
to bluecov...@googlegroups.com
So you are running the app with BlueSoleil Stack.
Try using smaller buffer. less then 8K
Also do you have only one thread writing to connection?
This is what we have in a code: SetupComm(hComPort, 0x1000, 0);

What OS you are using? in XP the code returned is ERROR_IO_PENDING
for WSA_IO_INCOMPLETE I need to add the case, how do I reproduce the problem?

---

Microsoft say this about Winsock error 996 - WSA_IO_INCOMPLETE:

The application has tried to determine the status of an overlapped
operation which is not yet completed. Applications that use
WSAGetOverlappedResult (with the fWait flag set to FALSE) in a polling
mode to determine when an overlapped operation has completed, get this
error code until the operation is complete. Note that this error is
returned by the operating system, so the error number may change in
future releases of Windows.

--
Vlad

Reply all
Reply to author
Forward
0 new messages