I've found the cause - too many recursive calls to a function. So if I am
"Bruno van Dooren [MVP VC++]" <bruno_nos_pam_van_dooren@hotmail.com> ???g???l???s?D:%23wHdnURwGHA.3508@TK2MSFTNGP04.phx.gbl...
AFX_INLINE POSITION CList<TYPE, ARG_TYPE>::GetHeadPosition() const
{ return (POSITION) m_pNodeHead; }
I am testing someone else's program.
It crashed on this line saying stack overflow
Simply m_pNodeHead == 0xcccccccc
I wonder if I have reached the maximum stack size allowed on STL? any
First-chance exception at 0x100480a9 (test2.dll) in testmain.exe:
0xC00000FD: Stack overflow.
Unhandled exception at 0x100480a9 (test2.dll) in testmain.exe:
0xC00000FD: Stack overflow.
prime candidates for your problem:
- you have an infinite recursion loop somewhere.
- you have a very small custom stack size.
- you are using very large local variables like arrays, eating up
valuable stack space.
Btw, CList is MFC, not STL. I do not know enough of MFC to comment, but
with STL, the data itself is placed on the heap, not the stack. I imagine
that this is the case with CList as well.
--
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"