<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 143: gtkglext, Segmentation fault, memory leak</title><link>https://sourceforge.net/p/ruby-gnome2/bugs/143/</link><description>Recent changes to 143: gtkglext, Segmentation fault, memory leak</description><atom:link href="https://sourceforge.net/p/ruby-gnome2/bugs/143/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 17 Mar 2010 19:32:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ruby-gnome2/bugs/143/feed.rss" rel="self" type="application/rss+xml"/><item><title>gtkglext, Segmentation fault, memory leak</title><link>https://sourceforge.net/p/ruby-gnome2/bugs/143/</link><description>There is Segmentation fault in example program of using gtkglext library.

I modyfied this program:
1\. Added "timer" like this: GLib::Timeout.add\(2\) \{@gl\_area.queue\_draw\}
2\. Added field that makes OpenGL triangle rotating.

After some time of working there is output:
$ ruby testGL2.rb 
key\_press\_event
testGL2.rb:97: \[BUG\] Segmentation fault
ruby 1.8.7 \(2009-06-12 patchlevel 174\) \[x86\_64-linux\]

Aborted


If you run program you have to press some key to start "timer".

If you turn off Garbage Collector "GC.disable" then there are not segmentation fault, but program space in memory highly increese.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tomasz Wojtyś</dc:creator><pubDate>Wed, 17 Mar 2010 19:32:20 -0000</pubDate><guid>https://sourceforge.net5a3dfc8cca0cb651e8eb34005241ac6f9d37a60e</guid></item></channel></rss>