June 02, 2011 Re: Memory corruption rant. | ||||
---|---|---|---|---|
| ||||
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);
}
|
Copyright © 1999-2021 by the D Language Foundation