"William DePalo [MVP VC++]" <wi***********@ mvps.org> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
"JHoletzeck " <JH********@dis cussions.micros oft.com> wrote in message
news:2F******** *************** ***********@mic rosoft.com... Is it possible to set the stack size for the thread created by
BackgroundWorke r like in the API call _beginthread?
No.
I may have misinterpreted your question. The question I _thought_ you were
asking is "Is it possible to set the stack size for threads I create at
runtime?". The answer to that question for native applications is no as I
wrote. The total size of the address space to be occupied by the stack is
set a link time. The parameter passed to beginthreadex() is just the subset
of that region which is initially committed. The stack will grow dynamically
from its initially committed size to the size reserved at link time.
If, though, BackgroundWorke r refers to some thread class which I don't see
the MSDN index, then please post again with more details as to the class.
Regards,
Will