diff --git a/src/common/object.cpp b/src/common/object.cpp index d502615e27..96f54f4277 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -276,11 +276,17 @@ void wxObject::AllocExclusive() wxObjectRefData *wxObject::CreateRefData() const { + // if you use AllocExclusive() you must override this method + wxFAIL_MSG( _T("CreateRefData() must be overridden if called!") ); + return NULL; } wxObjectRefData *wxObject::CloneRefData(wxObjectRefData * WXUNUSED(data)) const { + // if you use AllocExclusive() you must override this method + wxFAIL_MSG( _T("CloneRefData() must be overridden if called!") ); + return NULL; }