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!
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!