- Invalid page fault and Stack Fault in kernel32.dll
- Posted by Mullai on July 28th, 2006
Hi,
My exe comes out with two types of errors like :
1.PG1609VV caused an invalid page fault in
module KERNEL32.DLL at 017f:bff9dfff.
Registers:
EAX=07fbfe38 CS=017f EIP=bff9dfff EFLGS=00000206
EBX=81d10cbc SS=0187 ESP=07fbfc88 EBP=07fbfe38
ECX=00000187 DS=0187 ESI=81d10cbc FS=130f
EDX=07fbfe28 ES=0187 EDI=10a00200 GS=0000
Bytes at CS:EIP:
cc a1 e0 9c fc bf 8b 00 66 64 f7 05 1c 00 00 00
Stack dump:
5f400000 81d10d00 81cfa0c4 81cfee84 00000652 c1ad4eb0 00000000 00000000
00000000 bff713ee 0000017f 82564aec bff7a3bc 00082565 ffffffff 00000000
2.PG1609VV caused a stack fault in
module KERNEL32.DLL at 017f:bff7429f.
Can anyone help me solve this error....
Thanks in advance.
regards,
Mullai
- Posted by Stuart Redmann on July 28th, 2006
Mullai wrote:
Most probably you are dereferencing an invalid pointer. Since we don't
know what programming language you are using, what your programme is
doing, and everything else, we can only guess or ask our magic balls.
Looks like a recursive function that calls itself too often. I'll try to
read some tea leaves ...
If you provide us with a _lot_ more information we *may* be able to help
you.
Regards,
Stuart
- Posted by Florian Stinglmayr on July 28th, 2006
Stuart Redmann wrote:
It rather looks like a stack destroying operation (e.g to many
arguments for a stdcall functon), rather than a stack overflow.
- Posted by Grzegorz Wróbel on July 28th, 2006
Florian Stinglmayr wrote:
Yeah, it would be stack overflow in case of infinite recursion.
--
my website: http://www.4neurons.com/
my email: 677265676F727940346E6575726F6E732E636F6D
- Posted by Mullai on July 29th, 2006
Hi ,
I am working in VC++ 6.0 with MFC .I am working for a page making
software for newspaper. While closing a page in the application this
invalid page fault occurs.
In CMainframe class , I add my own class called CChildWindow
which is derived from CScrollview. In CChildWindow I added my own class
called CPagewindow which is been derived from CFrameWnd.The place where
I get error is , While I am trying to close my main application,
CMainframe's OnClose() is called which in turn calls CChildWindow's
OnClose() where the Pagewindow(WM_CLOSE) is called.
CMainframe -> CChildWindow -> CPageWindow(WM_CLOSE).
The Code follows as:
void CMainFrame::OnClose()
{
GlobalMembers::m_PageWindowHandle=m_ChildWnd->m_structPgDetails[i].PageHandle;
m_ChildWnd->OnClose();
CFrameWnd::OnClose();
}
void CChildWindow::OnClose()
{
AFX_MANAGE_STATE(AfxGetAppModuleState());////////// I ADDED
THISTO AVOID DEBUG ASSERTION IN WINCORE.cpp .
pagewindow->SendMessage(WM_CLOSE);
}
I Want to know whether the error is due to this. Please help me in this
regard. One more thing we r using many recursive functions. How to find
whether the error is due to stack overflow. While running the exe alone
only I get this error. how to debug without code? So I remain helpless.
Stuart Redmann wrote: