Known issue with Windows and XPM?

Carsten A. Arnholm arnholm at offline.no
Thu Dec 20 14:13:05 PST 2007


Gerald Brandt wrote:
>> Hi,
>>
>> I'm running 2.8.7 on windows XP. I have an app that runs great undet
>> Linux, but crashes under Windows. The crash happens when I load an
>> XPM bitmap from memory.
>>
>> Specifically it's in xpmdecod.cpp line 615, on the free(name). It
>> hits this line in the xpm and dies: " c None",
>>
>> I've attached the XPM, if it helps.
>>
>> Gerald

Hi,

You could try changing it from

static char * project_open_xpm[] = {
"32 32 451 2",
"   c None",
".  c #0028C0",
<snip rest>

to

static char * project_open_xpm[] = {
"32 32 451 2",
"   c None   ",
".  c #0028C0",
<snip rest>

i.e. add 3 spaces after None. I believe I have seen similar issues myself. 
If you look at the code in courier font the left quotes should line up.

-- 
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457 








More information about the wx-users mailing list