Posted on 2005-06-08 13:36:35-07 by dejudicibus
wxMSW 2.6.0 - wxLocale crashes my application

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
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.