[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-dcom
Subject:    Re: .o0O= Only for expertz =O0o.
From:       "Filipowski, Marius (VIS27)" <Marius.Filipowski () VICTORIA ! DE>
Date:       2000-09-28 6:05:28
[Download RAW message or body]


Seems like that we found a bug in W2k or the MMC respectively!

-----Original Message-----
From: Ethan J. Brown [mailto:development@EASTPOINTSYSTEMS.COM]
Sent: Dienstag, 26. September 2000 17:31
To: DCOM@DISCUSS.MICROSOFT.COM
Subject: Re: .o0O= Only for expertz =O0o.


Marius -


I have a similar COM+ component up and running, without a prob... It's
_ATL_APARTMENT_THREADED ...
Here's what I would do to see what might be throwing that exception...
Enable construction (even if you're not using a construction string), which
means you have to support IobjectConstruct ... pretty simple, it's only one
method :
// IObjectConstruct
public:
        STDMETHOD(Construct)(IDispatch * pUnk);

You can add public IObjectConstruct, to your class definition...
And as Richard mentioned, also be sure to change
DECLARE_NOT_AGGREGATABLE(CYourClass) to DECLARE_AGGREGATABLE(CYourClass)...
(if you used the ATL MTS component wizard that is)


You should be able to move all your initializiation code to your
construction block (remember state information should also be
initialized/reinitialized in your activate and deactivate methods), add some
try/catch blocks to your construction method that should be able to tell you
if it's your initialization code that's causing the bomb (just throw up a
message box or something), or if it's your plumbing....




Ethan J. Brown
East Point Systems, LLC



Following situation:

A simple inprocess Com-Server with one simple method doing nothing built
with VS6.0 SP4. Threading Model is "both", "ATL_FREE_THREADED" is defined in
stdafx.h, public CComObjectRootEx<CComMultiThreadModel> in the inheritance
table.
Configured as not-transactional, pooled, JIT Com+ Component running as a
Server Application on Win2k Sp1. When you start the Application with the
Com+ Management Console the following message box appears: "Catalog Error...
server threw exception with code 80010105 ...". Sometimes it happens the
first time, sometime the seconde time... but without any doubt it will
appear! When you turn off pooling, the box doesn't appear.!

What's wrong?

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic