well spotted, Cam!

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Cameron Booth
Sent: Monday, 26 April 2010 11:14 AM
To: 'ozDotNet'
Subject: RE: Designer crash cause found

 

Hi Greg,

 

Looks like it might be a case issue causing an infinite loop

                     get { return UniqueId; } Should it actually be  get {
return uniqueId; }

 

 

Cheers,

Cam

  _____  

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Greg Keogh
Sent: Monday, 26 April 2010 1:05 PM
To: 'ozDotNet'
Subject: Designer crash cause found

 

I thought this would take hours, but after walking around the back yard to
feed the birds and calm down, I returned and started a new process of
elimination and eventually found the cause of the designer crash was
something surprising and incomprehensible.

 

For debugging display purposes the lowest-level base control had this code
inside it to give a unique Guid to each control:

 

       public partial class BaseControl : UserControl, IBaseControl

       {

              private Guid uniqueId;

 

              public BaseControl()

              {

                     uniqueId = Guid.NewGuid();

                     InitializeComponent();

              }

 

              public Guid UniqueId

              {

                     get { return UniqueId; }

              }

 

It is the presence of the highlighted property with that exact name that
causes the crash. If I remove or rename the property it comes good. What bad
luck eh!? I remember adding this property a few days ago, so by coincidence
I did not open the designer since then and I could not mentally associate
the cause-and-effect.

 

I can find no web search results and MSDN content that hint that my property
might be guilty of causing problems. I lost 3 hours on this problem.

 

Greg


Disclaimer Notice

This message contains privileged and confidential information intended only
for the use of the addressee named above. If you are not the intended
recipient of this message you are hereby notified that you must not
disseminate, copy or take any action or place any reliance on it. If you
have received this message in error please notify Ultradata immediately on
+61 3 9291 1600. Any views expressed in this message are those of the
individual sender, except where the sender specifically states them to be
the views of Ultradata Australia Pty. Ltd.

To unsubscribe from receiving commercial electronic messages from Ultradata
Australia please email unsubscr...@ultradata.com.au with the subject heading
"Unsubscribe".

Reply via email to