Re: [Vala] SQLite segfault when used in a class
- From: Jürg Billeter <j bitron ch>
- To: Alessandro Pellizzari <alex amiran it>
- Cc: Vala ML <vala-list gnome org>
- Subject: Re: [Vala] SQLite segfault when used in a class
- Date: Sat, 12 Jan 2008 12:58:30 +0100
On Sat, 2008-01-12 at 12:20 +0100, Alessandro Pellizzari wrote:
On ven, 2008-01-11 at 12:22 -0600, Travis Watkins wrote:
Your callback method should be decorated with [InstanceLast] and you
should pass 'this' in as the user data in the exec call (I think
that's what the null area is for anyway).
OK, I am totally stupid. :)
I forgot [NoArrayLength ()] as callback decorator, so the parameters got
shifted and messed up. :/
I noticed it only diff-ing the demo's C-generated code and mine. The
callback signature was completely different.
I am not (yet) used to decorators... :)
[InstanceLast] and [NoArrayLength] are only temporary workarounds, valac
will be able to get the parameter ordering right without any
annotations.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]