[Mono-bugs] [Bug 601778] Overriden property "Text" of UserControl is accessed before user control constructor finished

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 2 20:04:33 EDT 2010



Carlos Alberto Cortez <calberto.cortez at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |calberto.cortez at gmail.com
           Severity|Normal                      |Minor

--- Comment #2 from Carlos Alberto Cortez <calberto.cortez at gmail.com> 2010-05-03 00:04:32 UTC ---
The explanation: Both Mono and .Net call a protected property called
CreateParams on all the controls, as part of the constructor. The difference
here is that we are getting Text as part of it, while .Net seems to retrieve a
cached value.

In other words: the issue has to see not with the constructor at all, but due
to our implementation of Control.CreateParams calling Control.Text. 

Changing it is straightforward, but we don't know what effects could it have,
since it's quite, quite low level. 

I'm gonna test this on my local tree and mark for now as minor.

Configure bugmail: http://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