Some weird crashes

simendsjo simen.endsjo at pandavre.com
Tue Mar 1 12:01:21 PST 2011


On 28.02.2011 20:24, Denis Koroskin wrote:
> On Mon, 28 Feb 2011 22:04:44 +0300, simendsjo
> <simen.endsjo at pandavre.com> wrote:
>
>> 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..
>
> I think you have a bug at line 42.
>
> On a serious note, it might have helped if you'd attached source code,
> or at least binaries.

Hmmm.. Seems my post last night didn't get through..
Here's the code and necessary libraries: http://share1t.com/4xgt2l


More information about the Digitalmars-d-learn mailing list