Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple Maths Application Pin
PJ Arends3-Jul-04 8:11
professionalPJ Arends3-Jul-04 8:11 
GeneralThe left tree in the code editor in vs.net Pin
Tcpip20053-Jul-04 7:00
Tcpip20053-Jul-04 7:00 
GeneralRe: The left tree in the code editor in vs.net Pin
Ravi Bhavnani3-Jul-04 9:50
professionalRavi Bhavnani3-Jul-04 9:50 
GeneralRe: The left tree in the code editor in vs.net Pin
Tcpip20053-Jul-04 23:33
Tcpip20053-Jul-04 23:33 
GeneralMaximum number of threads.. Pin
Laing,James3-Jul-04 6:57
Laing,James3-Jul-04 6:57 
GeneralRe: Maximum number of threads.. Pin
Graham Bradshaw3-Jul-04 12:52
Graham Bradshaw3-Jul-04 12:52 
GeneralRe: Maximum number of threads.. Pin
Laing,James4-Jul-04 0:13
Laing,James4-Jul-04 0:13 
GeneralRe: Maximum number of threads.. Pin
Graham Bradshaw4-Jul-04 0:48
Graham Bradshaw4-Jul-04 0:48 
Laing,James wrote:
Is there a way to override/redefine the maximum number of threads that can be created by an individual application running on XP

A process can easily create more than 64 threads (just look at Task Manager on a busy server). It's true that MAXIMUM_WAIT_OBJECTS defines the maximum number of handles in the array passed in to WaitForMultipleObjects, but MAXIMUM_WAIT_OBJECTS is not related to how many threads a process can create, which was your original question.

Laing,James wrote:
I do not particulary want to redesign my application around thread pools

Are you actually using thread pools? It sounds like you are, since passing thread handles into WaitForMutlipleObjects is a standard way to implement them. If you are, and you want a to wait on more than 64 threads at one time, rather than create more than 64 threads, I would suggest splitting the array of handles passed in to WaitForMultipleObjects into several smaller arrays (64 or less handles each), and making several calls to WaitForMultipleObjects, one after the other, one for each array.
GeneralRe: Maximum number of threads.. Pin
Laing,James4-Jul-04 1:08
Laing,James4-Jul-04 1:08 
QuestionHow to Capture Screen with DirectX 8 or 9 ? >"< Pin
cher88230333-Jul-04 6:42
cher88230333-Jul-04 6:42 
GeneralCustom Controls in/within MFC Pin
0v3rloader3-Jul-04 4:33
0v3rloader3-Jul-04 4:33 
GeneralRe: Custom Controls in/within MFC Pin
Johan Rosengren3-Jul-04 6:01
Johan Rosengren3-Jul-04 6:01 
GeneralRe: Custom Controls in/within MFC Pin
0v3rloader3-Jul-04 6:59
0v3rloader3-Jul-04 6:59 
QuestionSave a CString ??? Pin
Larsson3-Jul-04 3:47
Larsson3-Jul-04 3:47 
AnswerRe: Save a CString ??? Pin
Ken Mazaika3-Jul-04 4:40
Ken Mazaika3-Jul-04 4:40 
GeneralRe: Save a CString ??? Pin
Larsson3-Jul-04 5:20
Larsson3-Jul-04 5:20 
GeneralRe: Save a CString ??? Pin
User 66583-Jul-04 6:17
User 66583-Jul-04 6:17 
AnswerRe: Save a CString ??? Pin
PJ Arends3-Jul-04 6:42
professionalPJ Arends3-Jul-04 6:42 
GeneralRe: Save a CString ??? Pin
Graham Bradshaw3-Jul-04 7:35
Graham Bradshaw3-Jul-04 7:35 
GeneralRe: Save a CString ??? Pin
PJ Arends3-Jul-04 8:02
professionalPJ Arends3-Jul-04 8:02 
GeneralRe: Save a CString ??? Pin
Graham Bradshaw3-Jul-04 13:03
Graham Bradshaw3-Jul-04 13:03 
Generalinvisible window with activex control Pin
maruku3-Jul-04 1:58
maruku3-Jul-04 1:58 
GeneralRe: invisible window with activex control Pin
Ryan Binns4-Jul-04 18:39
Ryan Binns4-Jul-04 18:39 
GeneralRe: invisible window with activex control Pin
maruku5-Jul-04 22:46
maruku5-Jul-04 22:46 
GeneralRe: invisible window with activex control Pin
Ryan Binns5-Jul-04 22:58
Ryan Binns5-Jul-04 22:58 

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.