Re: Stack Allocations: Reserve/Commit...

From: Paul G. Tobey [eMVP] (ptobey)
Date: 02/23/05


Date: Wed, 23 Feb 2005 11:21:09 -0700

I've never changed either of those two settings. What are you allocating on
the stack? Are you making recursive calls or something?

Paul T.

"James Hunter Ross" <james.ross@oneilsoft.com> wrote in message
news:O5nM0NdGFHA.2356@TK2MSFTNGP12.phx.gbl...
> Friends,
>
> I did a post a few days ago inquiring about some odd (really odd) behavior
> after we switched from EVC++ 3.0 to 4.0. One reply I received (thanks
> Vyacheslav) mentioned inadequate stack allocation as his source of "odd"
> crashes. (Although not related to the change from 3.0 to 4.0.)
>
> Well, it looks like Vyacheslav was on to something; if I shrink the
> default "Reserve" link option from 0x10000 to 0x08000 I can get very
> similar crashes much sooner. (Not that this is science, but it's all I've
> got right now.)
>
> The default settings for new projects are Reserve=0x10000 and
> Commit=0x1000. I'm looking for some guidance or advice: Do you folks
> typically keep the default settings? How do you decide what settings to
> use? How might I know if I'm close to running out of stack space? Can I
> approach this scientifically? Does Reserve or Commit or both have
> significance?
>
> Our app has become unstable, and no code has changed; just 3.0 to 4.0
> migration, and these stack setting have not changed.
>
> Any words or pointers or shared thoughts and experience will be greatly
> appreciated!
>
> Thanks in advance for your time! (I hope I can be of assistance some
> day!)
>
> James Hunter Ross
>
>



Relevant Pages

  • Re: make test segfaults with "--enable-shared" on Python 2.3.3
    ... calling the test alone finds enough stack space avaliable? ... > significantly improved in this regard. ... reuse and normally don't think much about the settings when everything ... It is unlawful to use this email address for unsolicited ads ...
    (comp.lang.python)
  • Re: setting ulimit -s within /etc/system
    ... -s' reports the default of 8192 regardless of the settings of the two ... Those two parameters are for kernel threads; ... You are interested in the per-process stack; ... We did make note of the fact that both parameters set the kernel ...
    (comp.unix.solaris)
  • Re: Detemining the correct reserve size for each thread stack.
    ... The thread size is typically set to 64K by the linker. ... settings. ... For Pocket PC, you can give a specific stack size for each ... This is outlined in the Pocket PC SDK Help for CreateThread. ...
    (microsoft.public.pocketpc.developer)
  • Stack Allocations: Reserve/Commit...
    ... I did a post a few days ago inquiring about some odd behavior ... Vyacheslav) mentioned inadequate stack allocation as his source of "odd" ... The default settings for new projects are Reserve=0x10000 and Commit=0x1000. ... Does Reserve or Commit or both have significance? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Desktop, Start menu settings for local users.
    ... default ALL users on a stand alone machine get the same settings, ... > with 2 other friends. ... > I have assign accounts to both of my friends and they are ... > desktop settings, etc. ...
    (microsoft.public.win2000.security)

Quantcast