[Mono-osx] System.NullReferenceException in NSRunLoop.RunUntil

Miguel de Icaza miguel at xamarin.com
Sun May 29 09:39:00 EDT 2011


Very likely;

Can you produce a stack trace with line numbers?

The UISetStatusText will be called internally, just because you are using
the events on the control.   But what is very surprising is that I cant see
any calls to toString from the UISetStatusText call.

On Fri, May 27, 2011 at 9:38 AM, Maxi Combina <maxi.combina at passwordbank.com
> wrote:

> Hello everyone,
>
> sometimes I get a System.NullReferenceException when
> running MonoMac.Foundation.NSRunLoop.RunUntil().
> It is not always, it is not easily reproduceable, but it is always the same
> (I paste the relevant stack trace below).
>
> Points to consider:
> 1.- I am manually invoking the NSRunLoop, so maybe I am doing something
> wrong, I am not sure.
> 2.- I do *not* use UISetStatusText anywhere.
>
> This is the statck trace:
> -------------------
> Unhandled Exception: System.NullReferenceException: Object reference not
> set to an instance of an object
> at MonoMac.Foundation.NSString.ToString () <0x00009>
> at (wrapper dynamic-method)
> object.[MonoMac.WebKit.WebView+_WebUIDelegate.Void
> UISetStatusText(MonoMac.WebKit.WebView, System.String)]
> (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.WebKit.WebView,MonoMac.Foundation.NSString)
> <0x0000f>
> at (wrapper native-to-managed)
> object.[MonoMac.WebKit.WebView+_WebUIDelegate.Void
> UISetStatusText(MonoMac.WebKit.WebView, System.String)]
> (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.WebKit.WebView,MonoMac.Foundation.NSString)
> <0x00137>
> at (wrapper managed-to-native)
> MonoMac.ObjCRuntime.Messaging.bool_objc_msgSend_IntPtr_IntPtr
> (intptr,intptr,intptr,intptr) <0x00003>
> at MonoMac.Foundation.NSRunLoop.RunUntil
> (MonoMac.Foundation.NSString,MonoMac.Foundation.NSDate) <0x0005f>
> -------------------
>
> May this be a MonoMac issue?
>
> Thanks in advance,
> Maix
>
> --
> Maxi Combina
> Cell:+1 408 300 3614
> Tel:  +1 408 524 1579
> 440 N. Wolfe Road. Sunnyvale. CA. 94085. USA
> www.PasswordBank.com
> This message and its attachments are sent from PasswordBank, Inc. and may
> contain information that is
> confidential. If you are not the intended recipient, you are prohibited
> from printing, copying, forwarding or
> saving them. Please delete the message and attachments without printing,
> copying, forwarding or saving
> them, and notify the sender immediately. Message transmission is not
> guaranteed to be secure.
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110529/cc3a23c4/attachment.html 


More information about the Mono-osx mailing list