2.7 crash

This simple file here crashes the 2.7 preview build:

import wx
wx.Locale(wx.LANGUAGE_DEFAULT)

-Matthias

Hello Matthias,

This simple file here crashes the 2.7 preview build:

import wx
wx.Locale(wx.LANGUAGE_DEFAULT)

Yes, but if you look at the error message:

import wx
wx.Locale(wx.LANGUAGE_DEFAULT)

18:07:20: Debug: ..\..\src\common\stdpbase.cpp(51): assert "traits" failed in wx
StandardPathsBase::Get(): create wxApp before calling this

You'll see that if you create an app before calling wx.Locale()
everything goes smoothly (at least here). Maybe this wasn't required
before... no idea.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

Hello Matthias,

This simple file here crashes the 2.7 preview build:

import wx
wx.Locale(wx.LANGUAGE_DEFAULT)

Yes, but if you look at the error message:

import wx
wx.Locale(wx.LANGUAGE_DEFAULT)

18:07:20: Debug: ..\..\src\common\stdpbase.cpp(51): assert "traits" failed in wx
StandardPathsBase::Get(): create wxApp before calling this

Hmm, I don't get that debug message over here. Immediately after that command python.exe crashes hard. I will try the wx.App solution though, already thought that not having a wx.App might cause the crash. The error is caused by the script in here: http://wiki.wxpython.org/index.cgi/Internationalization . For now I have "fixed" the error by switching to 2.6 via import wxversion. When I get more time I'll see if I can fix the script in the wiki.

You'll see that if you create an app before calling wx.Locale()
everything goes smoothly (at least here). Maybe this wasn't required
before... no idea.

Seems like 2.6 doesn't require it.

Thanks for your help.

-Matthias

ยทยทยท

Am 15.10.2006, 18:09 Uhr, schrieb Andrea Gavana <andrea.gavana@gmail.com>: