Memory leak problem
-
Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that
_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugBreak();
}call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks
-
Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that
_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugBreak();
}call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks
Such an error is usually caused by a buffer overrun on some stack-based variable. The reason it doesn't show a call stack is that the stack has been corrupted due to the program writing to locations it shouldn't be writing to. The way I would track this down is to look at all the locations where you use stack-based memory buffers such as strings, and examine the code for what could cause an overrun.
The difficult we do right away... ...the impossible takes slightly longer.
-
Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that
_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugBreak();
}call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks
-
Hi friends, Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that
_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugBreak();
}call stack not shows any previous function. I couldn't find exact location. Please help me. Thanks
Before you are starting the debug session from VS: - Ctrl+Alt+E (Exceptions Dialog from the Debug Menu) - Check the all boxes there in - F5 (Start) The Debugger will stop exactly at the "bugged" line :)
They sought it with thimbles, they sought it with care; They pursued it with forks and hope; They threatened its life with a railway-share; They charmed it with smiles and soap. :)