[wx3.0.1] wxTranslations::Set() crashes
Posted: Fri Mar 20, 2015 11:39 am
Hello all,
I have the requirement to show dialogs and messages in adjustable language, but numbers, times, currency should always be in English locale.
So I created
This works well so far. But when I close the app, I got a wxTranslations destructor error. But it's not from my wxTranslations object.
The object to be destructed seems to contain uninitialized pointers. What can I do? Thanks for any help.
I have the requirement to show dialogs and messages in adjustable language, but numbers, times, currency should always be in English locale.
So I created
Code: Select all
// globals
wxTranslations translation;
MyApp::OnInit() {
m_Language = wxLANGUAGE_GERMAN; // example
locale.Init(wxLANGUAGE_ENGLISH, wxLOCALE_DONT_LOAD_DEFAULT);
translation.AddCatalog("DI", m_Language);
translation.SetLanguage(m_Language);
wxTranslations::Set(&translation);
}
The object to be destructed seems to contain uninitialized pointers. What can I do? Thanks for any help.