Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stack file error - what does it mean???

Status
Not open for further replies.

sljpatterson

Programmer
Mar 4, 2003
2
CA
I am have a pretty simple program; I THINK that I have declared all my variables and initialized them properly but immediately after declaring my main program, the yellow arrow of the debugger stops at the first brackst and a quickwatch on the variables say that I have a stack file error. How can I debug this???
 
there could be some hiden problems like
1.
class xxx
{
public:
xxx()
{
xxx x;//compiler gives no error but see below:
}
};

xxx a;//stack overflow because of a recursive constructor

2. indirect recursions
class yyy;//forward declaration
class xxx
{
public:
xxx()
{
yyy y;
}
};
class yyy
{
public:
yyy()
{
xxx x;
}
};
If that is your problem
you should just put breakpoints in all your constructors and press F5 Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top