Hi, you should make unowned the array, like this:
> [CCode (cheader_filename = "oslib/os.h")]
> namespace OSLib
> {
> //[SimpleType]
> //[Compact]
> [CCode (cname = "os_error", cprefix = "", clower_case_prefix = "")]
> public struct OSError {
> public int errnum;
> public unowned char[252] errmess;
> }
> }
>
If you put some memory managed objects in a struct (strings, arrays,
Objects, etc) they have to be destroyed, but i you don't have that you
should put unowned to that objects.
Matias
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list