Re: [Vala] [Fwd: Binary File is not seekable ?!?]
- From: raum no-log org
- To: void995 gmail com
- Cc: vala-list gnome org
- Subject: Re: [Vala] [Fwd: Binary File is not seekable ?!?]
- Date: Sun, 27 Oct 2013 11:00:25 +0100
I've downloaded source tarball of Vala 0.22, compiled and install it but
no effect... :-/
I was wondering if it was not a system problem. But I can not admit that I
would have to reinstall linux to make it work. I'll search for reinstall
only glib....
Thanks
Raum
Seems like it is problem with glib2 package, try to reinstall it, I can't
say how it exactly called in Ubuntu, because I'm not an Ubuntu user.
From:
raum no-log orgSent:
??????,
26
??????
2013
?.
22:17To:
vala-list gnome orgSubject:
Re:
[Vala]
[Fwd:
Binary
File
is
not
seekable
?!?]
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
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]