[Mono-list] Ignoring NullReferenceExceptions from Mono in gdb
Chris Seaton
chris at chrisseaton.com
Thu Mar 22 10:56:47 EDT 2007
Yeah, I know this. It's actually a testing routine where I run code
knowing that it will null reference, but running it will check that
Mono can verify the IL. It's not the logic of my program that I'm
testing - it's the IL that I've generated.
Any solution to my problem with gdb?
Chris
On 22 Mar 2007, at 14:51, Alan McGovern wrote:
> Throwing NullReferenceException is a normal part of the operation of
> a part of my program, sometimes several thousands will be thrown.
>
> Then you *really* should review the logic in your program.
> Controlling logic through exception throwing is generally pretty
> bad programming practice.
>
> If a null value is an expected input then you should be able to
> program proper handling for it. Exceptions should only be thrown in
> exceptional circumstances.
>
> Alan
More information about the Mono-list
mailing list