Memory corruption rant.

Kagamin spam at here.lot
Wed May 18 00:19:57 PDT 2011


Jesse Phillips Wrote:

> writeln("I"m still ok")
> writeln(myObject is null); // Crash with access violation

try
writeln("I'm still ok");
writeln(0);
writeln(false);

> I'm not even accessing myObject, I'm just asking if it has a value it shouldn't!

Did you try a debugger?
At least, you can see where it crashes.


More information about the Digitalmars-d-learn mailing list