alexquisi
Thu May 17 07:25:40 CDT 2007
Hi,
I think that this blog entry could be useful you:
http://blogs.msdn.com/kitlfirst/archive/2006/01/31/520197.aspx
regards,
Alex
On May 17, 1:46 am, portnaw...@gmail.com wrote:
> OK, it looks like this is not really attracting masses of replies... :
> ((
>
> I've found some interesting discussions elsewhere. (
http://www.codecomments.com/message534212.html)
> specially with this comment at the very bottom of the page :
> "It means that it is of no use to specify a stack size in a DLL
> project
> because it will never be used. Only the stack size specified in the
> main EXE
> have an effect on every threads of the process."
>
> ???? Wow, is that right ????
>
> That would ruin my plans!
> At the moment my process is set to have a 96K stack size (same for
> every child thread then).
> I need to increase the stack size of my main process to 256K, and I'm
> thinking of individually setting the stack sizes of every thread that
> I create to something like 32K. At the end, this should balance the
> impact in terms of VM consumption, and even let me gain some VM.
> But if the threads that belong to the third party DLLs in use in my
> process are given 256K, that's not acceptable!
>
> Can I have some opinions on this subject?
> Cheers,
> Alex
>
> On May 14, 5:43 pm, portnaw...@gmail.com wrote:
>
>
>
> > Hi,
>
> > I've a question / doubt about the option to set the stack size of a
> > process.
> > It can be set from the linker Settings of the project (for example: /
> > stack:0x40000,0x1000) , and as far as I understand every thread that
> > gets created from this process will be given the same (big) stack size
> > (unless specified otherwise through the flag
> > STACK_SIZE_PARAM_IS_A_RESERVATION).
>
> > But what's happening if this process loads a DLL who is creating some
> > threads for its own processing?
> > Would these new threads use the stack size from the parent process? Or
> > would they use a stack size defined during the linkage of the DLL ?
>
> > Actually as I write this it sounds a bit like a dumb question, and I'd
> > put my money on the later.
> > But thanks in advance for the clarification.
>
> > Cheers,
> > Alex.- Hide quoted text -
>
> - Show quoted text -