Discussion:
Heap corruption error with reg-free COM component written in .NET
(too old to reply)
a***@gmail.com
2008-05-30 18:15:15 UTC
Permalink
Hi,
I have a .NET COM component that I am trying to use with a C++ com
client through Reg-Free COM. Everytime I run this in VS2005 debug
mode, I get an error: "Windows has triggered a breakpoint in
SampleClient.exe. This may be due to a corruption of the heap".
The stacktrace is as follows:
ntdll.dll!DbgBreakPoint()
[Frames below may be incorrect and/or missing, no symbols loaded for
ntdll.dll]
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x6737 bytes
ntdll.dll!RtlZeroHeap() + 0x1f5 bytes
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x6b05 bytes
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x7d5a bytes
ntdll.dll!RtlInitializeSListHead() + 0x115c0 bytes
ntdll.dll!iswdigit() + 0x128 bytes
sxs.dll!75e9896b()
sxs.dll!SxsQueryManifestInformation() + 0x13163 bytes
sxs.dll!SxsOleAut32MapReferenceClsidToConfiguredClsid() + 0x1db78
bytes
mscorwks.dll!CreateAssemblyEnum() + 0x1b9e bytes
mscorwks.dll!CreateAssemblyEnum() + 0x1d6a bytes
mscorwks.dll!CreateAssemblyEnum() + 0x1cab bytes
mscorwks.dll!CorDllMainForThunk() + 0x13fe bytes
mscorwks.dll!GetCLRFunction() + 0x5271b bytes
mscorwks.dll!DllGetClassObjectInternal() + 0x35 bytes
mscoree.dll!DllGetClassObject() + 0x12c bytes
ole32.dll!CoCreateInstance() + 0x1d47 bytes
ole32.dll!CoGetTreatAsClass() + 0x4bf bytes
ole32.dll!CoGetTreatAsClass() + 0x1d9 bytes
ole32.dll!CreateGenericComposite() + 0x2a30 bytes
ole32.dll!CreateGenericComposite() + 0x28d4 bytes
ole32.dll!CreateGenericComposite() + 0x2b23 bytes
ole32.dll!CreateGenericComposite() + 0x2a9a bytes
ole32.dll!CoGetTreatAsClass() + 0xbe7 bytes
ole32.dll!CoGetTreatAsClass() + 0xb9e bytes
ole32.dll!CreateGenericComposite() + 0x2b84 bytes
ole32.dll!CreateGenericComposite() + 0x28d4 bytes
ole32.dll!CreateGenericComposite() + 0x286f bytes
ole32.dll!CreateGenericComposite() + 0x28d4 bytes
ole32.dll!CreateGenericComposite() + 0x2719 bytes
ole32.dll!CoCreateInstanceEx() + 0x4f bytes
ole32.dll!CoCreateInstanceEx() + 0x1e bytes
ole32.dll!CoCreateInstance() + 0x34 bytes
SampleClientDll.dll!_com_ptr_t<_com_IIID<Porthole::IRNetPorthole,&_GUID_c046a0a4_bbbb_4ad7_8828_7e1c758f8ed5> >::CreateInstance(const _GUID & rclsid={...}, IUnknown * pOuter=0x00000000, unsigned long dwClsContext=7) Line 628 + 0x1d bytes C++
SampleClientDll.dll!GetApplicationDataDirectory() Line 45 C++
SampleClient.exe!main(int argc=1, char * * argv=0x003b6a10) Line 9
+ 0x10 bytes C++
SampleClient.exe!__tmainCRTStartup() Line 597 + 0x19 bytes C
SampleClient.exe!mainCRTStartup() Line 414 C
kernel32.dll!RegisterWaitForInputIdle() + 0x49 bytes
j***@gmail.com
2013-08-23 02:22:00 UTC
Permalink
Did you solve this?
Post by a***@gmail.com
Hi,
I have a .NET COM component that I am trying to use with a C++ com
client through Reg-Free COM. Everytime I run this in VS2005 debug
mode, I get an error: "Windows has triggered a breakpoint in
SampleClient.exe. This may be due to a corruption of the heap".
ntdll.dll!DbgBreakPoint()
[Frames below may be incorrect and/or missing, no symbols loaded for
ntdll.dll]
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x6737 bytes
ntdll.dll!RtlZeroHeap() + 0x1f5 bytes
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x6b05 bytes
ntdll.dll!RtlpNtMakeTemporaryKey() + 0x7d5a bytes
ntdll.dll!RtlInitializeSListHead() + 0x115c0 bytes
ntdll.dll!iswdigit() + 0x128 bytes
sxs.dll!75e9896b()
sxs.dll!SxsQueryManifestInformation() + 0x13163 bytes
sxs.dll!SxsOleAut32MapReferenceClsidToConfiguredClsid() + 0x1db78
bytes
mscorwks.dll!CreateAssemblyEnum() + 0x1b9e bytes
mscorwks.dll!CreateAssemblyEnum() + 0x1d6a bytes
mscorwks.dll!CreateAssemblyEnum() + 0x1cab bytes
mscorwks.dll!CorDllMainForThunk() + 0x13fe bytes
mscorwks.dll!GetCLRFunction() + 0x5271b bytes
mscorwks.dll!DllGetClassObjectInternal() + 0x35 bytes
mscoree.dll!DllGetClassObject() + 0x12c bytes
ole32.dll!CoCreateInstance() + 0x1d47 bytes
ole32.dll!CoGetTreatAsClass() + 0x4bf bytes
ole32.dll!CoGetTreatAsClass() + 0x1d9 bytes
ole32.dll!CreateGenericComposite() + 0x2a30 bytes
ole32.dll!CreateGenericComposite() + 0x28d4 bytes
ole32.dll!CreateGenericComposite() + 0x2b23 bytes
ole32.dll!CreateGenericComposite() + 0x2a9a bytes
ole32.dll!CoGetTreatAsClass() + 0xbe7 bytes
ole32.dll!CoGetTreatAsClass() + 0xb9e bytes
ole32.dll!CreateGenericComposite() + 0x2b84 bytes
ole32.dll!CreateGenericComposite() + 0x28d4 bytes
ole32.dll!CreateGenericComposite() + 0x286f bytes
ole32.dll!CreateGenericComposite() + 0x28d4 bytes
ole32.dll!CreateGenericComposite() + 0x2719 bytes
ole32.dll!CoCreateInstanceEx() + 0x4f bytes
ole32.dll!CoCreateInstanceEx() + 0x1e bytes
ole32.dll!CoCreateInstance() + 0x34 bytes
SampleClientDll.dll!_com_ptr_t<_com_IIID<Porthole::IRNetPorthole,&_GUID_c046a0a4_bbbb_4ad7_8828_7e1c758f8ed5> >::CreateInstance(const _GUID & rclsid={...}, IUnknown * pOuter=0x00000000, unsigned long dwClsContext=7) Line 628 + 0x1d bytes C++
SampleClientDll.dll!GetApplicationDataDirectory() Line 45 C++
SampleClient.exe!main(int argc=1, char * * argv=0x003b6a10) Line 9
+ 0x10 bytes C++
SampleClient.exe!__tmainCRTStartup() Line 597 + 0x19 bytes C
SampleClient.exe!mainCRTStartup() Line 414 C
kernel32.dll!RegisterWaitForInputIdle() + 0x49 bytes
Loading...