Hello,
Let me explain. I want to create a tool for Linux and Windows.
I need to open a binary file and seek to a position... With MingW on
Windows, it runs without error but on Linux, I've a "seekable" error with
the same code, same compile options, etc.
I dont understand why...
##### Code
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) {
}
}
##### WINDOWS 32bits / MingW32
$ valac --pkg gio-2.0 seek.vala
$ ./seek
seekable: true
###### LINUX -Ubuntu 13.03- 64 bits
$ valac --pkg gio-2.0 seek.vala
$ ./seek
(process:8097): GLib-GIO-CRITICAL **: g_seekable_can_seek: assertion
`G_IS_SEEKABLE (seekable)' failed
seekable: false
Do you have an idea why it's running on Windows but not on Linux ?
Thanks
Raum
_______________________________________________
vala-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/vala-list