Spot the Bug

Aug 28, 2006 15:29

This is my favourite self-inflicted bug in quite some time. Not too painful, but I actually giggled in the end. I have distilled all the meaningful parts for those of you playing the home game. It's a little trickier sifting through 600-ish lines of code.

Language: C#
Symptom: Seemingly random null-reference exceptions with no stack trace

public ( Read more... )

Leave a comment

Comments 4

cryptomancer August 30 2006, 04:22:23 UTC
The CLR garbage collected the Callback reference.

Reply

indiglo_i August 30 2006, 04:28:15 UTC
You are so right!
However, you are also soooo disqualified for being a tester on C# :-)

Reply

cryptomancer August 30 2006, 04:30:53 UTC
I wouldn't have seen it if I didn't know there was a bug there though.

and I wasn't on the CLR! I had to google the UnmanagedType class and that pointed to the error!

So I didn't do it without help.

Reply

canadianveggie August 30 2006, 21:31:57 UTC
Wow. That's a really funny bug. I never would have figured that out.

Reply


Leave a comment

Up