FW: SetIcon in sample programs causing BadAlloc error in gdk
(wx2.8.3, SunStudio12, g++ 3.4.3)
Bond, Gary D
gary.d.bond at lmco.com
Thu Mar 27 18:01:39 PDT 2008
I recently installed wx2.8.3 on a solaris box and encountered a runtime
problem (program exited in gdk code) when running the listctrl sample
(actually the problem occurs in any sample using SetIcon). I used
configure to perform a debug build of gtk2. I ran the listctrl sample
and the application died with the following backtrace (I'm sorry it is
only a partial listing, but the program is on a classified system and I
cannot transfer the full backtrace to an unclassified host)
exit
gdk_x_error
_XError
_XReplay
XSync
_gdk_x11_copy_to_image
gdk_drawable_copy_to_image
gdk_pixmap_copy_to_image
gdk_drawable_copy_to_image
gdk_pixbuf_get_from_drawable
wxBitMap::GetPixbuf
wxTopLevelWindowGTK::SetIcons
wxTopLevelWindowGTK::SetIcon
MyFrame::MyFrame
MyApp::OnInit
wxAppCOnsole::CallOnInit
wxEntry
main
Once I comment out the SetIcon call the application runs fine. Can
anyone tell me what needs to be done to fix this problem? The problem
also arises in the toolbar example. I commented out the SetIcon but when
adding tools to the toolbar the problem occurs again
(wxToolBarTool::SetImage line 131).
Thanks for your assistance. Please let me know if you have any
questions.
Version Information:
I'm using SunStudio12 and my g++ compiler version information is as
follows:
g++ -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3.specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Thanks for your assistance. Please let me know if you have any
questions.
Gary Bond, Ph.D.
Lockheed Martin
Signals Reconnaissance Programs
Information Systems & Global Services
Phone: 303-932-4356, FAX: 303-932-5092
Mail Stop: DC3740
L
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080327/e1756711/attachment-0001.htm
More information about the wx-users
mailing list