[Mono-winforms-list] [PATCH] Additional locking in Carbon XplatUI driver

Dick Porter dick at acm.org
Thu Apr 30 06:50:40 EDT 2009


Hi All

I've observed NullReferenceExceptions from
System.Windows.Forms.XplatUICarbon.GetMessage() (specifically,
MessageQueue.Dequeue() inside GetMessage was randomly returning nulls)
and tracked it down to the locking around MessageQueue.  This patch
ensures that MessageQueue is locked whenever it is modified, completely
curing the exceptions for me.

Is this OK to check into HEAD?

- Dick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwf-diff
Type: text/x-patch
Size: 2905 bytes
Desc: 
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090430/dade65ff/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090430/dade65ff/attachment-0001.bin 


More information about the Mono-winforms-list mailing list