Memory corruption rant.

Kagamin spam at here.lot
Thu Jun 2 03:55:14 PDT 2011


Kagamin Wrote:

> writeln("I'm still ok");
> asm
> {
>  cmp EBP,0;
>  ja ok;
>  hlt;
> ok: nop;
> }
> writeln("Still ok");
> if(myObject is null)
>    writeln("3");
> else
>    writeln("4");

without hlt:

asm
{
 cmp EBP,0;
 ja ok;
 call _msg;
ok: nop;
}

extern(C) void msg()
{
 writeln("msg hit");
 assert(0);
}


More information about the Digitalmars-d-learn mailing list