ID:               15635
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         COM related
 Operating System: 2000
 PHP Version:      4.1.1
 New Comment:

does this component work in any other environment ?
'locks the browser' is a very wage fordable description of your problem
as the browser is in no relation with your com server. so can you look
into your servers error log or try to figure out some more details
somehow else.
i use lots of singleton objects here and i have no problems with them.

harald


Previous Comments:
------------------------------------------------------------------------

[2002-02-19 18:23:25] [EMAIL PROTECTED]

I noticed that loading a COM object that has been declared as a
singleton locks up the browser. I created a simple COM object (header
follows), and if I add the SINGLETON macro to the com object, it will
hang on instantiation. If anybody has a solution, or a work around, I
would greatly appreciate it. It looks as though only simple apartment
level COM objects are acceptable. Thank you. Tom Lee



class ATL_NO_VTABLE CIt : 
        public CComObjectRootEx<CComSingleThreadModel>,
        public CComCoClass<CIt, &CLSID_It>,
        public IDispatchImpl<IIt, &IID_IIt, &LIBID_TESTLib>
{
public:
        CIt()
        {
        }

DECLARE_REGISTRY_RESOURCEID(IDR_IT)

// Below macro will destroy the object
DECLARE_CLASSFACTORY_SINGLETON(CIt) // <<<< This it it!!!

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CIt)
        COM_INTERFACE_ENTRY(IIt)
        COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()

// IIt
public:
        STDMETHOD(Now)();
protected:

};

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15635&edit=1

Reply via email to