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

[Vala] [vala] how to call mem_set_vtable?

2009-12-13 Thread xiaohu
vala code: int main () { mem_set_vtable (mem_profiler_table); return 0; } will generate: #include glib.h #include glib-object.h gint _main (void); gint _main (void) { gint result; g_mem_set_vtable (glib_mem_profiler_table); result = 0; return result; } int

[Vala] Genie in Wikipedia

2009-12-13 Thread Hugo Florentino
I have created a new entry for Genie http://en.wikipedia.org/wiki/Genie_%28programming_language%29 in Wikipedia, because I believe this language already has enough notability as a dialect of Vala, which is well-known. However, the article is still in unreviewed state because it lacks proper

[Vala] [Genie] Bug in Genie ?

2009-12-13 Thread Nicolas
Hello, When i build this piece of code, i have this message: testbug.gs:9.65-9.65: error: syntax error, expected `)' but got `:' with previous identifier def test (mystring : string, files : SList of string, myint : int) Is it a bug in the genie parser ? I don't know if the problem appear

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] DBus bindings questions

2009-12-13 Thread Alexey Morozov
Hello! I've just started to play with Vala and its DBus bindings, created a sample service and found that service methods names are mangled when exported to DBus. For example a method named in Vala sources as get_fan_speed() becomes GetFanSpeed(), set_feature() becomes

[Vala] A seemingly impossible segfault.

2009-12-13 Thread Michael Trausch
I'm not entirely sure *where* in the stack the issue is. I'm using Vala 0.7.7, and when I compile the libvfcgi project I am receiving a segfault at line 56 of http://is.gd/5mlyT -- however, a segfault there should not be possible, as I understand it. So, either I'm doing something horribly wrong