D
Dave
Here's a question for you all.
1. I have in my application a control named CommonControl.
CommonControl is inherited by a number of other controls in order to
create semi-polymorphic controls. In the CommonControls load routine
there is some code in order to attach to a device over the serial comms
port. Now whenever I open one of my other controls which inherits the
commonControl at design time. It appears to be running the code in the
commoncontrol's load routine. This is causing my SerialCom port to
lock up and become unusable until I restart the application. Any
Idea's why it is running the code in the Load routine of the
CommonControl when I am designing forms?
2. I am also having a problem with a number of stupid errors when I try
to compile my code to access the com ports. I have 3 classes all
designed to assist in the controling of the serial communications and
occasionally.... not always... I get the error that they were unable to
compile due to an error writing to the Debug information file of the
DLL's and then if i try to compile again, i get a number of further
messages telling me it cannot write to the DLL's either. I have
managed to rectify this situation by closing visual studio and deleting
all of the files that it cannot write to and then opening visual
studio. This seems to work but it is becoming increasingly more
annoying! I end up doing it about 10 times a day! It isn't fun but i
think this problem may have something to do with problem 1!
Dave
1. I have in my application a control named CommonControl.
CommonControl is inherited by a number of other controls in order to
create semi-polymorphic controls. In the CommonControls load routine
there is some code in order to attach to a device over the serial comms
port. Now whenever I open one of my other controls which inherits the
commonControl at design time. It appears to be running the code in the
commoncontrol's load routine. This is causing my SerialCom port to
lock up and become unusable until I restart the application. Any
Idea's why it is running the code in the Load routine of the
CommonControl when I am designing forms?
2. I am also having a problem with a number of stupid errors when I try
to compile my code to access the com ports. I have 3 classes all
designed to assist in the controling of the serial communications and
occasionally.... not always... I get the error that they were unable to
compile due to an error writing to the Debug information file of the
DLL's and then if i try to compile again, i get a number of further
messages telling me it cannot write to the DLL's either. I have
managed to rectify this situation by closing visual studio and deleting
all of the files that it cannot write to and then opening visual
studio. This seems to work but it is becoming increasingly more
annoying! I end up doing it about 10 times a day! It isn't fun but i
think this problem may have something to do with problem 1!
Dave