You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS 2022 complains with warning C5205 because Provider abstract class defines a non virtual destructor, which may lead to undefined behaviour as objects destruction in ndfrmwrk.cpp use static binding instead of dynamic binding.
Suggested correction :
To ensure all destructors are called, nedd to change ~Provider(void); to virtual ~Provider(void); in ndprov.h
Should also comment (or delete) ~NdV1Provider(); and ~NdProvider(); definitions, since these derived constructors are not implemented.
Same potential memory leak in test abstract classes, that may be improperly destroyed. In ndtestutil.h, change destructors from ~NdTestBase(); to virtual ~NdTestBase(); , and ~NdTestServerBase(); to virtual ~NdTestServerBase();.
VS 2022 complains with warning C5205 because
Provider
abstract class defines a non virtual destructor, which may lead to undefined behaviour as objects destruction inndfrmwrk.cpp
use static binding instead of dynamic binding.Suggested correction :
~Provider(void);
tovirtual ~Provider(void);
in ndprov.h~NdV1Provider();
and~NdProvider();
definitions, since these derived constructors are not implemented.The text was updated successfully, but these errors were encountered: