Re: Re: send_action_list vala



On Sa, 2012-02-11 at 00:20 +0100, andrea zambon wrote:
> > Yes, despite the name, out_names and out_types are _input_ values. You
> > need
> > out_names.append ("SourceProtocolInfo");
> > out_names.append ("SinkProtocolInfo");
> > out_types.append (typeof (string));
> > out_types.append (typeof (string));
> 
> I believed that the method auto populates the two lists, names and type (out).

Hm yes, the docs are a bit unclear there. 

> Ok. Now, I see the 2 output, but another problem, I take this output
> at runtime when read out_values:
> 
> .....
> http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HD_24_AC3_ISO;SONY.COM_PN=AVC_TS_HD_24_AC3_ISO;DLNA.ORG_FLAGS=8d700000000000000000000000000000,http-get:*:video/x-mp2t-mphl-188:*
> *** glibc detected *** ./browsing-test: double free or corruption

Ok, I can reproduce that. It looks like mismatching alloc/free functions
are used.

> > Btw, the varargs versions work fine from Vala, why don't you use those?
> 
> I must build the input proxy.action dynamically.

Ok, then the list or hash version is of course more convenient.
Nevermind :)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]