Click here to Skip to main content
15,921,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Find process by name Pin
Blake Miller16-Mar-05 11:48
Blake Miller16-Mar-05 11:48 
GeneralRe: Find process by name Pin
Rick York16-Mar-05 12:41
mveRick York16-Mar-05 12:41 
GeneralIO completion port woes Pin
Jim Crafton16-Mar-05 11:26
Jim Crafton16-Mar-05 11:26 
GeneralRe: IO completion port woes Pin
cmk16-Mar-05 16:38
cmk16-Mar-05 16:38 
GeneralRe: IO completion port woes Pin
Jim Crafton17-Mar-05 3:52
Jim Crafton17-Mar-05 3:52 
GeneralRe: IO completion port woes Pin
cmk17-Mar-05 10:41
cmk17-Mar-05 10:41 
GeneralRe: IO completion port woes Pin
Jim Crafton17-Mar-05 11:17
Jim Crafton17-Mar-05 11:17 
GeneralRe: IO completion port woes Pin
cmk17-Mar-05 21:05
cmk17-Mar-05 21:05 
Well, i don't.

I just let the GQCS() threads handle all overlapped ops - including those that complete right away (as indicated by return of 0).

You should be able to set break points and walk through the code to see if you are having your posting thread and GQCS() thread racing to modify your overlapped struct.

From what you have shown i might try changing the following:

- if read requests then do a WSARecv
- if WSARecv returns 0 or io pending mark overlapped as read complete
other wise mark as read error

to,

- if read requests then clear request flag and do a WSARecv
- if WSARecv returns 0 or io pending mark overlapped as read complete do nothing,
other wise mark as read error
- when GQCS() get overlapped structure for completed read ... notify app ...


...cmk

Save the whales - collect the whole set
GeneralGetComputerName and GetUserName Apis in Windows 2000 Pin
brilliant10116-Mar-05 4:16
brilliant10116-Mar-05 4:16 
GeneralRe: GetComputerName and GetUserName Apis in Windows 2000 Pin
Blake Miller16-Mar-05 11:45
Blake Miller16-Mar-05 11:45 
GeneralUsing SOAP in vc++ service application Pin
16-Mar-05 2:21
suss16-Mar-05 2:21 
GeneralError regarding C++ DLL Pin
Amarelia16-Mar-05 2:19
Amarelia16-Mar-05 2:19 
GeneralRe: Error regarding C++ DLL Pin
David Crow16-Mar-05 2:54
David Crow16-Mar-05 2:54 
GeneralRe: Error regarding C++ DLL Pin
Amarelia16-Mar-05 17:52
Amarelia16-Mar-05 17:52 
GeneralRe: Error regarding C++ DLL Pin
David Crow17-Mar-05 3:21
David Crow17-Mar-05 3:21 
GeneralRe: Error regarding C++ DLL Pin
Alexander M.,17-Mar-05 6:33
Alexander M.,17-Mar-05 6:33 
GeneralRe: Error regarding C++ DLL Pin
Alexander M.,16-Mar-05 4:15
Alexander M.,16-Mar-05 4:15 
GeneralHttpOpenRequest problem Pin
gecool16-Mar-05 1:44
gecool16-Mar-05 1:44 
GeneralBitBlt fails under Win98SE Pin
Vinaya16-Mar-05 1:26
Vinaya16-Mar-05 1:26 
GeneralExtra memory for CEdit Pin
Member 160732616-Mar-05 1:11
Member 160732616-Mar-05 1:11 
GeneralRe: Extra memory for CEdit Pin
ThatsAlok16-Mar-05 1:54
ThatsAlok16-Mar-05 1:54 
GeneralRe: Extra memory for CEdit Pin
Member 160732616-Mar-05 2:04
Member 160732616-Mar-05 2:04 
GeneralRe: Extra memory for CEdit Pin
David Crow16-Mar-05 2:56
David Crow16-Mar-05 2:56 
GeneralRe: Extra memory for CEdit Pin
Manfred Staiger16-Mar-05 2:11
Manfred Staiger16-Mar-05 2:11 
GeneralRe: Extra memory for CEdit Pin
Member 160732616-Mar-05 2:15
Member 160732616-Mar-05 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.