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

-- 
-----------------------------------------------------------------
[EMAIL PROTECTED]                                     debian/rules
[EMAIL PROTECTED]                             Monkeys do it better

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to