Quantcast
Channel: Visual Leak Detector for Visual C++ 2008-2015
Viewing all articles
Browse latest Browse all 704

Commented Unassigned: COM object cannot be registered [10553]

$
0
0
I have a large solution contains many COM objects.

So, I have added vld.h to one of the COM projects to try to detect memory leaks.
After this VS2010 cannot register this COM after it is built.
I have removed include vld.h then VS successfully registered.
How I can solve this problem?
Thank you.

Comments: Hi KindDragon, Thanks for your team's great work. I've got the same issue about COM object registration. Here is the detail: (1) How to reproduce: Create a ATL project and add an interface, integreate vld, and use regsvr32 utility to reg component. The registration will simply fail with "OleUninitialize faield" error msg. (2) What I've done: I dig regsvr32 source code and debug the registration process, it turns out that when the DllRegisterServer successfully invoked, the OleUninitialize API issue an access violation, that caused the unsuccessful COM registration. (3) Test platform: VS2010 + WinXP, VS2010 + Win7(x86) (4) Vld version: Vld v2.2.3, Vld 2.4RC2 Please find attached project for your reference. Thanks again! You guys are really doing greate work!

Viewing all articles
Browse latest Browse all 704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>