Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCompilation errors in Debug mode Pin
Gagnon Claude16-Mar-05 16:35
Gagnon Claude16-Mar-05 16:35 
GeneralRe: Compilation errors in Debug mode Pin
toxcct16-Mar-05 21:11
toxcct16-Mar-05 21:11 
Generaldrop down scroll bar too small Pin
catdude16-Mar-05 16:33
catdude16-Mar-05 16:33 
GeneralRe: drop down scroll bar too small Pin
Roger Allen17-Mar-05 0:07
Roger Allen17-Mar-05 0:07 
GeneralRe: drop down scroll bar too small Pin
catdude17-Mar-05 2:07
catdude17-Mar-05 2:07 
GeneralDetecting mouse clicks outside my dialog Pin
djtommye16-Mar-05 15:59
djtommye16-Mar-05 15:59 
GeneralRe: Detecting mouse clicks outside my dialog Pin
namaskaaram16-Mar-05 19:51
namaskaaram16-Mar-05 19:51 
GeneralRe: Detecting mouse clicks outside my dialog Pin
djtommye17-Mar-05 19:26
djtommye17-Mar-05 19:26 
GeneralRe: Detecting mouse clicks outside my dialog Pin
namaskaaram17-Mar-05 19:51
namaskaaram17-Mar-05 19:51 
GeneralVS6 and Inline Assembly Pin
quantum6916-Mar-05 15:58
quantum6916-Mar-05 15:58 
GeneralRe: VS6 and Inline Assembly Pin
David Crow17-Mar-05 3:24
David Crow17-Mar-05 3:24 
GeneralRe: VS6 and Inline Assembly Pin
John R. Shaw17-Mar-05 7:21
John R. Shaw17-Mar-05 7:21 
GeneralRe: VS6 and Inline Assembly Pin
quantum6917-Mar-05 15:29
quantum6917-Mar-05 15:29 
Generalhooking my mouse Pin
shdwwlkr16-Mar-05 15:37
shdwwlkr16-Mar-05 15:37 
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 

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.