[Mono-dev] Patches for mono-winforms

Stifu stifu at free.fr
Sat Jun 16 08:09:53 UTC 2012


Honestly, you've had it much better than the vast majority. :)
Some others have been waiting for years. Also, now you can add NUnit to your
resume. :p

Anyway, I get a "1-1: expected not null, found null" message box in DgvTest4
with Mono, even after applying your patch.


Steven Boswell II wrote
> 
> I agree, but we both know how much toil it takes to get our bug fixes
> accepted and applied to the git repository on this mailing list... ;-)
> 
> 
> ________________________________
>  From: Rob Wilkens <robwilkens@>
> To: mono-devel-list at .ximian 
> Sent: Friday, June 15, 2012 5:42 PM
> Subject: Re: [Mono-dev] Patches for mono-winforms
>  
> 
> I know my opinion is of mixed value, but it looks to make sense to me.. 
> If the toolstripitem is being changed so it no longer has an owner,
> calculating a size might not make sense....
> 
> -Rob
> 
> On 06/15/2012 08:34 PM, Steven Boswell II wrote: 
> [... Digging through the stack trace, I arrived at
> System.Windows.Forms.ToolStripItem.set_InternalOwner, where the owner was
> being set to null, and right afterwards, CalculateAutoSize() was being
> called.  Why would anyone need to calculate the size of a menu-item that
> isn't even connected to a menu any more?  So, for me, the bug fix was
> obvious: check if the owner isn't null before calling CalculateAutoSize().
>  That's what the enclosed patch does. ...]
>>
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at .ximian
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


--
View this message in context: http://mono.1490590.n4.nabble.com/Patches-for-mono-winforms-tp4649620p4649980.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list