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

VB Application crashes on exit

602 views
Skip to first unread message

mgsram

unread,
Feb 23, 2007, 3:06:48 AM2/23/07
to
We have a VB6 application that was working fine until a few days ago
and has started crashing all of a sudden when the application exits.
The application is complex and makes use of several ActiveX controls
developed in-house as well as from third party. The inhouse ActiveX
controls are developed using VB6.0 and C# (VS.NET 2005). Also there is
a Business Object Layer comprising of COM+ components. The thing is we
are in the phase of transitioning from VB6.0 to .NET and the
application will continue to exist in mixed form for another couple of
years.

Everything works fine, until the application is exited. Even if i do
not access any feature in the application and just exit, it crashes.
The thing is even in this scenaro few ActiveX controls are created
including a ActiveX control developed in .NET

I m unable to figure out the reason for this. The following is what
WinDbg has to say. I have captured managed as well unmanaged stack. I
am unable to make out if the issue is in the application's code or
outside of it. Most likely it is within application as the problem
surfaced only after we merged changes from a bugfix branch to main
branch. Since there are several files, its hard to compare the
changes. Although i tried doing that, I could not figure out what
could have caused this issue.

Please help

=====================================================================
<pre>

Microsoft (R) Windows Debugger Version 6.6.0007.5
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: C:\athlete_view\athlete\Source\Binaries\UI\CSharp\Common
\Bin\VMSClient.exe
Symbol search path is: srv*e:\symbols*http://msdl.microsoft.com/
download/symbols;C:\athlete_view\athlete\Source\Binaries\Common\Lib;C:
\athlete_view\athlete\Source\Binaries\UI\CSharp\Common\Bin;C:
\athlete_view\athlete\Source\Binaries\UI\VB\Common\BIN;C:\athlete_view
\athlete\Source\Binaries\UI\VB\Common\NewLib
Executable search path is:
ModLoad: 00400000 005c5000 VMSClient.exe
ModLoad: 7c900000 7c9b0000 ntdll.dll
ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\kernel32.dll
ModLoad: 73420000 73574000 C:\WINDOWS\system32\MSVBVM60.DLL
ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77120000 771ac000 C:\WINDOWS\system32\OLEAUT32.dll
(1f28.1f30): Break instruction exception - code 80000003 (first
chance)
eax=015d6fec ebx=7ffda000 ecx=00000001 edx=00000002 esi=015dafb0
edi=015d6fec
eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz
na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000202
ntdll!DbgBreakPoint:
7c901230 cc int 3
0:000> g
ModLoad: 48000000 48029000 C:\PROGRA~1\Google\GOOGLE~4\GOEC62~1.DLL
ModLoad: 71ab0000 71ac7000 C:\WINDOWS\system32\WS2_32.dll
ModLoad: 71aa0000 71aa8000 C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 37000000 37013000 C:\WINDOWS\system32\EntApi.dll
ModLoad: 76bf0000 76bfb000 C:\WINDOWS\system32\PSAPI.DLL
ModLoad: 5b860000 5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
ModLoad: 74720000 7476b000 C:\WINDOWS\system32\MSCTF.dll
ModLoad: 76fd0000 7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
ModLoad: 77050000 77115000 C:\WINDOWS\system32\COMRes.dll
ModLoad: 77c00000 77c08000 C:\WINDOWS\system32\VERSION.dll
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 10000000 10015000 C:\WINDOWS\system32\MLRuntime.dll
ModLoad: 76b20000 76b31000 C:\WINDOWS\system32\ATL.DLL
ModLoad: 75e90000 75f40000 C:\WINDOWS\system32\SXS.DLL
ModLoad: 11000000 11057000 C:\athlete_view\athlete\Source\Binaries\UI
\VB\Common\NewLib\dlmLanguageStrings.dll
ModLoad: 605d0000 605d9000 C:\WINDOWS\system32\mslbui.dll
ModLoad: 03b10000 03dd6000 C:\WINDOWS\system32\msi.dll
ModLoad: 27580000 27685000 C:\WINDOWS\system32\MSCOMCTL.OCX
ModLoad: 763b0000 763f9000 C:\WINDOWS\system32\comdlg32.dll
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\COMCTL32.dll
ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 773d0000 774d2000 C:\WINDOWS\WinSxS
\x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
ModLoad: 708f0000 70903000 C:\WINDOWS\system32\asycfilt.dll
ModLoad: 04710000 04800000 C:\athlete_view\athlete\Source\Binaries\UI
\VB\Common\NewLib\dlmGdacTrees.ocx
ModLoad: 04680000 04692000 C:\athlete_view\athlete\Source\Binaries\UI
\VB\Common\NewLib\dlvbctls.ocx
ModLoad: 04c00000 04cf5000 C:\athlete_view\athlete\Source\Binaries\UI
\VB\Common\NewLib\dlmTreeControls.ocx
ModLoad: 212f0000 21323000 C:\WINDOWS\system32\tabctl32.ocx
ModLoad: 217a0000 217c3000 C:\WINDOWS\system32\comdlg32.ocx
ModLoad: 28080000 280e7000 C:\WINDOWS\system32\comct332.ocx
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 4de10000 4de93000 C:\Program Files\Common Files\system\ado
\msado15.dll
ModLoad: 765b0000 765d5000 C:\WINDOWS\system32\MSDART.DLL
ModLoad: 20000000 202c5000 C:\WINDOWS\system32\xpsp2res.dll
ModLoad: 76620000 7675a000 C:\WINDOWS\system32\comsvcs.dll
ModLoad: 5b860000 5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
ModLoad: 750f0000 75103000 C:\WINDOWS\system32\MTXCLU.DLL
ModLoad: 71ad0000 71ad9000 C:\WINDOWS\system32\WSOCK32.dll
ModLoad: 71ab0000 71ac7000 C:\WINDOWS\system32\WS2_32.dll
ModLoad: 71aa0000 71aa8000 C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 75130000 75144000 C:\WINDOWS\system32\colbact.DLL
ModLoad: 77fe0000 77ff1000 C:\WINDOWS\system32\Secur32.dll
ModLoad: 76d10000 76d21000 C:\WINDOWS\system32\CLUSAPI.DLL
ModLoad: 750b0000 750c2000 C:\WINDOWS\system32\RESUTILS.DLL
ModLoad: 769c0000 76a73000 C:\WINDOWS\system32\USERENV.dll
ModLoad: 0ffd0000 0fff8000 C:\WINDOWS\system32\rsaenh.dll
ModLoad: 74060000 740b1000 C:\Program Files\Common Files\system\msadc
\msadce.dll
ModLoad: 73160000 731d7000 C:\Program Files\Common Files\system\ole
db\oledb32.dll
ModLoad: 75350000 75361000 C:\Program Files\Common Files\system\ole
db\OLEDB32R.DLL
ModLoad: 073b0000 073b5000 C:\Program Files\Common Files\system\msadc
\msadcer.dll
ModLoad: 4fb00000 4fb31000 C:\Program Files\Common Files\system\msadc
\msdaprst.dll
ModLoad: 073c0000 073ce000 C:\athlete_view\athlete\Source\Binaries\UI
\VB\Common\NewLib\dlCommon.dll
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 08080000 08086000 C:\Program Files\Common Files\system\ado
\msader15.dll
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 081a0000 08235000 C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\Cfx4032.ocx
ModLoad: 08240000 08264000 C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\SfxBar.DLL
ModLoad: 73000000 73026000 C:\WINDOWS\system32\WINSPOOL.DRV
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 085c0000 0879f000 C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\DXDBGrid.dll
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 094d0000 09600000 C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\dXTList.dll
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 79000000 79045000 C:\WINDOWS\system32\mscoree.dll
ModLoad: 79e70000 7a3d1000 C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\mscorwks.dll
ModLoad: 78130000 781cb000 C:\WINDOWS\WinSxS
\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb
\MSVCR80.dll
ModLoad: 60340000 60348000 C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\culture.dll
ModLoad: 790c0000 79ba8000 C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\mscorlib\5c1cace64f15f04bbdbb897340e38f0a
\mscorlib.ni.dll
ModLoad: 7a440000 7abfe000 C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System
\b18c829ab55dad4bba6fa68d08a92eb1\System.ni.dll
ModLoad: 7ade0000 7af74000 C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Drawing
\60523623efe2c147b9978c78963cb92f\System.Drawing.ni.dll
ModLoad: 7afd0000 7bc56000 C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Windows.Forms
\13645326138f824bbea3778c7f0492cb\System.Windows.Forms.ni.dll
ModLoad: 79060000 790b3000 C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\mscorjit.dll
ModLoad: 42000000 42138000 image42000000
ModLoad: 42000000 42138000 C:\WINDOWS\assembly\GAC_MSIL
\DevExpress.XtraEditors.v6.3\6.3.1.0__79868b8147b5eae4\DevExpress.XtraEditors.v6.3.dll
ModLoad: 40000000 4027c000 image40000000
ModLoad: 40000000 4027c000 C:\WINDOWS\assembly\GAC_MSIL
\DevExpress.Utils.v6.3\6.3.1.0__79868b8147b5eae4\DevExpress.Utils.v6.3.dll
ModLoad: 4ec50000 4edf3000 C:\WINDOWS\WinSxS
\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-
ww_522f9f82\gdiplus.dll
ModLoad: 69be0000 6a148000 C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Xml
\faadd4ea3a091845a3c015f8782072a3\System.Xml.ni.dll
ModLoad: 65140000 657a8000 C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Data
\713b890271e46b48ba6a697ace890f1e\System.Data.ni.dll
ModLoad: 64e70000 65137000 System.Data.dll
ModLoad: 64e70000 65137000 C:\WINDOWS\assembly\GAC_32\System.Data
\2.0.0.0__b77a5c561934e089\System.Data.dll
ModLoad: 77a80000 77b14000 C:\WINDOWS\system32\CRYPT32.dll
ModLoad: 77b20000 77b32000 C:\WINDOWS\system32\MSASN1.dll
ModLoad: 60000000 60014000 C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\Accessibility
\a81a9c467ceee944872a02faa7091a57\Accessibility.ni.dll
ModLoad: 57140000 5715e000 image57140000
ModLoad: 57140000 5715e000 C:\WINDOWS\assembly\GAC\ADODB
\7.0.3300.0__b03f5f7f11d50a3a\ADODB.dll
(1f28.1f30): CLR exception - code e0434f4d (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 12d30000 12ee7000 C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\dXEditrs.dll
ModLoad: 74e30000 74e9c000 C:\WINDOWS\system32\riched20.dll
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
ModLoad: 085e0000 087bf000 C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\DXDBGrid.dll
ModLoad: 092f0000 09342000 C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\dXPSystm.dll
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Unknown exception - code c000008f (first chance)
(1f28.1f30): Access violation - code c0000005 (first chance)
<B>
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=049fcf64 ebx=00000000 ecx=73472768 edx=05198f28 esi=05198f28
edi=0012f5bc
eip=734bc79a esp=0012f3f0 ebp=0012f434 iopl=0 nv up ei pl nz
na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00010202
MSVBVM60!DESKOLE::Draw+0x2f:
734bc79a 8b4074 mov eax,dword ptr [eax+74h] ds:
0023:049fcfd8=????????
</B>
0:000> .load C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\SOS.dll
0:000> kb ~ 50
^ Syntax error in 'kb ~ 50'
0:000> kb 50
ChildEBP RetAddr Args to Child
0012f434 7348d225 05198f28 00000001 ffffffff MSVBVM60!DESKOLE::Draw
+0x2f
0012f480 7348d82f 102110a0 0012f5bc 00000000 MSVBVM60!COcx::Paint+0xdb
0012f4c0 73455e43 05192e94 0001086a 00001032 MSVBVM60!COcx::CtlProc
+0x357
0012f52c 7348d70f 04e46ee8 0001086a 00001033 MSVBVM60!VBDefControlProc
+0x42b
0012f570 73455fdd 05192e94 0001086a 00001033 MSVBVM60!COcx::CtlProc
+0x46e
0012f5dc 73440afa 0001086a 00010862 00010864 MSVBVM60!VBDefControlProc
+0x5cd
0012f75c 734b8f28 05176e5c 00010862 00001033 MSVBVM60!FormCtlProc
+0x10bd
0012f7d4 734a5d42 05176e5c 00010862 00001033 MSVBVM60!CTLUSER::CtlProc
+0x35f
0012f80c 734bca89 05176e5c 46000000 102110a0 MSVBVM60!RenderForm+0x55
0012f870 734bd1d1 0000000d 00000001 56010f96 MSVBVM60!DESKOLE::Draw
+0x2f3
0012f8dc 734bb43d 0f0110a0 102110a0 0012f90c MSVBVM60!DESKOLE::GetData
+0x230
0012f918 734bbb1c 05148f2c 05148f94 00000000 MSVBVM60!
_GetZombieMetaFile+0x56
0012f92c 7344e968 05148e28 00000000 00000000 MSVBVM60!DESKOLE::Zombify
+0x2e
0012f940 7344e91f 05148e0c 050f2f64 0012f960 MSVBVM60!DisaggregateDesk
+0x77
0012f950 73435918 050f4fdc 00000000 0012f970 MSVBVM60!
DisaggregateDeskref+0x27
0012f960 734358f5 02558eec 04c17910 0012fc18 MSVBVM60!
DisaggregateAllDesks+0x63
0012f970 73435669 0234813c 04c00000 00000000 MSVBVM60!HostNotify+0x184
0012f984 734355d6 04c17910 00000001 00000000 MSVBVM60!
RcmShutDownProject+0x87
0012f99c 734354cc 04c17910 00000001 02558eec MSVBVM60!RcmResetProject
+0x1b
0012fc18 734373bb 02634f58 04c00000 73435352 MSVBVM60!EbResetProject
+0xc0
0012fc24 73435352 04c00000 02346efc 02558eec MSVBVM60!EbResetProject
+0x27
0012fc3c 734371dd 04b66fa4 00000000 00000000 MSVBVM60!
CThreadPool::ResetProject+0x8e
0012fc58 734a8c57 04b66fa4 00000001 00000000 MSVBVM60!
CVBThreadAction::CleanupProjData+0x4b
0012fc68 73457e8c 02558eec 0012fd50 00000000 MSVBVM60!
CThreadPool::CleanupAtDllDetach+0x14
0012fc8c 73430781 0012fd50 734305be 00000000 MSVBVM60!EndMainProgram
+0xb9
0012fcc8 734305d7 06318fa4 000407f2 00001050 MSVBVM60!FnwpMainFilter
+0x5b3
0012fce8 77d48744 000407f2 00001050 00000000 MSVBVM60!FnwpMain+0x19
0012fd14 77d48826 734305be 000407f2 00001050 USER32!InternalCallWinProc
+0x28
0012fd7c 77d4b8ab 00000000 734305be 000407f2 USER32!
UserCallWinProcCheckWow+0x150
0012fdb8 77d5f3ee 00982880 019827f0 00000000 USER32!SendMessageWorker
+0x4a5
0012fdd8 73436019 000407f2 00001050 00000000 USER32!SendMessageA+0x7f
0012fdfc 7343509b 0235efcc 02358f84 000001af MSVBVM60!ModeFinishReset
+0x78
0012fe2c 73435030 ffffffff 00001f28 7343500a MSVBVM60!MainAfterDispatch
+0xee
0012fe38 7343500a 0235cfd4 ffffffff 00001f28 MSVBVM60!
CMsoComponent::FContinueMessageLoop+0xd
0012fe6c 73434fb6 00000000 73434d18 02358f8c MSVBVM60!
SCM::FContinueMessageLoop+0x49
0012fe74 73434d18 02358f8c 00000000 ffffffff MSVBVM60!
SCM_MsoStdCompMgr::FContinueMessageLoop+0x10
0012feb8 73434c8c ffffffff 02358f8c 02340000 MSVBVM60!ThunderMsgLoop
+0x104
0012fecc 73434c2e 02356fec ffffffff 0235efcc MSVBVM60!
CMsoCMHandler::FPushMessageLoop+0x19
0012fefc 73434b6a 0235efcc ffffffff 00001f28 MSVBVM60!
SCM::FPushMessageLoop+0xb9
0012ff18 73434b35 02358f88 0235efcc ffffffff MSVBVM60!
SCM_MsoCompMgr::FPushMessageLoop+0x2b
0012ff3c 7342ded9 ffffffff 00011970 7c9118f1 MSVBVM60!
CMsoComponent::PushMsgLoop+0x26
0012ffb8 0040ab22 0040b4dc 7c816d4f 00011970 MSVBVM60!ThunRTMain+0x9b
0012fff0 00000000 0040ab18 00000000 78746341 VMSClient!__vbaS+0xa
0:000> !eestack
---------------------------------------------
Thread 0
Current frame: MSVBVM60!DESKOLE::Draw+0x2f
ChildEBP RetAddr Caller,Callee
0012f408 7343d077 MSVBVM60!CUnkDesk::QueryInterface+0x56
0012f41c 734f6ada MSVBVM60!BASIC_CLASS_ZOMBIE::QueryInterface+0xa6
0012f434 7348d225 MSVBVM60!COcx::Paint+0xdb
0012f480 7348d82f MSVBVM60!COcx::CtlProc+0x357, calling MSVBVM60!
COcx::Paint
0012f4c0 73455e43 MSVBVM60!VBDefControlProc+0x42b
0012f4f0 77f15ecb GDI32!hGetPEBHandle+0x38, calling kernel32!
InterlockedCompareExchange
0012f518 77f174e8 GDI32!DeleteObject+0xaa, calling GDI32!DeleteRegion
0012f52c 7348d70f MSVBVM60!COcx::CtlProc+0x46e, calling MSVBVM60!
VBDefControlProc
0012f550 77f168c6 GDI32!IntersectClipRect+0x7e, calling GDI32!
NtGdiIntersectClipRect
0012f570 73455fdd MSVBVM60!VBDefControlProc+0x5cd
0012f594 7c809a0f kernel32!LocalAlloc+0x58, calling ntdll!
RtlAllocateHeap
0012f5a0 77f2a063 GDI32!NtGdiGetDeviceCapsAll+0xc
0012f5c8 734417a8 MSVBVM60!CommonGizWndProc+0xc9, calling MSVBVM60!
CommonGizPostFilter
0012f5dc 73440afa MSVBVM60!FormCtlProc+0x10bd, calling MSVBVM60!
VBDefControlProc
0012f638 7c91b298 ntdll!RtlAllocateHeap+0xe64, calling ntdll!
RtlAllocateHeapSlowly
0012f644 7c9106eb ntdll!RtlAllocateHeap+0xeac, calling ntdll!
_SEH_epilog
0012f654 77d48744 USER32!InternalCallWinProc+0x28
0012f680 77d48826 USER32!UserCallWinProcCheckWow+0x150, calling USER32!
InternalCallWinProc
0012f68c 77d4886a USER32!UserCallWinProcCheckWow+0x170, calling ntdll!
RtlDeactivateActivationContextUnsafeFast
0012f694 77d4883a USER32!UserCallWinProcCheckWow+0x116, calling USER32!
_SEH_epilog
0012f6e4 77d4883a USER32!UserCallWinProcCheckWow+0x116, calling USER32!
_SEH_epilog
0012f6e8 77d4b4d0 USER32!DispatchClientMessage+0xa3, calling USER32!
UserCallWinProcCheckWow
0012f708 77d4b4db USER32!DispatchClientMessage+0xae, calling USER32!
_SEH_epilog
0012f738 77d4b4db USER32!DispatchClientMessage+0xae, calling USER32!
_SEH_epilog
0012f73c 77d4d69c USER32!__fnINOUTSTYLECHANGE+0x27
0012f74c 77d4d6ac USER32!__fnINOUTSTYLECHANGE+0x37, calling USER32!
XyCallbackReturn
0012f75c 734b8f28 MSVBVM60!CTLUSER::CtlProc+0x35f
0012f78c 77d4d5ce USER32!NtUserSetWindowLong+0xc
0012f790 77d4d611 USER32!_SetWindowLong+0x137, calling USER32!
NtUserSetWindowLong
0012f7b4 77d4d632 USER32!SetWindowLongA+0x15, calling USER32!
_SetWindowLong
0012f7cc 734a5d84 MSVBVM60!_InitRenderForm+0x29, calling USER32!
SetWindowLongA
0012f7d4 734a5d42 MSVBVM60!RenderForm+0x55
0012f80c 734bca89 MSVBVM60!DESKOLE::Draw+0x2f3, calling MSVBVM60!
RenderForm
0012f870 734bd1d1 MSVBVM60!DESKOLE::GetData+0x230
0012f8dc 734bb43d MSVBVM60!_GetZombieMetaFile+0x56
0012f918 734bbb1c MSVBVM60!DESKOLE::Zombify+0x2e, calling MSVBVM60!
_GetZombieMetaFile
0012f92c 7344e968 MSVBVM60!DisaggregateDesk+0x77
0012f940 7344e91f MSVBVM60!DisaggregateDeskref+0x27, calling MSVBVM60!
DisaggregateDesk
0012f950 73435918 MSVBVM60!DisaggregateAllDesks+0x63, calling MSVBVM60!
DisaggregateDeskref
0012f960 734358f5 MSVBVM60!HostNotify+0x184, calling MSVBVM60!
DisaggregateAllDesks
0012f970 73435669 MSVBVM60!RcmShutDownProject+0x87, calling MSVBVM60!
HostNotify
0012f984 734355d6 MSVBVM60!RcmResetProject+0x1b, calling MSVBVM60!
RcmShutDownProject
0012f99c 734354cc MSVBVM60!EbResetProject+0xc0, calling MSVBVM60!
RcmResetProject
0012f9d4 7c96defb ntdll!RtlDebugFreeHeap+0x2c, calling ntdll!
RtlpDebugPageHeapFree
0012fa44 7c96e0d4 ntdll!RtlDebugFreeHeap+0x1fb, calling ntdll!
_SEH_epilog
0012fa48 7c94a5d0 ntdll!RtlFreeHeapSlowly+0x37, calling ntdll!
RtlDebugFreeHeap
0012fa54 7c926abe ntdll!RtlFreeHeapSlowly+0x5c2, calling ntdll!
_SEH_epilog
0012fa94 00540063 VMSClient!frmLookupItems::LoadItems+0x6c3 [C:
\athlete_view\athlete\Source\UI\VB\Common\Forms\frmLookupItems.frm:
1112]
0012fb04 7c926abe ntdll!RtlFreeHeapSlowly+0x5c2, calling ntdll!
_SEH_epilog
0012fb08 7c9268ad ntdll!RtlFreeHeap+0xf9, calling ntdll!
RtlFreeHeapSlowly
0012fb64 7c911962 ntdll!RtlpFreeDebugInfo+0x5c, calling ntdll!
RtlFreeHeap
0012fb68 7c911993 ntdll!RtlpFreeDebugInfo+0x77, calling ntdll!
RtlLeaveCriticalSection
0012fbc8 73435497 MSVBVM60!EbResetProject+0x82, calling MSVBVM60!
_setjmp3
0012fc18 734373bb MSVBVM60!EbResetProject+0x27, calling MSVBVM60!
EbResetProject+0x2a
0012fc24 73435352 MSVBVM60!CThreadPool::ResetProject+0x8e, calling
MSVBVM60!EbResetProject
0012fc3c 734371dd MSVBVM60!CVBThreadAction::CleanupProjData+0x4b,
calling MSVBVM60!CThreadPool::ResetProject
0012fc58 734a8c57 MSVBVM60!CThreadPool::CleanupAtDllDetach+0x14,
calling MSVBVM60!CVBThreadAction::CleanupProjData
0012fc68 73457e8c MSVBVM60!EndMainProgram+0xb9, calling MSVBVM60!
CThreadPool::CleanupAtDllDetach
0012fc8c 73430781 MSVBVM60!FnwpMainFilter+0x5b3, calling MSVBVM60!
EndMainProgram
0012fcc8 734305d7 MSVBVM60!FnwpMain+0x19, calling MSVBVM60!
FnwpMainFilter
0012fce8 77d48744 USER32!InternalCallWinProc+0x28
0012fd14 77d48826 USER32!UserCallWinProcCheckWow+0x150, calling USER32!
InternalCallWinProc
0012fd7c 77d4b8ab USER32!SendMessageWorker+0x4a5, calling USER32!
UserCallWinProcCheckWow
0012fda0 77d5f3a5 USER32!SendMessageA
0012fdb8 77d5f3ee USER32!SendMessageA+0x7f, calling USER32!
SendMessageWorker
0012fdd8 73436019 MSVBVM60!ModeFinishReset+0x78
0012fdfc 7343509b MSVBVM60!MainAfterDispatch+0xee, calling MSVBVM60!
ModeFinishReset
0012fe10 77d493f9 USER32!NtUserPeekMessage+0xc
0012fe14 77d4c97c USER32!PeekMessageA
0012fe2c 73435030 MSVBVM60!CMsoComponent::FContinueMessageLoop+0xd,
calling MSVBVM60!MainAfterDispatch
0012fe38 7343500a MSVBVM60!SCM::FContinueMessageLoop+0x49
0012fe4c 77d4c97c USER32!PeekMessageA
0012fe6c 73434fb6 MSVBVM60!SCM_MsoStdCompMgr::FContinueMessageLoop
+0x10, calling MSVBVM60!SCM::FContinueMessageLoop
0012fe74 73434d18 MSVBVM60!ThunderMsgLoop+0x104
0012feb8 73434c8c MSVBVM60!CMsoCMHandler::FPushMessageLoop+0x19,
calling MSVBVM60!ThunderMsgLoop
0012fecc 73434c2e MSVBVM60!SCM::FPushMessageLoop+0xb9
0012fefc 73434b6a MSVBVM60!SCM_MsoCompMgr::FPushMessageLoop+0x2b,
calling MSVBVM60!SCM::FPushMessageLoop
0012ff18 73434b35 MSVBVM60!CMsoComponent::PushMsgLoop+0x26
0012ff3c 7342ded9 MSVBVM60!ThunRTMain+0x9b, calling MSVBVM60!
CMsoComponent::PushMsgLoop
0012ff48 7c9118f1 ntdll!RtlDeleteCriticalSection+0x72, calling ntdll!
RtlpFreeDebugInfo
0012ffb8 0040ab22 VMSClient!__vbaS+0xa, calling MSVBVM60!ThunRTMain
0012ffc0 7c816d4f kernel32!BaseProcessStart+0x23
0012ffc8 7c9118f1 ntdll!RtlDeleteCriticalSection+0x72, calling ntdll!
RtlpFreeDebugInfo
0012ffe0 7c8399f3 kernel32!_except_handler3
---------------------------------------------
Thread 6
Current frame: ntdll!KiFastSystemCallRet
ChildEBP RetAddr Caller,Callee
0ccbfcd8 7c90e9ab ntdll!ZwWaitForMultipleObjects+0xc
0ccbfcdc 7c8094f2 kernel32!WaitForMultipleObjectsEx+0x12c, calling
ntdll!ZwWaitForMultipleObjects
0ccbfd34 79e77fe8 mscorwks!PEImage::LoadImage+0x1e1, calling mscorwks!
_SEH_epilog4
0ccbfd38 79e77f9a mscorwks!CLREvent::WaitEx+0x117, calling mscorwks!
PEImage::LoadImage+0x16a
0ccbfd68 7c8399f3 kernel32!_except_handler3
0ccbfd78 7c809c86 kernel32!WaitForMultipleObjects+0x18, calling
kernel32!WaitForMultipleObjectsEx
0ccbfd94 79f8d98a mscorwks!WKS::WaitForFinalizerEvent+0x7a
0ccbfdb4 79ea2e68 mscorwks!WKS::GCHeap::FinalizerThreadWorker+0x75,
calling mscorwks!WKS::WaitForFinalizerEvent
0ccbfdc8 79ecb4a4 mscorwks!Thread::UserResumeThread+0xfb
0ccbfdd8 79ecb442 mscorwks!Thread::DoADCallBack+0x355, calling
mscorwks!Thread::UserResumeThread+0xae
0ccbfe00 79e779c1 mscorwks!ThreadStore::UnlockThreadStore+0x4a,
calling mscorwks!DecCantStopCount
0ccbfe08 79ecb1d1 mscorwks!ThreadStore::TransferStartedThread+0xaa,
calling mscorwks!ThreadStore::UnlockThreadStore
0ccbfe6c 79ecb364 mscorwks!Thread::DoADCallBack+0x541, calling
mscorwks!Thread::DoADCallBack+0x2a5
0ccbfea8 79ed5e8b mscorwks!ManagedThreadBase_NoADTransition+0x32,
calling mscorwks!Thread::DoADCallBack+0x4d4
0ccbfed0 79ed5e56 mscorwks!ManagedThreadBase::FinalizerBase+0xb,
calling mscorwks!ManagedThreadBase_NoADTransition
0ccbfedc 79ed6c0b mscorwks!WKS::GCHeap::FinalizerThreadStart+0xbb,
calling mscorwks!ManagedThreadBase::FinalizerBase
0ccbff14 79ecb00b mscorwks!Thread::intermediateThreadProc+0x49
0ccbffa0 79ecaff9 mscorwks!Thread::intermediateThreadProc+0x37,
calling mscorwks!_alloca_probe_16
0ccbffb4 7c80b50b kernel32!BaseThreadStart+0x37
0ccbffdc 7c8399f3 kernel32!_except_handler3
0:000> ~
. 0 Id: 1f28.1f30 Suspend: 1 Teb: 7ffdf000 Unfrozen
1 Id: 1f28.107c Suspend: 1 Teb: 7ffde000 Unfrozen
2 Id: 1f28.1478 Suspend: 1 Teb: 7ffdd000 Unfrozen
3 Id: 1f28.1db4 Suspend: 1 Teb: 7ffdc000 Unfrozen
4 Id: 1f28.10d8 Suspend: 1 Teb: 7ffdb000 Unfrozen
5 Id: 1f28.1fd0 Suspend: 1 Teb: 7ffd9000 Unfrozen
6 Id: 1f28.150c Suspend: 1 Teb: 7ffd8000 Unfrozen
7 Id: 1f28.1d60 Suspend: 1 Teb: 7ffd7000 Unfrozen
<B>
0:000> !address 049fcfd8
04900000 : 049f1000 - 0000d000
Type 00020000 MEM_PRIVATE
Protect 00000001 PAGE_NOACCESS
State 00001000 MEM_COMMIT
Usage RegionUsagePageHeap
Handle 02341000
</B>

0:000> lmf
start end module name
00400000 005c5000 VMSClient VMSClient.exe
03b10000 03dd6000 msi C:\WINDOWS\system32\msi.dll
04680000 04692000 dlvbctls C:\athlete_view\athlete\Source\Binaries\UI
\VB\Common\NewLib\dlvbctls.ocx
04c00000 04cf5000 dlmTreeControls C:\athlete_view\athlete\Source
\Binaries\UI\VB\Common\NewLib\dlmTreeControls.ocx
073b0000 073b5000 msadcer C:\Program Files\Common Files\system\msadc
\msadcer.dll
08080000 08086000 msader15 C:\Program Files\Common Files\system\ado
\msader15.dll
092f0000 09342000 dXPSystm C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\dXPSystm.dll
094d0000 09600000 dXTList C:\athlete_view\athlete\Source\Binaries
\Tools\Bin\dXTList.dll
0ffd0000 0fff8000 rsaenh C:\WINDOWS\system32\rsaenh.dll
10000000 10015000 MLRuntime C:\WINDOWS\system32\MLRuntime.dll
11000000 11057000 dlmLanguageStrings C:\athlete_view\athlete\Source
\Binaries\UI\VB\Common\NewLib\dlmLanguageStrings.dll
20000000 202c5000 xpsp2res C:\WINDOWS\system32\xpsp2res.dll
212f0000 21323000 tabctl32 C:\WINDOWS\system32\tabctl32.ocx
27580000 27685000 MSCOMCTL C:\WINDOWS\system32\MSCOMCTL.OCX
40000000 4027c000 DevExpress_Utils_v6_3 C:\WINDOWS\assembly\GAC_MSIL
\DevExpress.Utils.v6.3\6.3.1.0__79868b8147b5eae4\DevExpress.Utils.v6.3.dll
42000000 42138000 DevExpress_XtraEditors_v6_3 C:\WINDOWS\assembly
\GAC_MSIL
\DevExpress.XtraEditors.v6.3\6.3.1.0__79868b8147b5eae4\DevExpress.XtraEditors.v6.3.dll
4de10000 4de93000 msado15 C:\Program Files\Common Files\system\ado
\msado15.dll
4ec50000 4edf3000 gdiplus C:\WINDOWS\WinSxS
\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.2180_x-
ww_522f9f82\gdiplus.dll
4fb00000 4fb31000 msdaprst C:\Program Files\Common Files\system\msadc
\msdaprst.dll
57140000 5715e000 ADODB C:\WINDOWS\assembly\GAC\ADODB
\7.0.3300.0__b03f5f7f11d50a3a\ADODB.dll
5b860000 5b8b4000 NETAPI32 C:\WINDOWS\system32\NETAPI32.dll
5d090000 5d127000 COMCTL32 C:\WINDOWS\system32\COMCTL32.dll
60000000 60014000 Accessibility_ni C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\Accessibility
\a81a9c467ceee944872a02faa7091a57\Accessibility.ni.dll
605d0000 605d9000 mslbui C:\WINDOWS\system32\mslbui.dll
64e70000 65137000 System_Data C:\WINDOWS\assembly\GAC_32\System.Data
\2.0.0.0__b77a5c561934e089\System.Data.dll
65140000 657a8000 System_Data_ni C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Data
\713b890271e46b48ba6a697ace890f1e\System.Data.ni.dll
69be0000 6a148000 System_Xml_ni C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Xml
\faadd4ea3a091845a3c015f8782072a3\System.Xml.ni.dll
708f0000 70903000 asycfilt C:\WINDOWS\system32\asycfilt.dll
71aa0000 71aa8000 WS2HELP C:\WINDOWS\system32\WS2HELP.dll
71ab0000 71ac7000 WS2_32 C:\WINDOWS\system32\WS2_32.dll
71ad0000 71ad9000 WSOCK32 C:\WINDOWS\system32\WSOCK32.dll
73000000 73026000 WINSPOOL C:\WINDOWS\system32\WINSPOOL.DRV
73160000 731d7000 oledb32 C:\Program Files\Common Files\system\ole
db\oledb32.dll
73420000 73574000 MSVBVM60 C:\WINDOWS\system32\MSVBVM60.DLL
74060000 740b1000 msadce C:\Program Files\Common Files\system\msadc
\msadce.dll
74720000 7476b000 MSCTF C:\WINDOWS\system32\MSCTF.dll
74e30000 74e9c000 riched20 C:\WINDOWS\system32\riched20.dll
750b0000 750c2000 RESUTILS C:\WINDOWS\system32\RESUTILS.DLL
750f0000 75103000 MTXCLU C:\WINDOWS\system32\MTXCLU.DLL
75130000 75144000 colbact C:\WINDOWS\system32\colbact.DLL
75350000 75361000 OLEDB32R C:\Program Files\Common Files\system\ole
db\OLEDB32R.DLL
75e90000 75f40000 SXS C:\WINDOWS\system32\SXS.DLL
763b0000 763f9000 comdlg32 C:\WINDOWS\system32\comdlg32.dll
765b0000 765d5000 MSDART C:\WINDOWS\system32\MSDART.DLL
76620000 7675a000 comsvcs C:\WINDOWS\system32\comsvcs.dll
769c0000 76a73000 USERENV C:\WINDOWS\system32\USERENV.dll
76b20000 76b31000 ATL C:\WINDOWS\system32\ATL.DLL
76d10000 76d21000 CLUSAPI C:\WINDOWS\system32\CLUSAPI.DLL
76fd0000 7704f000 CLBCATQ C:\WINDOWS\system32\CLBCATQ.DLL
77050000 77115000 COMRes C:\WINDOWS\system32\COMRes.dll
77120000 771ac000 OLEAUT32 C:\WINDOWS\system32\OLEAUT32.dll
773d0000 774d2000 comctl32_773d0000 C:\WINDOWS\WinSxS
\x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
774e0000 7761c000 ole32 C:\WINDOWS\system32\ole32.dll
77a80000 77b14000 CRYPT32 C:\WINDOWS\system32\CRYPT32.dll
77b20000 77b32000 MSASN1 C:\WINDOWS\system32\MSASN1.dll
77c00000 77c08000 VERSION C:\WINDOWS\system32\VERSION.dll
77c10000 77c68000 msvcrt C:\WINDOWS\system32\msvcrt.dll
77d40000 77dd0000 USER32 C:\WINDOWS\system32\USER32.dll
77dd0000 77e6b000 ADVAPI32 C:\WINDOWS\system32\ADVAPI32.dll
77e70000 77f01000 RPCRT4 C:\WINDOWS\system32\RPCRT4.dll
77f10000 77f56000 GDI32 C:\WINDOWS\system32\GDI32.dll
77f60000 77fd6000 SHLWAPI C:\WINDOWS\system32\SHLWAPI.dll
77fe0000 77ff1000 Secur32 C:\WINDOWS\system32\Secur32.dll
78130000 781cb000 MSVCR80 C:\WINDOWS\WinSxS
\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb
\MSVCR80.dll
79000000 79045000 mscoree C:\WINDOWS\system32\mscoree.dll
79060000 790b3000 mscorjit C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\mscorjit.dll
790c0000 79ba8000 mscorlib_ni C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\mscorlib\5c1cace64f15f04bbdbb897340e38f0a
\mscorlib.ni.dll
79e70000 7a3d1000 mscorwks C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\mscorwks.dll
7a440000 7abfe000 System_ni C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System
\b18c829ab55dad4bba6fa68d08a92eb1\System.ni.dll
7ade0000 7af74000 System_Drawing_ni C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Drawing
\60523623efe2c147b9978c78963cb92f\System.Drawing.ni.dll
7afd0000 7bc56000 System_Windows_Forms_ni C:\WINDOWS\assembly
\NativeImages_v2.0.50727_32\System.Windows.Forms
\13645326138f824bbea3778c7f0492cb\System.Windows.Forms.ni.dll
7c800000 7c8f4000 kernel32 C:\WINDOWS\system32\kernel32.dll
7c900000 7c9b0000 ntdll ntdll.dll
7c9c0000 7d1d4000 SHELL32 C:\WINDOWS\system32\SHELL32.dll

Unloaded modules:
48000000 48029000 GOEC62~1.DLL
71ab0000 71ac7000 WS2_32.dll
71aa0000 71aa8000 WS2HELP.dll
37000000 37013000 EntApi.dll
5b860000 5b8b4000 NETAPI32.dll
76bf0000 76bfb000 PSAPI.DLL
60340000 60348000 culture.dll
085c0000 0879f000 DXDBGrid.dll
081a0000 08235000 Cfx4032.ocx
08240000 08264000 SfxBar.DLL
28080000 280e7000 comct332.ocx
217a0000 217c3000 comdlg32.ocx
04710000 04800000 dlmGdacTrees.ocx
085e0000 087bf000 DXDBGrid.dll
12d30000 12ee7000 dXEditrs.dll
073c0000 073ce000 dlCommon.dll

</pre>

Ivan Brugiolo [MSFT]

unread,
Feb 24, 2007, 3:16:34 PM2/24/07
to
Looking at this stack, the question you have to ask yourself is:
what used to be at the memory location `049fcf64` ?
My first guess would be that it is a piece of heap, that used to host
an instance of a COM object, and, that piece of memory was forcefully
deleted.

I would first make sure `049fcf64` did belong to a heap.
`!address 049fcf64` should answer that.
After that, I would enable PageHeap,
to leverage the ability to keep stacktraces of the delete operation of a
heap block.

With that active, `!heap -p -a 049fcf64` should tell who deleted that block.


<B>
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=049fcf64 ebx=00000000 ecx=73472768 edx=05198f28 esi=05198f28
edi=0012f5bc
eip=734bc79a esp=0012f3f0 ebp=0012f434 iopl=0 nv up ei pl nz
na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00010202
MSVBVM60!DESKOLE::Draw+0x2f:
734bc79a 8b4074 mov eax,dword ptr [eax+74h] ds:
0023:049fcfd8=????????
</B>

ChildEBP RetAddr Args to Child


0012f434 7348d225 05198f28 00000001 ffffffff MSVBVM60!DESKOLE::Draw+0x2f
0012f480 7348d82f 102110a0 0012f5bc 00000000 MSVBVM60!COcx::Paint+0xdb
0012f4c0 73455e43 05192e94 0001086a 00001032 MSVBVM60!COcx::CtlProc
+0x357


--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"mgsram" <mgs...@gmail.com> wrote in message
news:1172218008....@s48g2000cws.googlegroups.com...

mgsram

unread,
Feb 25, 2007, 4:03:45 PM2/25/07
to
Hi Ivan,
Thanks for your response. I actually did a portion of that. The
referenced memory is indeed heap. If you had clicked on "read more"
you would have seen that. Captured the snapshot I got from today with
intermittent notes starting with


-----------------------------------------------------------------------------------------------------------
protected override void Dispose(bool disposing)

GS>>>The first line "protected override .." comes from debug output in
C# User Control. I added an explicit call to Dispose of the user
control and it is indeed getting called, although the managed control
is not holding on to any unmanaged resources. I used !dumpheap to
verify that.

(3160.3164): Access violation - code c0000005 (first chance)


First chance exceptions are reported before any exception handling.
This exception may be expected and handled.

eax=044dcf64 ebx=00000000 ecx=73472768 edx=04c68f28 esi=04c68f28


edi=0012f5bc
eip=734bc79a esp=0012f3f0 ebp=0012f434 iopl=0 nv up ei pl nz
na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00010202
MSVBVM60!DESKOLE::Draw+0x2f:
734bc79a 8b4074 mov eax,dword ptr [eax+74h] ds:

0023:044dcfd8=????????
0:000> kb 20


ChildEBP RetAddr Args to Child

0012f434 7348d225 04c68f28 00000001 ffffffff MSVBVM60!DESKOLE::Draw
+0x2f
0012f480 7348d82f 3e2119e4 0012f5bc 00000000 MSVBVM60!COcx::Paint+0xdb
0012f4c0 73455e43 04c62e94 004e063e 00001032 MSVBVM60!COcx::CtlProc
+0x357
0012f52c 7348d70f 04a16ee8 004e063e 00001033 MSVBVM60!VBDefControlProc
+0x42b
0012f570 73455fdd 04c62e94 004e063e 00001033 MSVBVM60!COcx::CtlProc
+0x46e
0012f5dc 73440afa 004e063e 00200560 00170642 MSVBVM60!VBDefControlProc
+0x5cd
0012f75c 734b8f28 04c46e5c 00200560 00001033 MSVBVM60!FormCtlProc
+0x10bd
0012f7d4 734a5d42 04c46e5c 00200560 00001033 MSVBVM60!CTLUSER::CtlProc
+0x35f
0012f80c 734bca89 04c46e5c 46000000 3e2119e4 MSVBVM60!RenderForm+0x55
0012f870 734bd1d1 0000000d 00000001 79011378 MSVBVM60!DESKOLE::Draw
+0x2f3
0012f8dc 734bb43d 3d0119e4 3e2119e4 0012f90c MSVBVM60!DESKOLE::GetData
+0x230
0012f918 734bbb1c 04c18f2c 04c18f94 00000000 MSVBVM60!
_GetZombieMetaFile+0x56
0012f92c 7344e968 04c18e28 00000000 00000000 MSVBVM60!DESKOLE::Zombify
+0x2e
0012f940 7344e91f 04c18e0c 04bc2f64 0012f960 MSVBVM60!DisaggregateDesk
+0x77
0012f950 73435918 04bc4fdc 00000000 0012f970 MSVBVM60!
DisaggregateDeskref+0x27
0012f960 734358f5 024e8eec 047f78cc 0012fc18 MSVBVM60!
DisaggregateAllDesks+0x63
0012f970 73435669 0233813c 047e0000 00000000 MSVBVM60!HostNotify+0x184
0012f984 734355d6 047f78cc 00000001 00000000 MSVBVM60!
RcmShutDownProject+0x87
0012f99c 734354cc 047f78cc 00000001 024e8eec MSVBVM60!RcmResetProject
+0x1b
0012fc18 734373bb 001dcf58 047e0000 73435352 MSVBVM60!EbResetProject
+0xc0
0012fc24 73435352 047e0000 02336efc 024e8eec MSVBVM60!EbResetProject
+0x27
0012fc3c 734371dd 04646fa4 00000000 00000000 MSVBVM60!
CThreadPool::ResetProject+0x8e
0012fc58 734a8c57 04646fa4 00000001 00000000 MSVBVM60!
CVBThreadAction::CleanupProjData+0x4b
0012fc68 73457e8c 024e8eec 0012fd50 00000000 MSVBVM60!


CThreadPool::CleanupAtDllDetach+0x14
0012fc8c 73430781 0012fd50 734305be 00000000 MSVBVM60!EndMainProgram
+0xb9

0012fcc8 734305d7 05ed8fa4 00190658 00001050 MSVBVM60!FnwpMainFilter
+0x5b3
0012fce8 77d48744 00190658 00001050 00000000 MSVBVM60!FnwpMain+0x19
0012fd14 77d48826 734305be 00190658 00001050 USER32!InternalCallWinProc
+0x28
0012fd7c 77d4b8ab 00000000 734305be 00190658 USER32!
UserCallWinProcCheckWow+0x150
0012fdb8 77d5f3ee 00921a28 01921998 00000000 USER32!SendMessageWorker
+0x4a5
0012fdd8 73436019 00190658 00001050 00000000 USER32!SendMessageA+0x7f
0012fdfc 7343509b 0234efcc 02348f84 77d489dd MSVBVM60!ModeFinishReset
+0x78
0:000> !address 044dcfd8
043e0000 : 044d1000 - 0000d000


Type 00020000 MEM_PRIVATE
Protect 00000001 PAGE_NOACCESS
State 00001000 MEM_COMMIT
Usage RegionUsagePageHeap

Handle 02331000
0:000> !heap -p -a 044dcfd8
address 044dcfd8 found in
_DPH_HEAP_ROOT @ 2331000
in free-ed allocation ( DPH_HEAP_BLOCK: VirtAddr
VirtSize)
4466910:
44dc000 2000
7c9268ad ntdll!RtlFreeHeap+0x000000f9
7344efe0 MSVBVM60!DESKREF::`scalar deleting destructor'+0x0000001d
73438179 MSVBVM60!Project::`scalar deleting destructor'+0x00000008
734374f7 MSVBVM60!ProjFDeleteThread+0x000000ae
73437203 MSVBVM60!CVBThreadAction::CleanupProjData+0x00000092
734a8c57 MSVBVM60!CThreadPool::CleanupAtDllDetach+0x00000014
73430781 MSVBVM60!FnwpMainFilter+0x000005b3
734305d7 MSVBVM60!FnwpMain+0x00000019
77d48744 USER32!InternalCallWinProc+0x00000028
77d48826 USER32!UserCallWinProcCheckWow+0x00000150
77d4b8ab USER32!SendMessageWorker+0x000004a5
77d5f3ee USER32!SendMessageA+0x0000007f
73436019 MSVBVM60!ModeFinishReset+0x00000078
7343509b MSVBVM60!MainAfterDispatch+0x000000ee
73435030 MSVBVM60!CMsoComponent::FContinueMessageLoop+0x0000000d
73434fb6 MSVBVM60!SCM_MsoStdCompMgr::FContinueMessageLoop
+0x00000010

GS>>>It still seems to originate from within VB Runtime. I also
printed the disassembly. Is the mov, eax, 80070057 interesting
enough ? It means "The parameter is incorrect". How do i find out what
parameter and is it going to be any helpful?


0:000> u 734bc79a-20 734bc79a+10
MSVBVM60!DESKOLE::Draw+0x11:
734bc77a 3bfb cmp edi,ebx
734bc77c 7512 jne MSVBVM60!DESKOLE::Draw+0x25
(734bc790)
734bc77e f6464a02 test byte ptr [esi+4Ah],2
734bc782 750c jne MSVBVM60!DESKOLE::Draw+0x25
(734bc790)
734bc784 b857000780 mov eax,80070057h
734bc789 5f pop edi
734bc78a 5e pop esi
734bc78b 5b pop ebx
734bc78c c9 leave
734bc78d c22c00 ret 2Ch
734bc790 8b863cffffff mov eax,dword ptr [esi-0C4h]
734bc796 3bc3 cmp eax,ebx
734bc798 740b je MSVBVM60!DESKOLE::Draw+0x3a
(734bc7a5)


734bc79a 8b4074 mov eax,dword ptr [eax+74h]

734bc79d 8b00 mov eax,dword ptr [eax]
734bc79f 8078371f cmp byte ptr [eax+37h],1Fh
734bc7a3 740d je MSVBVM60!DESKOLE::Draw+0x47
(734bc7b2)
734bc7a5 6a01 push 1
734bc7a7 8d8ee4feffff lea ecx,[esi-11Ch]


GS>>>Lastly what I found is that if i do not host a .NET user control
on a certain VB Tab page, everything works fine. Even attempts of
hosting a simple blank (virtually nothing) failed. Not that the .NET
user control is in error. It used to work before in the exact same
manner.

Thanks for your help again.

Sriram

Ivan Brugiolo [MSFT]

unread,
Feb 26, 2007, 12:51:40 PM2/26/07
to
class Project {
DESKREF * pDeskRef;
};

class DESKOLE {
DESKREF * pDeskRef;
};

DESKOLE::Draw(){
pDeskRef->SomeMethod();
}

Order of events

-1-
delete m_pProject;

-2-
CreateMetafile(){
for_each(control in Controls) {
control->Draw();
}
}

I don't know anythong about VB, but, my simple understanding
would be that the DESKOLE structure/class holds a pointer
to DESKREF and it's attempting to use if after is has been deleted.

My reading the names of the functions, its seems that
the VB runtime is trying to create a MetaFile with the
graphical representation of the controls hosted in a form,
and, it is doing so after some major cleanup has happened.

I'd recomend investigating a way to avoid that code path,
that seems to be executed after the project has shut-down.


Note:
`If you had clicked on "read more" you would have seen that. `
I read the news with MSIMN.exe, and,
I'm not sure where I should have done that.

--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"mgsram" <mgs...@gmail.com> wrote in message

news:1172437425.4...@j27g2000cwj.googlegroups.com...

mgsram

unread,
Feb 28, 2007, 6:17:01 AM2/28/07
to
Thanks Ivan for your help, I knew that there is not much I can do here
as the entire Code seems to be executing within VB Runtime. However I
also knew that it MUST be something in my code that is causing a bad
state in VB Runtime as usually thats the case.

I followed your hint partially - "avoid the code path", . Actually I
have been poking around for a while and there was no clue to avoid the
code path. I once thought of calling TerminateProcess ;-) which would
have been the last resort had i not got a proper solution as I cannot
ship with crashes.

However the problem is solved and I hope in the right manner. not a
patch i.e.

As I had noted before, placing a .NET based COM object on a certain VB
tab page causes the problem. When I analyzed using SOS support of
WinDbg, I could see that there are hanging CCWs in memory as finalizer
is never getting fired. I got the hint from Chris Brumme's log on Shut
Down issues and called CoEEShutDownCOM in the main form unload. This
got rid of the original problem but induced other problems. Then with
some help from .NET COM Interoperability Handbook ( Alan Gordon), I
figured out that CorExitProcess should be called to have the
finalizers fire and CLR to exit gracefully. I did not read Chris
Brumme's blog properly, otherwise I would have known that earlier.
Calling CorExitProcess in mscoree worked and worked consistenly. In
fact I verified that after the call the finalize queue had indeed 0
items.

This leads to believe that CorExitProcess is required and it ensures
that finalizer runs and cleans up RCWs and CCWs and also calls
ExitProcess. I verified using WinDbg that VB Runtime's cleanup is also
getting called appropriately through DllThreadDetach function.

Thanks for your help and clues once again.

0 new messages