Forum: Ruby-Gnome 2 Gdk::Pixbuf.new(image) - When will there be errors? Memory Usage

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2013-12-28 20:48
Hi,

My current computer has ruby 1.9.3pxxx

I have almost 4 Gig RAM.

When I use:

  Gdk::Pixbuf.new()

And then

  image.set(small_image)

Where image is

  image = Gtk::Image.new()

The problem I run into is this:

  "Insufficient memory to load image file"

Does anyone know if this is common? Or perhaps I have a
problem with my code... I am trying to find out if I
can easily re-load new images and display them in a
widget which holds a Gtk::Image.new instance.
This topic is locked and can not be replied to.