[Mono-devel-list] Hidden Exceptions

Sébastien Robitaille sebastien.robitaille at croesus.com
Wed Feb 16 03:14:21 EST 2005


Hello,

while trying to investigate some performance issues that we have with our product when running under mono, I added a
System.Console.WriteLine in the constructors of the Exception class to see if there was any exception thrown in our code.

I discovered that there are 3 exceptions that are always thrown when starting any application (even a small "Hello World" program).

The exceptions are the following:

[1] System.OutOfMemoryException: Out of memory
[2] System.NullReferenceException: A null value was found where an object instance was required
[3] System.StackOverflowException: The requested operation caused a stack overflow.

I was wondering if these were "real" exceptions or not... Any idea ?

BTW, Is there a better way to print the exceptions thrown by a program running under mono, without interfering with the execution of
the program?

Thanks.
Sébas




More information about the Mono-devel-list mailing list