Comment 8 for bug 1346678

Revision history for this message
Piotr Marcinkowski (md5sum) wrote :

Hallo all,

I think i have found root cause. The problem is calling `foreach` on HashTable. It seems that `foreach` does not iterate througth HashTable properly. I checked it by pasting the followed code into `reorder_request` member function (right after quicksort) in FastView.vala file.

Code:
        stderr.printf("\n\nresort\n");
        table.foreach ((key, val) => {
            stderr.printf("%s\n", ((Media)val).get_display_title ());
        });

        stderr.printf("\n\nresort2\n");
        for(int i = 0; i < table.size(); ++i) {
            stderr.printf("%s\n", ((Media)table.get (i)).get_display_title ());
        }

Please find the result attached.
Calling foreach on HashTables was introduced in rev 1601.