Re: [Vala] Libgee problem



Gdb:

Program received signal SIGSEGV, Segmentation fault.
0x08048b75 in _main (args=0xbfbfe978, args_length1=1) at testlist.vala:14
14            stdout.printf (map[key].to_string());

Vala code:

using Gee;

static int main (string[] args) {

   var map = new HashMap<double?, double?> ();
   map.set (0.0, 0.0);
   map.set (1.0, 1.0);
   map.set (2.0, 2.0);
   map.set (9.0, 6.0);
   map.set (3.0, 3.0);
   map[4.0] = 4.0;
   map[5.0] = 5.0;
   foreach (double key in map.keys) {
       stdout.printf (map[key].to_string());
   }

   return 0;
}


Nicolas.

Could you post the code that segfaults? That's probably a bug in Vala.





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