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

Maxi Combina maxi.combina at passwordbank.com
Mon May 30 02:27:25 EDT 2011


Can you produce a stack trace with line numbers?
>
>
I really don't know how to do this with MonoMac :$
Any hint will be very appreciated!

Thanks
maxi



> 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
>>
>>
>


-- 
*Maxi Combina*
Cell:+1 408 300 3614
Tel:  +1 408 524 1579
440 N. Wolfe Road. Sunnyvale. CA. 94085. USA

<http://www.passwordbank.com/>www.PasswordBank.com<http://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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110530/b25c8299/attachment.html 


More information about the Mono-osx mailing list