Hello Under MingW / Windows, I've this :
$ valac --pkg gio-2.0 seek.vala (...)/seek.vala.c: In function 'main': (...)/seek.vala.c:80:2: warning: 'g_type_init' is deprecated (declared at D:/cross-compile/opt/include/glib-2.0/gobject /gtype.h:669) [-Wdeprecated-declarations] $ ./seek seekable: true What's going wrong ? o_O Thanks raum ---------------------------- Message original ---------------------------- Objet: [Fwd: Binary File is not seekable ?!?] De: [email protected] Date: Ven 25 octobre 2013 8:51 À: [email protected] -------------------------------------------------------------------------- ps: the mailing list seems to have a problem. I've posted this message three times, I hope it appears ;) Sorry if you received it earlier. Hello, I'm trying to seek in a binary file... Under MingW / Windows, I've no problem but with linux I've a "G_IS_SEEKABLE failed" error : Example of code "seek.vala" : public void main() { try { File file = File.new_for_path ("test.pcap"); DataInputStream dis = new DataInputStream (file.read ()); stdout.printf("seekable: %s\n",(dis.can_seek())?"true":"false"); } catch (Error e) { } } Output : $ ./seek (process:8097): GLib-GIO-CRITICAL **: g_seekable_can_seek: assertion `G_IS_SEEKABLE (seekable)' failed seekable: false Where am I wrong ? DataIntputStream has "seekable" interface... Thanks Regards Raum _______________________________________________ vala-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/vala-list
