Click here to Skip to main content
15,900,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hooking my mouse Pin
John R. Shaw17-Mar-05 7:26
John R. Shaw17-Mar-05 7:26 
GeneralRe: hooking my mouse Pin
shdwwlkr17-Mar-05 15:04
shdwwlkr17-Mar-05 15:04 
GeneralSOM Pin
mostafadotnet16-Mar-05 12:57
mostafadotnet16-Mar-05 12:57 
GeneralSOM Pin
Anonymous16-Mar-05 12:56
Anonymous16-Mar-05 12:56 
GeneralFind process by name Pin
Christian Graus16-Mar-05 11:41
protectorChristian Graus16-Mar-05 11:41 
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 
I am trying to use io completion ports in a socket server that I am working on for work.
I based a lot of my initial work on Len Holgates code and articles.

However I am running into problem with threads in the thread pool.

It all works fine for a while, and then I will get a problem where the same OVERLAPPED pointer is accessed simulataneously by 2 different threads in a pool of 5 worker threads (on a HT system with "2" CPUs). This same pointer then gets used in a WSARecv call and the contents of the first call to WSARecv get overwritten by the second call to WSARecv.

So how is it possible for two threads (out of 5) that return from a call to GetQueuedCompletionStatus() to both end up with the same OVERLAPPED pointer?

The overlapped buffer is defined as a class that inherits from OVERLAPPED (called IOBuffer).
This class is created for each new read/write call. The allocater used is the C++ standard new function.

Thanks in advance!


¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
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 
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 

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.