Application Verifier Causes Stop Whenever I Create a Window For the First Time

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="font-family:monospace Ive been trying to debug an application using the Application Verifier and Ive been getting a stop whenever I try to make a window for the first time. It happens even calling MessageBox in the default program
created by Visual Studio 2008. Here is the code of my main function:
<pre class="prettyprint int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
MessageBox( 0, L"This should not stop app verifier.", L"But it will!", MB_OK );
return 0;
}[/code]
The following is the log Ive gotten from Application Verifier on the crash:
<pre class="prettyprint <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<avrf:logfile xmlns:avrf="Application Verifier
<avrf:logSession TimeStarted="2012-04-28 : 03:58:38" PID="4184" Version="2
<avrf:logEntry Time="2012-04-28 : 03:58:38" LayerName="Heaps" StopCode="0x13" Severity="Error
<avrf:message>First chance access violation for current stack trace.</avrf:message>
<avrf:parameter1>1f7a000 - Invalid address causing the exception.</avrf:parameter1>
<avrf:parameter2>1000b481 - Code address executing the invalid access.</avrf:parameter2>
<avrf:parameter3>28e734 - Exception record.</avrf:parameter3>
<avrf:parameter4>28e750 - Context record.</avrf:parameter4>
<avrf:stackTrace>
<avrf:trace>vrfcore!VerifierRegisterLayerEx+11b ( @ 0)</avrf:trace>
<avrf:trace>vfbasics!+685c6262 ( @ 0)</avrf:trace>
<avrf:trace>vfbasics!+685c6af1 ( @ 0)</avrf:trace>
<avrf:trace>vfbasics!+685c7316 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!RtlReleasePrivilege+114 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!RtlGetGroupSecurityDescriptor+30c ( @ 0)</avrf:trace>
<avrf:trace>ntdll!RtlGetGroupSecurityDescriptor+211 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!KiUserExceptionDispatcher+f ( @ 0)</avrf:trace>
<avrf:trace>HsSrv!removeCOMHook+9120 ( @ 0)</avrf:trace>
<avrf:trace>HsSrv!+10002566 ( @ 0)</avrf:trace>
<avrf:trace>HsSrv!removeCOMHook+e110 ( @ 0)</avrf:trace>
<avrf:trace>vrfcore!VerifierTlsSetValue+20b ( @ 0)</avrf:trace>
<avrf:trace>vfbasics!+685cf544 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!wcsncmp+4c ( @ 0)</avrf:trace>
<avrf:trace>ntdll!EtwEventRegister+135 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!LdrUnlockLoaderLock+411 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!LdrLoadDll+74 ( @ 0)</avrf:trace>
<avrf:trace>vfbasics!+685cf2c7 ( @ 0)</avrf:trace>
<avrf:trace>KERNELBASE!FreeLibrary+b7 ( @ 0)</avrf:trace>
<avrf:trace>USER32!PostThreadMessageW+e0 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!KiUserCallbackDispatcher+2e ( @ 0)</avrf:trace>
<avrf:trace>USER32!TrackPopupMenuEx+41f ( @ 0)</avrf:trace>
<avrf:trace>USER32!DrawStateW+58e ( @ 0)</avrf:trace>
<avrf:trace>USER32!SoftModalMessageBox+68a ( @ 0)</avrf:trace>
<avrf:trace>USER32!SoftModalMessageBox+c0e ( @ 0)</avrf:trace>
<avrf:trace>USER32!MessageBoxTimeoutW+7f ( @ 0)</avrf:trace>
<avrf:trace>USER32!MessageBoxExW+1b ( @ 0)</avrf:trace>
<avrf:trace>USER32!MessageBoxW+45 ( @ 0)</avrf:trace>
<avrf:trace>Test2!WinMain+34 (c:usersMaxPower163desktopappdirtest2test2mainapp.cpp @ 32)</avrf:trace>
<avrf:trace>Test2!__tmainCRTStartup+288 (f:ddvctoolscrt_bldself_x86crtsrccrtexe.c @ 574)</avrf:trace>
<avrf:trace>Test2!WinMainCRTStartup+f (f:ddvctoolscrt_bldself_x86crtsrccrtexe.c @ 399)</avrf:trace>
<avrf:trace>kernel32!BaseThreadInitThunk+12 ( @ 0)</avrf:trace>
<avrf:trace>ntdll!RtlInitializeExceptionChain+ef ( @ 0)</avrf:trace>
<avrf:trace>ntdll!RtlInitializeExceptionChain+c2 ( @ 0)</avrf:trace>
</avrf:stackTrace>
</avrf:logEntry>
</avrf:logSession>
</avrf:logfile>[/code]
I have Application Verifier set to stop on the default settings, (At least I think), that is for: exceptions, handles, heaps, leak, locks, memory, threadpool, and tls.
Thank you for any help and please let me know if this is the wrong forum.
<span style="font-family:monospace

View the full article
 
Back
Top