Re: [Vala] problem with GNet Connhttpeventresponse



jezra wrote:
I can now compile without error, but when I try to read the length of
the header_fields variable, I get a -1.

Yes, that's because it's a null terminated array and has no length
information. But just recently Vala has a solution for that problem:
http://bugzilla.gnome.org/show_bug.cgi?id=514186

Try

  [CCode (array_length = false, array_null_terminated = true)]

Regards,

Frederik



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