From: Sutou K. <ko...@co...> - 2020-08-01 22:36:01
|
Hi, In <f0b...@ud...> "[ruby-gnome2-devel-en] problems with ruby/gtk/tcp" on Fri, 31 Jul 2020 13:25:40 +0200, amerke <art...@ud...> wrote: > i've problems with core dumps using ruby, gtk and tcp connections. my > application is much larger, but here a minimized version: You need to keep reference of the channel: # ... @channels = [] ss.signal_connect("incoming") do |_, conn, _| # ... channel= GLib::IOChannel.new(conn.input_stream.socket.fd) @channels << channel channel.add_watch(GLib::IOChannel::IN) do # ... Thanks, -- kou |