win7 + vc7.1 + mfc = stackoverflow
- by fogbit
Hello!
I've moved my vc7.1 project from WInXP to Win7. After rebuilding i got stackoverflow error in function _malloc_dbg when i start the program.
"Unhandled exception at 0x0051bf0f in XXX.exe: 0xC00000FD: Stack overflow."
Call stack:
msvcr71d.dll!_malloc_dbg(unsigned int nSize=140, int nBlockUse=2, const char * szFileName=0x10267784, int nLine=163)
msvcr71d.dll!_calloc_dbg(unsigned int nNum=1, unsigned int nSize=140, int nBlockUse=2, const char * szFileName=0x10267784, int nLine=163)
msvcr71d.dll!_mtinit()
msvcr71d.dll!_CRTDLL_INIT(void * hDllHandle=0x10200000, unsigned long dwReason=1, void * lpreserved=0x0018fd24)
I tried to set up different stacksizes in project options (from 10 to 100 mbytes), in all cases i got this error.
How can i fix this?