[Mono-bugs] [Bug 419087] New: c'tor of System.Windows.Forms.Control has a bug

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 21 02:54:09 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=419087


           Summary: c'tor of System.Windows.Forms.Control has a bug
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Keywords: Code
          Severity: Critical
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: wfhse at web.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Hello,

this is my first bug report. I hope the description is clear.

Description of Problem:
I wrote a component based on System.Windows.Forms.Control. In OnPaint I create
a brush an Paint a region.

I wrote 3 c'tors in my component. 1 use as base c'tor
System.Windows.Forms.Control() and sets Parent, Left, Top, Height, ... itself.
With this base c'tor everything is okay.

2 c'tors use the System.Windows.Forms.Control(Control parent, string text, int
left, int top, int width, int height) as base c'tor. With this c'tors I get an
OutOfMemeoryException on creating the brush.

This can always be reproduced.

With best regards
Simon Schäberle


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list