Re: [Vala] "Asynchronous Stream Reading" example does not work



Anatol Pomozov wrote:
I was able to localize it. With following code I have "Operation not
supported" Error. I am not sure what exactly operation is not
supported....


public class AsyncReadLineTest {
        public static int main(string[] args) {
            File f = File.new_for_uri("http://www.gnome.org";);
            try {
              DataInputStream di_stream = new DataInputStream(f.read(null));
            } catch (GLib.Error e) {
                print("%s\n", e.message);
            } 
          return 0;
        }
}

I think you need to have gvfs [1] installed and gvfsd running.


Best regards,

Frederik

[1] http://trac.macports.org/browser/trunk/dports/devel/gvfs/Portfile



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