[gtkmm] Re: gtkmm 2.4 or gtk 2.4 bug
- From: Cedric Gustin <cedric gustin swing be>
- To: Diana Esch-Mosher <desch-mosher lanl gov>
- Cc: gtkmm-list gnome org
- Subject: [gtkmm] Re: gtkmm 2.4 or gtk 2.4 bug
- Date: Fri, 01 Oct 2004 10:26:45 +0200
Diana Esch-Mosher wrote:
On vmware (windows XP professional)
A bug! I have attached an example that clearly demonstrates the problem.
Compile as g++ drawingarea.cc -o test `pkg-config gtkmm-2.4 --cflags
--libs`
This is just the drawingarea example with
std::cout << "getting color" << std::endl;
Glib::RefPtr<Gdk::Colormap> colormap = get_default_colormap ();
blue_ = Gdk::Color("blue")
red_ = Gdk::Color("red");
colormap->alloc_color(blue_);
colormap->alloc_color(red_);
added to the expose event (was cloned from realize event).
Lay another window on top and just toggle between to cause expose event.
On the 23rd time it dies with
Gdk-WARNING **: gdkcolor-win32.c:111: DeleteObject failed: Not enough
storage is available to process this command.
Very repeatable on 23rd event ....
Don't have 2.4 on linux yet, so can't try it there.
Crashes on Fedora Core 2 (linux-2.6.8) after the 46th event. This is
against the recently released gtkmm-2.4.5 rpms from fedora.us.
Did you try with a similar example written only with the GTK+ C API ?
Cedric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]