[Vala] valac crashes



Hi, compiler crashes at my source with this report:

problem is in database.vala (multidimensional array)

pk pk-laptop:~/Programming/speedyrss/src$ valac server.vala xml_parser.vala
feed.vala item.vala database.vala --pkg libxml-2.0 --pkg sqlite3 --pkg
gio-2.0 --pkg libuuid --vapidir ../vapi -X -luuid -g --save-temps
database.vala:123.4-123.15: warning: `null' incompatible with return type
`Database.Field[,]`
                        return null;
                        ^^^^^^^^^^^^
feed.vala:44.2-44.19: warning: method `Feed.remove' never used
        public void remove() {
        ^^^^^^^^^^^^^^^^^^
feed.vala:52.2-52.19: warning: method `Feed.set_id' never used
        public void set_id(string id) {
        ^^^^^^^^^^^^^^^^^^
feed.vala:5.3-5.14: warning: field `Feed.Feed.title' never used
                string title;
                ^^^^^^^^^^^^
feed.vala:6.3-6.13: warning: field `Feed.Feed.link' never used
                string link;
                ^^^^^^^^^^^
feed.vala:7.3-7.14: warning: field `Feed.Feed.usage' never used
                string usage;
                ^^^^^^^^^^^^
feed.vala:8.3-8.11: warning: field `Feed.Feed.id' never used
                string id;
                ^^^^^^^^^
item.vala:51.2-51.19: warning: method `Item.update' never used
        public void update() {
        ^^^^^^^^^^^^^^^^^^
item.vala:54.2-54.19: warning: method `Item.remove' never used
        public void remove() {
        ^^^^^^^^^^^^^^^^^^
item.vala:9.3-9.14: warning: field `Item.Item.title' never used
                string title;
                ^^^^^^^^^^^^
item.vala:10.3-10.13: warning: field `Item.Item.link' never used
                string link;
                ^^^^^^^^^^^
item.vala:11.3-11.13: warning: field `Item.Item.date' never used
                string date;
                ^^^^^^^^^^^
item.vala:12.3-12.11: warning: field `Item.Item.id' never used
                string id;
                ^^^^^^^^^
**
ERROR:arraylist.c:321:vala_array_list_real_get: assertion failed: ((index
= 0) && (index < self->priv->_size))
Zrušené (bol uložený výpis pamäte)

Attachment: database.vala
Description: Text document



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