Re: GIOChannel, how to free?

2007-04-05 Thread Chris Vine
On Thursday 05 April 2007 00:47, Iain * wrote: > On 4/4/07, Chris Vine <[EMAIL PROTECTED]> wrote: > > > > Sure. My question is, how many times (and when) do I have to call it? > > > > > > Once when you've finished with it > > > > In the context of his original question, that is not right. His orig

Re: GIOChannel, how to free?

2007-04-04 Thread Iain *
On 4/4/07, Chris Vine <[EMAIL PROTECTED]> wrote: > > > Sure. My question is, how many times (and when) do I have to call it? > > > > Once when you've finished with it > > In the context of his original question, that is not right. His original > question was whether the callback returning FALSE a

Re: GIOChannel, how to free?

2007-04-04 Thread Chris Vine
On Wednesday 04 April 2007 13:49, Iain * wrote: > On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: > > ext Iain * wrote: > > > http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io- > > >channel-unref > > > > > > perhaps? > > > > Sure. My question is, how many times (and when

Re: GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
ext Iain * wrote: > On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: >> Sure. My question is, how many times (and when) do I have to call it? > > Once when you've finished with it So I may assume that the flow I wrote in my first mail is correct (apart obviously substituting g_object_unref

Re: GIOChannel, how to free?

2007-04-04 Thread Iain *
On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: > ext Iain * wrote: > > http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-unref > > > > perhaps? > > Sure. My question is, how many times (and when) do I have to call it? > Once when you've finished with it iain __

Re: GIOChannel, how to free?

2007-04-04 Thread Alberto Mardegan
ext Iain * wrote: > http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-unref > > > perhaps? Sure. My question is, how many times (and when) do I have to call it? -- http://www.mardy.it <-- Geek in un lingua international! __

Re: GIOChannel, how to free?

2007-04-04 Thread Iain *
On 4/4/07, Alberto Mardegan <[EMAIL PROTECTED]> wrote: > > But according to the docs, g_io_channel_unix_new() creates the channel > with a reference count set to 1, so I guess we need a g_object_unref() > somewhere. http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-channel-unr

Re: GIOChannel

2006-10-25 Thread Tristan Van Berkom
Kevin DeKorte wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello all, > > I'm using the following code fragment > > ok = g_spawn_async_with_pipes("/tmp", argv, NULL, > G_SPAWN_SEARCH_PATH, > NULL, NULL, NULL, > &std_in, &std_out

Re: GIOChannel and win32?

2006-10-03 Thread Tor Lillqvist
Tomasz Jankowski writes: > [...] someone said [..] that GIOChannel may not work under the > Microsoft Windows? Is that true, or not? It depends. If you are lucky, porting a GIOChannel-using program that works fine on Linux or some other POSIX system to Windows is just a recompilation. In realit

Re: GIOChannel reference counting

2005-12-12 Thread Axel Simon
On Mon, 2005-12-12 at 10:56 +, Richard Warren wrote: > Dear all, > > I would be grateful if anyone could tell me whether I need to unreference a > GIOChannel in order to destroy it properly. > > Here's what I'm currently doing: > > 1. I create a channel with g_io_channel_unix_new() from a s