Re: registration order of tlb, proxy/stub, exe
- From: khalprin <khalprin@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 3 Oct 2008 05:44:01 -0700
OK, here's more information and a clarification.
The type library is produced when my COM server executable is built. I
realized that I said earlier that the server imports interfaces from a type
library - that's not right. The server's idl file imports another (shared)
idl file and has coclasses for those interfaces.
After realizing the above (I used to actually import the tlb but had to move
things around) I've done some more testing and found that I can leave the
type library unregistered and register just the server and the proxy/stub
dll. This results in the fast 3 second test time.
I still don't understand what was happening, but I think I can leave the tlb
out of the picture and be OK.
Any comments or warnings about this?
Thanks.
"Igor Tandetnik" wrote:
khalprin <khalprin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:.
The interfaces I'm testing are mostly 'get property' types so you're
right, the do very little work. I can't seem to rectify the order of
registration with the idea that the proxy/stub being last makes it
more efficient.
See if you can find correlation with this. Look in the registry under
HKCR\Interface\{Your Interface IID}\ProxyStubClsid32
If the default value of this key is
{00020424-0000-0000-C000-000000000046}, you are using universal (aka
TLB-driven) marshalling (the TypeLib subkey gives the LIBID of the type
library to use). Otherwise, it's the CLSID of the object implemented by
proxy/stub DLL.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
- References:
- registration order of tlb, proxy/stub, exe
- From: khalprin
- Re: registration order of tlb, proxy/stub, exe
- From: Igor Tandetnik
- Re: registration order of tlb, proxy/stub, exe
- From: khalprin
- Re: registration order of tlb, proxy/stub, exe
- From: Igor Tandetnik
- registration order of tlb, proxy/stub, exe
- Prev by Date: Re: DCOMCNFG nightmare with service
- Next by Date: RE: DCOMCNFG nightmare with service
- Previous by thread: Re: registration order of tlb, proxy/stub, exe
- Next by thread: Re: registration order of tlb, proxy/stub, exe
- Index(es):
Relevant Pages
|