Hello all.

I cannot find good URI parsing library for GLib so i stuck with GURI
from legacy GNet. Nut sure what I'm doing wrong but even this small
example sefaults:

// uri.vala
//
// valac --pkg gnet-2.0 uri.vala && ./uri

void main (string[] args) {
        var uri = new GNet.URI("http://antono.info:80/";);
        debug("HOST: %s", uri.hostname);
        debug("PORT: %d", uri.port);
}

// valac --pkg gnet-2.0 uri.vala && ./uri
// ** (process:16111): DEBUG: uri.vala:7: HOST: antono.info
// ** (process:16111): DEBUG: uri.vala:8: PORT: 80
// Segmentation fault (core dumped)

Any advise?

// uri.vala
//
// valac --pkg gnet-2.0 uri.vala && ./uri

void main (string[] args) {
	var uri = new GNet.URI("http://antono.info:80/";);
	debug("HOST: %s", uri.hostname);
	debug("PORT: %d", uri.port);
}

// valac --pkg gnet-2.0 uri.vala && ./uri
// ** (process:16111): DEBUG: uri.vala:7: HOST: antono.info
// ** (process:16111): DEBUG: uri.vala:8: PORT: 80
// Segmentation fault (core dumped)
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to