Some weird crashes
simendsjo
simen.endsjo at pandavre.com
Mon Feb 28 11:04:44 PST 2011
On 28.02.2011 18:52, simendsjo wrote:
>
> // ERROR
> auto res = mysql_library_init(0, null, null);
>
> auto cn = mysql_init(null);
> auto oldcn = cn;
>
> writeln(mysql_errno(cn));
> assert(cn == oldcn); // when the last assert is active, the above line
> changes cn and thus fails.
>
> auto err = mysql_errno(cn);
> assert(cn == oldcn);
Btw, if I don't use writeln it doesn't fail..
More information about the Digitalmars-d-learn
mailing list