[Mono-list] Diagnostic Messages

Paolo Molaro lupus@ximian.com
Thu, 30 May 2002 11:38:36 +0200

On 05/29/02 Jonathan Pryor wrote:
> There's one problem with this: On Linux, test programs display the
> following:
> 	** (process:1556): WARNING **: Failed to load function
> 	OutputDebugString from kernel32.dll
> For a point of comparison, .NET doesn't display any warnings/errors if I
> DllImport a function and library that doesn't exist.  If I try to *call*
> it, it throws an exception (as expected), but I get no extraneous output
> if I never call it.
> Would it be possible to remove the above warning message?

Yes, we need to move the code that does the lookup from the class
init code to the runtime where it can be done only if the method is
actually called. I wanted to do this for a while, I'll get to it shortly.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better