[ wxwindows-Bugs-1640087 ] crash in GetRGBFromName
SourceForge.net
noreply at sourceforge.net
Fri Jan 19 23:20:28 PST 2007
Bugs item #1640087, was opened at 2007-01-20 08:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1640087&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Generic
Group: Fatal
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Steven Van Ingelgem (g00fy)
Assigned to: Nobody/Anonymous (nobody)
Summary: crash in GetRGBFromName
Initial Comment:
Hi,
Inside xpmdecod.cpp, there is a function called "GetRGBFromName".
In this function 'char* name' is assigned the return of wxStrdupA(inname).
It seems to be doing that OK (in that *name has a different memory location, but the same value as inname).
The problem is when it reaches the 'free(name)'. There it crashes on Windows XP/SP2. But it works fine under Windows2000/SP4 and under Ubuntu.
The way I got this crashing is:
#include "icon.xpm"
SetIcon( wxIcon(icon_xpm) );
Hopes this helps you recreating this problem.
Oh btw:
UNICODE build, on WindowsXP/2 with MSVC7.1
Greetz,
Steven
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1640087&group_id=9863
More information about the wx-dev
mailing list