Re: What cause " stack overflow " ?
- From: "peter koch" <peter.koch.larsen@xxxxxxxxx>
- Date: 23 Nov 2006 06:22:04 -0800
Li Hang skrev:
I have seen several times this problem in others program, I don't knowThe code below does not (after a short look) seem to cause a stack
why?.Now it turn to me.Below is a part of my program:
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 inRun it in a debugger and check the call chain. Alternatively you might
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!
log creations of CTrackPanel and log the stack value along with it
(logging the adress of an automatic (local) variable is fine).
/Peter
.
- Follow-Ups:
- Re: What cause " stack overflow " ?
- From: Li Hang
- Re: What cause " stack overflow " ?
- References:
- What cause " stack overflow " ?
- From: Li Hang
- What cause " stack overflow " ?
- Prev by Date: Re: .lib file question
- Next by Date: Re: Multi thread (2nd post)
- Previous by thread: Re: What cause " stack overflow " ?
- Next by thread: Re: What cause " stack overflow " ?
- Index(es):
Relevant Pages
|