Re: What cause " stack overflow " ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Li Hang skrev:
I have seen several times this problem in others program, I don't know
why?.Now it turn to me.Below is a part of my program:
The code below does not (after a short look) seem to cause a stack
fault.

[snip]

The problem occurs in the
constructor:CTrackPanel::CTrackPanel(){......}.

This does not mean that it is CTrackPanel that caused the fault. It
could well be some other function that repeatedly creates CTrackPanel
objects.
I run this program in
Visual studio 6.0, windows xp, sometimes it report "stack overflow" and
sometimes it report " not enough memory", mostly it report " invalid
access memory......". Who could give me some sugestion? Thank you!
Run it in a debugger and check the call chain. Alternatively you might
log creations of CTrackPanel and log the stack value along with it
(logging the adress of an automatic (local) variable is fine).

/Peter

.



Relevant Pages

  • Re: ftrace - graph tracer for Microblaze
    ... irqsoff tracing for free. ... your post which is at http://lkml.org/lkml/2009/8/21/319 but you don't have any zero size stack size. ... contents of the report from save_stack_trace. ...
    (Linux-Kernel)
  • What cause " stack overflow " ?
    ... class CTrackPanel: public CStatic ... HBRUSH CTrackPanel::CtlColor(CDC* pDC, UINT nCtlColor) ... sometimes it report " not enough memory", ...
    (microsoft.public.vc.language)
  • gdb and dbx question
    ... Both dbx and gdb seems to report incorrect stack ... In dbx report, one function takes NULL as arg, which according ...
    (comp.lang.c)
  • Re: Peavey Windsor half stack the sequel
    ... For 400 smackers for a half stack? ... I'll report back ... A mini-half stack for $400 with a lot of good reviews. ... interested in finding out so I left him to his own limited devices but did ...
    (alt.guitar)
  • Re: System.NullReferenceException: Object reference not set to an
    ... the stack shows error during compiling and assembly ... It happen so many times that every time it happen, all the aspx pages get ... affected and the .net service return the same error for every aspx pages. ... >> will be receiving a daily report that should be beneficial in planning ...
    (microsoft.public.dotnet.framework.aspnet)