Sigh.. clearly you should not listen to me.. I can't even use gmail.. My apologies if this has landed on the list a couple of times :D
On Tue, Oct 15, 2013 at 4:06 AM, Donn Ingle <[email protected]> wrote: > Hello, > //Have tried Cairo.PathData[] data; I don't know anything about Cairo, but you're not actually initializing the array.. A quick glance at the cairo vapi, and I think you really want this?: Cairo.PathData[] data = path.data; Or you can keep referencing it through this.path.data[], and lose the extra assignment. Again, I don't know Cairo, so I could be completely wrong on usage. But the error is because you've never initialized an array. (neither does "var data = this.path.data[i];".. that tries to set data to a single element of type PathData.. not an array of all PathData) However, the more I look at the example, the more I think it doesn't make sense. Is path ever initialized? Should you be inheriting from Cairo.Path instead of Object? public abstract class Shape : Cairo.Path { vs. public abstract class Shape : Object { ? And then this.new_path() in a constructor? Someone with Cairo experience will be able to help more than I will.. Shawn _______________________________________________ vala-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/vala-list
