Re: [Vala] Problem with Closure in Coroutine

2009-12-13 Thread Jürg Billeter
On Sat, 2009-12-12 at 19:18 +0100, Michael 'Mickey' Lauer wrote: The problem seems to be that the data for the closure (_data_-_data2_) gets unref'ed when the function ends; however Gst is calling the callback later on and then the instance is 0x0. The C code for this function is: Can you

Re: [Vala] Problem with Closure in Coroutine

2009-12-13 Thread Michael 'Mickey' Lauer
Am Sonntag, den 13.12.2009, 11:01 +0100 schrieb Jürg Billeter: On Sat, 2009-12-12 at 19:18 +0100, Michael 'Mickey' Lauer wrote: The problem seems to be that the data for the closure (_data_-_data2_) gets unref'ed when the function ends; however Gst is calling the callback later on and

Re: [Vala] Problem with Closure in Coroutine

2009-12-13 Thread Jürg Billeter
On Sun, 2009-12-13 at 13:00 +0100, Michael 'Mickey' Lauer wrote: Am Sonntag, den 13.12.2009, 11:01 +0100 schrieb Jürg Billeter: On Sat, 2009-12-12 at 19:18 +0100, Michael 'Mickey' Lauer wrote: The problem seems to be that the data for the closure (_data_-_data2_) gets unref'ed when the

[Vala] Problem with Closure in Coroutine

2009-12-12 Thread Michael 'Mickey' Lauer
Gnome bugzilla is down today, so after the deafening silence on IRC I figured I might give mail a chance. This function: public override async void play_sound( string name, int loop, int length ) throws