It's been some years since I got an email related to COM and OLE, and in this case it was Lun Ui of who identified a bug in the iclass.cpp files of the Cosmo Server implementation that caused a failure. Specifically:


STDMETHODIMP_(ULONG) CFigureClassFactory::Release(void)


    if (0 ==–m_cRef)  // BUG: should be !=

        return m_cRef;


    delete this;

    return 0;



Thanks, Lun!


Leave a Reply

Your email address will not be published. Required fields are marked *