Lock up on Inheriting from an existing form

F

foo

Hello,

I have a form that I developed in a small simple project. The form runs
fine by itself. When I try to create a new form that inherits from this
form, the machine goes off in the weeds for many minutes and throws off an
error 5 "Invalid procedure call or argument", and uses up all the machine
resources so Windows has to increase them in order to continue. It never
does finish the operation of creating the new form. I have to kill and
restart VB .Net and manually add this new form to the project, where the
same thing happens all over again.

What's really strange is that during this inheritance process the .Net IDE
somehow gets into my error logging code and tries to write error messages to
my error table in an Access db. It's as if it started to execute the new
form and somehow ended up in the error handling logic.

I'm perplexed.

Bill Nicholson
Cincinnati, OH USA
 
H

Herfried K. Wagner [MVP]

* "foo said:
I have a form that I developed in a small simple project. The form runs
fine by itself. When I try to create a new form that inherits from this
form, the machine goes off in the weeds for many minutes and throws off an
error 5 "Invalid procedure call or argument", and uses up all the machine
resources so Windows has to increase them in order to continue. It never
does finish the operation of creating the new form. I have to kill and
restart VB .Net and manually add this new form to the project, where the
same thing happens all over again.

What's really strange is that during this inheritance process the .Net IDE
somehow gets into my error logging code and tries to write error messages to
my error table in an Access db. It's as if it started to execute the new
form and somehow ended up in the error handling logic.

Add this around the code:

\\\
If Not Me.DesignMode Then

' Updata database here...
End If
///
 
F

foo

I don't know where to add this code because the inheritance process is being
performed from the IDE. I'm not trying to inherit programatically. I right
click the project in the project explorer, select Add, etc...
 

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

Similar Threads


Top