VS 2005 Crash

J

Jarod

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
 
G

Guest

Jarod,
Try this:
private string _text;
public string Text
{
get { return _text; }
}


Do you see why it crashed?

Peter
 
J

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
 
J

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top