minor clarification of broken build cases

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2005-07-08 10:16:44 +00:00
parent 8563c6f18a
commit d9f0e93224

View File

@@ -230,11 +230,11 @@ void wxClassInfo::Register()
sm_classTable = new wxHashTable(wxKEY_STRING);
}
// using IMPLEMENT_DYNAMIC_CLASS() macro twice (which may happen if you
// link any object module twice mistakenly) will break this function
// because it will enter an infinite loop and eventually die with "out of
// memory" - as this is quite hard to detect if you're unaware of this,
// try to do some checks here
// Using IMPLEMENT_DYNAMIC_CLASS() macro twice (which may happen if you
// link any object module twice mistakenly, or link twice against wx shared
// library) will break this function because it will enter an infinite loop
// and eventually die with "out of memory" - as this is quite hard to
// detect if you're unaware of this, try to do some checks here.
wxASSERT_MSG( sm_classTable->Get(m_className) == NULL,
_T("class already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() twice (may be by linking some object module(s) twice)?") );