c++ bug: PXCBase::operator delete: destroyed object method call

c++ bug: PXCBase::operator delete: destroyed object method call

Аватар пользователя PAVEL S. (Intel)

PCSDK\include\pxcbase.h(28): in 'PXCBase::operator delete(void*)'  pure virtual Release() method is called after object destruction.

8 сообщений / 0 новое
Последнее сообщение
Пожалуйста, обратитесь к странице Уведомление об оптимизации для более подробной информации относительно производительности и оптимизации в программных продуктах компании Intel.
Аватар пользователя David Lu (Intel)

We will investigate and it will be fixed in future release. Thanks! David

Аватар пользователя Xintian Wu (Intel)

Could you submit a test case to reproduce this bug?

Аватар пользователя PAVEL S. (Intel)

ISO/IEC IS 14882 Programming languages - C++

12.4 Destructors [class.dtor]

Claim 14

Once a destructor is invoked for an object, the object no longer exists; the behavior is undefined if the destructor is invoked for an object whose lifetime has ended (3.8).



Аватар пользователя Xintian Wu (Intel)

Are you trying to implement a PXCBase class derived interface, say PXCGesture?
If so, you should implement it as
class MyGestureImpl: public PXCBaseImpl {
};

You can see that the PXCBaseImpl implements the desctructor.
There should not be cases as you described.
That's why I am asking for a test case.

Аватар пользователя Xintian Wu (Intel)

Are you trying to implement a PXCBase class derived interface, say PXCGesture?
If so, you should implement it as
class MyGestureImpl: public PXCBaseImpl {
};

You can see that the PXCBaseImpl implements the desctructor.
There should not be cases as you described.
That's why I am asking for a test case.

Аватар пользователя Xintian Wu (Intel)

It should be class MyGestureImpl: public PXCBaseImpl %lt PXCGesture %gt {
}

Аватар пользователя Xintian Wu (Intel)

It should be class MyGestureImpl: public PXCBaseImpl %lt PXCGesture %gt {
}

Зарегистрируйтесь, чтобы оставить комментарий.