[Mono-winforms-list] Bug in System.Windows.Forms.Control:get_ContainsFocus ()?

Paddy Joy mono at paddyjoy.com
Wed Jun 21 04:45:00 EDT 2006


Hi,

I'm porting an application from MS. NET to Mono and I have encountered 
the following, maybe it's a bug or maybe it's just bad coding :-)  

The attached code sends Mono into a loop until it eventually crashes 
with a segmentation error (When button1 is clicked). Should I report 
this as a bug or is this just dodgy code to override the get_Focused 
method like this?

Compile with:

 mcs base.cs -r:System.Windows.Forms -r:System.Data -r:System.Drawing

run mono base.exe

Click on button1.

Code and trace attached.

Thanks,
Paddy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: base.cs
Type: text/x-csharp
Size: 2534 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20060621/83b57573/attachment-0001.bin 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: trace.txt
Url: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20060621/83b57573/attachment-0001.txt 


More information about the Mono-winforms-list mailing list