[Mono-list] Ignoring NullReferenceExceptions from Mono in gdb

Alan McGovern alan.mcgovern at gmail.com
Thu Mar 22 10:51:22 EDT 2007


>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070322/98157bdc/attachment.html 


More information about the Mono-list mailing list