If you make a control that has property like this:
public string Text
{
get { return this.Text; }
}
There is a stackoverflow and VS 2005 designer crash. When you don't use a
visual designer and you just add manually code to the page you will get an
error while debugging. I think designer shouldn't crash whole environment
that's why I publish it. Please tell me if only my designer crashes ?
JarodJarod,
Try this:
private string _text;
public string Text
{
get { return _text; }
}
Do you see why it crashed?
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Jarod" wrote:
> Hey
> If you make a control that has property like this:
> public string Text
> {
> get { return this.Text; }
> }
> There is a stackoverflow and VS 2005 designer crash. When you don't use a
> visual designer and you just add manually code to the page you will get an
> error while debugging. I think designer shouldn't crash whole environment
> that's why I publish it. Please tell me if only my designer crashes ?
> Jarod
>
> Try this:
> private string _text;
> public string Text
> {
> get { return _text; }
> }
>
> Do you see why it crashed?
I understand why it crashed and I do publish code that crashes because maybe
some patch will be usefull just to display error. I publish here very simple
example my problem was a bit more complicated. But my idea was to show that
simple error crashes whole environment. It works like this: you drop your
control ( that perfectly builds ) on the form and you see that VS2005
crashed. And you may have no idea what happend. I made simple mistake but I
believe it shouldn't crash !!!
Jarod
Well!
If your point was to illustrate that it is possible to crash the IDE, you
have certainly succeeded!
Cheers,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Jarod" wrote:
> > Try this:
> > private string _text;
> > public string Text
> > {
> > get { return _text; }
> > }
> > Do you see why it crashed?
> I understand why it crashed and I do publish code that crashes because maybe
> some patch will be usefull just to display error. I publish here very simple
> example my problem was a bit more complicated. But my idea was to show that
> simple error crashes whole environment. It works like this: you drop your
> control ( that perfectly builds ) on the form and you see that VS2005
> crashed. And you may have no idea what happend. I made simple mistake but I
> believe it shouldn't crash !!!
> Jarod
>
> Well!
> If your point was to illustrate that it is possible to crash the IDE, you
> have certainly succeeded!
Because maybe someone will think about it and write us some patch ( VS Team
? ).
Jarod
0 comments:
Post a Comment