I just moved from wxWidgets 2.5.2 to 2.6.0, but my application crashed. I tried to
identify the offending instruction, and here it is:
#define wbxSTR_LOCALE_PATH wxT("locale")
#define wbxSTR_LOCALE_CAT wxT("dictionary")
wxLocale * locale ;
wxLanguage lang ;
lang = wxLANGUAGE_ITALIAN ;
locale = new wxLocale() ;
(void)locale->Init(lang, wxLOCALE_LOAD_DEFAULT) ; // <-- THIS ONE CRASHES!
locale->AddCatalogLookupPathPrefix(wbxSTR_LOCALE_PATH) ;
bool loaded = locale->AddCatalog(wbxSTR_LOCALE_CAT) ;
if (!loaded)
{
...
}
I cannot debug wxWidgets since size is too large for ilink32, so I have to compile it without debug info and I have no other way to understand where is the error. Can anybody help me, please?
Note that I use a dinamically allocated locale object.
Dario de Judicibus |