#468 Incorrect interface definition (crash)

Known_bugs
closed-fixed
nobody
2003-12-08
2003-12-08
No

in file oleidle.h

DECLARE_INTERFACE_(IViewObject2,IUnknown)

should be

DECLARE_INTERFACE_(IViewObject2,IViewObject)

As IViewObject2 hinerits directly from IViewObject.

class A : public IViewObject2
{
};

Compiles in both compilers but if you try to get a
IViewObject interface on mingw then the vtable is
screwed and the first call on the IViewObject interface
results in the destructer of the object being called.

class B : public IViewObject, public IViewObject2
{
};

results in a compiler failure with msvc, but is needed in
order to avoid crashing in mingw.

Discussion

  • Danny Smith

    Danny Smith - 2003-12-08

    Logged In: YES
    user_id=11494

    Thanks
    Fixed in CVS
    Danny

     
  • Danny Smith

    Danny Smith - 2003-12-08
    • status: open --> closed-fixed
     
  • Danny Smith

    Danny Smith - 2003-12-08

    Logged In: YES
    user_id=11494

    Thanks
    Fixed in CVS
    Danny

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks