Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP: First-chance exception in exe (KERNEL32.DLL)

145 views
Skip to first unread message

Allen Yuh

unread,
Aug 5, 1999, 3:00:00 AM8/5/99
to
Hi all,

I just bought a new computer with Windows98 (2nd Edition) and I still use
Visual C++ 5.0 (SP3) for my projects. I found out there are some exceptions
from KERNEL32.DLL when I debuged my programs. The messages are the
following:

************* Error Messages
*********************************************************
uAfx:400000:8:14a6:0:292fmdiclientToolbarWindow32msctls_statusbar32AfxContr
olBar42dAfxControlBar42dAfxControlBar42dAfxControlBar42dAfxControlBar42dAfxC
ontrolBar42dAfxControlBar42dAfxControlBar42d"c:\projects\myapp\debug\myapp.e
xe"gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf
~ Zt%g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9
~ t,gf~ 黷,gf~ Zt%g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%
g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 gf<6g9~ t,g
f~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 gf
<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%
g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,g
f~ 黷,gf~ Zt%g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ ��gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 gf<6g9~ t,gf~ 黷
,gf~ Zt%g<^ 髅 gf<6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 gf<
6g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 g9~ t,gf~ 黷,gf~ Zt%g<^ 髅 tooltips_class32First
-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access
Violation.
First-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access
Violation.
First-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access
Violation.
First-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access
Violation.
First-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access
Violation.
First-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access
Violation.
First-chance exception in MyApp.exe (KERNEL32.DLL): 0xC0000005: Access
Violation.

************* End of Error Messages
*********************************************************

The program is running okay after these mesages and whenever my program pops
up any dialog, the Studio's output window will have these messages again. I
traced into the CWnd class and found out that it came from the
CWnd::CreateDlgIndirect(...) when calling Win32's
::CreateDialogIndirect(hInst, lpDialogTemplate, pParentWnd->GetSafeHwnd(),
AfxDlgProc);
function. I suspect there might have some inconsistences in VC++ 5.0 and
Windows98. Does anyone have the same problem?

Thanks in advance.


Allen
alle...@hotmail.com

Any


Jim Marshall

unread,
Aug 5, 1999, 3:00:00 AM8/5/99
to
Don't worry about it....
First chance exceptions are meaningless. Its the unhandled ones you
need to worry about. The issue is this: In the WIN32 environment when
a debugger is running, it gets "First Chance" to handle any and all
exceptions caused by the debugged. VC++ simply displays the message and
passes the exception on to the proper place (e.g. returns control to the
app). Since the application is not getting an unhandled exception then
that means whoever caused the exception, is handling (e.g. they expected
the error, and have recovered). for example this psuedocode:

_try{
FOO(); // foo throws an exception
}
catch(...)
{
// handled
}


VC++ will display the First Chance Exception warning, but will then call
the catch section where the exception is properly handled.

--
Visit: http://ourworld.compuserve.com/homepages/jjmarshall/


Evan Olson

unread,
Aug 7, 1999, 3:00:00 AM8/7/99
to

The OS generates and traps exceptions internally to handle things like
accessing swapped out memory pages. You're just seeing some of that
happening. It doesn't mean your program has misbehaved at all. You can
safely ignore them.

Allen Yuh <hy...@netsol.net> wrote in message
news:OMwU0y43#GA....@cppssbbsa02.microsoft.com...

0 new messages