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

Reply via email to