Tuesday, December 05, 2006

Jävla rövar, kanske del 2

Jag har ibland fått rätt knasiga beteenden när mina asserts har smällt i min kod, och inte riktigt vetat varför. Idag hittade jag den här pärlan i MSDN
Calling the Assert method on the Debug class from within the Tick event may not behave as expected, as displaying the assertion dialog box may cause Windows to raise the Tick event repeatedly. We recommend that you refrain from testing assertions within this event, and use the Write, WriteIf, WriteLine, or WriteLineIf methods instead.
Aha, så jag ska inte skydda min kod på något vettigt sätt, för då smäller ert jävla skitramverk. Grrr..