Problems with wxLocale

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
Knows some wx things
Knows some wx things
Posts: 32
Joined: Mon Dec 20, 2004 10:28 am
Location: Rome, Italy (EU)

Problems with wxLocale

Post by dejudicibus » Wed Jun 08, 2005 9:01 pm

I just moved from 2.5.2 to 2.6.0, but my application crashed. I tried to
identify the offending instruction, and here it is:

Code: Select all

  #define wbxSTR_LOCALE_PATH wxT("locale")
  #define wbxSTR_LOCALE_CAT  wxT("dictionary")

  wxLocale * locale ;
  wxLanguage lang ;

  locale = new wxLocale() ;

  (void)locale->Init(lang, wxLOCALE_LOAD_DEFAULT) ;  // <-- THIS ONE!

 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 no
other way to understand where is the error. Can anybody help me, please?

Dario de Judicibus

User avatar
Ryan Norton
Posts: 1319
Joined: Mon Aug 30, 2004 6:01 pm

Re: Problems with wxLocale

Post by Ryan Norton » Wed Jun 08, 2005 11:24 pm

Platform and compiler please

Post Reply