Too much inheritance for Visual Studio?

I'm starting a new application in Visual Studio 2010, using C#.
There's almost no code.

I create a Form, which I named baseForm, from which I inherited another form, which I named basicForm, and then from that I inherited another one, say advancedForm.

I'm trying to mimic an old set of forms I used to have in Delphi, which allowed to develop very fast.

So, I added some blank procedures to the baseForm, then some other to the basicForm.....
and now, when I try to add advancedForm, Visual Studio crashes....

I opened and closed several times.
I rebuild the app several times.

This is what I get

Problem Event Name:      APPCRASH
  Application Name:      devenv.exe
  Application Version:      10.0.30319.1
  Application Timestamp:      4ba1fab3
  Fault Module Name:      USER32.dll
  Fault Module Version:      6.1.7601.17514
  Fault Module Timestamp:      4ce7ba59
  Exception Code:      c00000fd
  Exception Offset:      000169f8
  OS Version:      6.1.7601.2.1.0.256.4
  Locale ID:      1033

Is this a known bug or something else?
LVL 1
fischermxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
I just tried a new project that had 10 levels of inheritance and I didn't encounter a problem. Have you tried debugging your application?
0
Obadiah ChristopherCommented:
Has to do something with installation or settings. Go to tools and reset all settings.
0
andrewjbCommented:
The Studio form designer uses a live instance of the parent class as it's designing. So, if your parent class has a bug that causes an exception, it'll cause problems (and possibly crashes) in the IDE. You've probably got an untrapped exception being thrown in your basicForm class.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fischermxAuthor Commented:
It is a very strange problem.

In these forms, there are things that I want to do when the form starts.
So, I added those in the MyForm_Load(object sender, EventArgs e) method.
Then, in the child, I added more stuff and I added "base.OnLoad(e)".
I then grandchild, I did the same.

When I try to run the project as it is, I get the same result as getting VS freezing.
But now I get a real error "'System.StackOverflowException".

I suppose this is the same error that causes the crash on opening the form in the designer.

I will close this and share point and ask in a new question.
0
fischermxAuthor Commented:
Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.