Thread overview
std.utf Access Violation
Nov 19, 2004
Vathix
Nov 19, 2004
Thomas Kuehne
std.uri Access Violation
Nov 19, 2004
Vathix
November 19, 2004
import std.stdio;
import std.uri;
int main()
{
   writefln("%s", std.uri.encode("http://www.digitalmars.com/~fred/fred's RX.html#foo"));
   return 0;
}


Output (Windows):
Error: Access Violation


Seems to only happen if there's something to encode in the string. If I compile uri.d and link with it myself it works fine, so it might be that phobos.lib has an outdated version compiled in. I've had that problem in my own libs.
November 19, 2004
Vathix schrieb am Thu, 18 Nov 2004 22:15:44 -0500:
> import std.stdio;
> import std.uri;
> int main()
> {
>     writefln("%s", std.uri.encode("http://www.digitalmars.com/~fred/fred's
> RX.html#foo"));
>     return 0;
> }
>
>
> Output (Windows):
> Error: Access Violation

~wow~, this tiny programm sucks memory like a black hole! got killed under Linux when it passed the 2GB border.
November 19, 2004
oops, wrong subject. Should be std.uri  :P
I made that mistake like 4 times today.. too many acronyms!