Hello,
there is already a delete keyword defined for pointers, and I think it
is the only
way to free pointers, if you don't use the delete statement you are
leaking the allocated memory,
here is an example:
== example.vala
using GLib;
public struct Example {
public int first;
public int sec
Hi,
I started writing a vapi for a c library and I want to use instance_pos to set
the place of the instance parameter.
Problem is, I need it to be the *second param*, but instance_pos = 1 or
instance_pos = 2 remove it altogether.
I tested it a bit end it turned out 0 > values < 1 - make it the
Hi Guys
I am playing with Vala with a view to presenting information about it at
our companies developer conference in a couple of weeks. With this in
mind I am trying to build up a test application that shows video
playback using GStreamer. I am having problems with the following code:
priva
Hi,
2008/11/14 Spencer, Matthew <[EMAIL PROTECTED]>:
> Hi Guys
>
> I am playing with Vala with a view to presenting information about it at our
> companies developer conference in a couple of weeks. With this in mind I am
> trying to build up a test application that shows video playback using
> G
On Fri, Nov 14, 2008 at 6:12 PM, Spencer, Matthew <[EMAIL PROTECTED]> wrote:
> I thought it was something like this. Thanks for the feedback, this has
> fixed the problem.
>
> Reading through the documents, shouldn't I be able to do something like:
>
> bin.add_many(#element1,#element2,#elemenr3)
I thought it was something like this. Thanks for the feedback, this has
fixed the problem.
Reading through the documents, shouldn't I be able to do something like:
bin.add_many(#element1,#element2,#elemenr3)
To indicate to valac the passing of ownership to the bin?
Matt
-Original Messag
The problem I have with that approach however is that the elements will
be set to NULL after passing ownership to the bin, so I can no longer
use them in the functions. What I need is the ability to pass ownership
and change them into weak references for the rest of the function scope.
I don't sup
Sure, that will work. But most people who use GStreamer are used to the
convenience function add_many and will want to be able to use this when
using Vala.
Matt
-Original Message-
From: Thijs Vermeir [mailto:[EMAIL PROTECTED]
Sent: 14 November 2008 17:29
To: Spencer, Matthew
Cc: vala-l
On Fri, Nov 14, 2008 at 6:22 PM, Spencer, Matthew <[EMAIL PROTECTED]> wrote:
> The problem I have with that approach however is that the elements will
> be set to NULL after passing ownership to the bin, so I can no longer
> use them in the functions. What I need is the ability to pass ownership
>
On Fri, 2008-11-14 at 18:07 +0100, Thijs Vermeir wrote:
> bin.add_many is the problem because the c function takes the
> ownership, but the bindings don't do it. Just use bin.add for every
> element as a workaround...
I've fixed the gst_bin_add_many binding in vala trunk. Let me know if
there are
On Fri, 2008-11-14 at 04:29 -0800, Mihail Naydenov wrote:
> Hi,
> I started writing a vapi for a c library and I want to use
> instance_pos to set the place of the instance parameter.
> Problem is, I need it to be the *second param*, but instance_pos = 1
> or instance_pos = 2 remove it altogether.
11 matches
Mail list logo