Click here to Skip to main content
15,899,314 members
Home / Discussions / COM
   

COM

 
GeneralRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
Scott Dorman11-Mar-08 4:28
professionalScott Dorman11-Mar-08 4:28 
QuestionRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
scottdj11-Mar-08 15:25
scottdj11-Mar-08 15:25 
GeneralRe: Component Services->COM+->Add new component hangs, C++ Unmanaged COM DLL using C# Pin
Scott Dorman12-Mar-08 2:38
professionalScott Dorman12-Mar-08 2:38 
GeneralGet "Title" information from files Pin
souljumper10-Mar-08 4:10
souljumper10-Mar-08 4:10 
QuestionHandling Internet Explorer com server object in plain C++ Pin
jattila4010-Mar-08 2:13
jattila4010-Mar-08 2:13 
GeneralRe: Handling Internet Explorer com server object in plain C++ Pin
jattila4010-Mar-08 3:48
jattila4010-Mar-08 3:48 
GeneralLink File Path Pin
john56329-Mar-08 22:25
john56329-Mar-08 22:25 
QuestionCOM Interop C++ unmanaged through C# .NET 2.0 Class Library to C# .NET 1.1managed Class Library Pin
scottdj8-Mar-08 18:33
scottdj8-Mar-08 18:33 
I have the following:

- A C# Class Libary written in .NET 1.1, lets call this Component A.
- A C# Class Library written .NET 2.0 that servers as a wrapper for A, called B. B is set up for COM Inetop, Strong Name, installed in GAC, REGASM run. BTW it works fine from an unmanaged C++ Console app.
- I added a class to an existing static library to call methods in B, which in turn calls corresponding methods in A.
The static lib, where the C++ class resides in linked into a C++ unmanaged DLL.
- CoInitializeEx(NULL, COINIT_MULTITHREADED); has already been called in another part of the app, a MFC C++ app that servers as a test client.

- When I try and do a
pIPTConfigManagerCOM_InteropPtr.CreateInstance(PTConfigManagerCOM_Interop::CLSID_CFPTConfigManagerCOM_Interop);

I get the following in the output window:

<mda:msg xmlns:mda="http://schemas.microsoft.com/CLR/2004/10/mda">
<!--
Attempting managed execution inside OS Loader lock. Do not attempt to run
managed code inside a DllMain or image initialization function since doing so
can cause the application to hang.
-->
<mda:loaderLockMsg break="true"/>
</mda:msg>
ProductPayTestClient.exe has triggered a breakpoint

The breakpoint is it in vswprint.c

- I have turned off LoadLock exception being thrown in Debug->Exceptions->Managed Debuggin Assistants.

- I have declared a pointer to the Interface. Sometimes when I am stepping through, the pointer has an address of 0x00000000, but the m_pInterface seems to have a valid value. Sometimes when running MY test client, I see the Interface pointer is 0x00000000 and other times is seems to have a valid value. But in all cases my C++ unmanged test harness works, it, like the class I wrote in the static lib, imports the typelib, intellisense sees the members of the class.

Any ideas will be appreicated.

THX
Scott
QuestionRe: COM Interop C++ unmanaged through C# .NET 2.0 Class Library to C# .NET 1.1managed Class Library Pin
scottdj8-Mar-08 18:36
scottdj8-Mar-08 18:36 
GeneralRe: COM Interop C++ unmanaged through C# .NET 2.0 Class Library to C# .NET 1.1managed Class Library Pin
Scott Dorman10-Mar-08 15:49
professionalScott Dorman10-Mar-08 15:49 
Generalusing com without registration Pin
justintimberlake8-Mar-08 16:31
justintimberlake8-Mar-08 16:31 
GeneralRe: using com without registration Pin
User 2155979-Mar-08 3:14
User 2155979-Mar-08 3:14 
GeneralRe: using com without registration Pin
justintimberlake9-Mar-08 16:52
justintimberlake9-Mar-08 16:52 
GeneralRe: using com without registration Pin
User 21559710-Mar-08 11:32
User 21559710-Mar-08 11:32 
GeneralProxy Manager on Remote Clients Pin
swjam7-Mar-08 22:04
swjam7-Mar-08 22:04 
GeneralEvent Map of an ActiveX control Pin
AbbyIndian6-Mar-08 6:59
AbbyIndian6-Mar-08 6:59 
QuestionCOM Addin crashes Excel. What am I doing wrong? Pin
ssaddi3-Mar-08 19:35
ssaddi3-Mar-08 19:35 
GeneralRe: COM Addin crashes Excel. What am I doing wrong? Pin
Nathan Holt at EMOM4-Mar-08 9:42
Nathan Holt at EMOM4-Mar-08 9:42 
GeneralRe: COM Addin crashes Excel. What am I doing wrong? Pin
ssaddi4-Mar-08 10:58
ssaddi4-Mar-08 10:58 
GeneralRe: COM Addin crashes Excel. What am I doing wrong? Pin
Nathan Holt at EMOM4-Mar-08 11:15
Nathan Holt at EMOM4-Mar-08 11:15 
QuestionRe: COM Addin crashes Excel. What am I doing wrong? Pin
Nathan Holt at EMOM6-Mar-08 4:45
Nathan Holt at EMOM6-Mar-08 4:45 
GeneralRe: COM Addin crashes Excel. What am I doing wrong? Pin
ssaddi6-Mar-08 10:15
ssaddi6-Mar-08 10:15 
GeneralRe: COM Addin crashes Excel. What am I doing wrong? Pin
Nathan Holt at EMOM6-Mar-08 10:43
Nathan Holt at EMOM6-Mar-08 10:43 
GeneralRe: COM Addin crashes Excel. What am I doing wrong? Pin
ssaddi6-Mar-08 10:38
ssaddi6-Mar-08 10:38 
GeneralRe: COM Addin crashes Excel. What am I doing wrong? Pin
Nathan Holt at EMOM6-Mar-08 10:54
Nathan Holt at EMOM6-Mar-08 10:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.