A
Andrew Smith
I have written an application used for statistical process control (SPC).
Currently the SPC charts are generated by shelling out to an external
application, which is rather a slow process. Recently I have obtained some
ActiveX controls for generating the charts, and have incorporated these into
the application.
I have a form that launches the SPC charts, and this is set up so that it
will either shell out to the SPC program or will open the form holding the
ActiveX controls, depending on the value of a function that detects whether
the ActiveX controls are available.
All this works fine on my machine where the ActiveX controls are installed.
However there is a bug that causes it to fail on machines without the
ActiveX controls, and I can't locate the bug! If I try and debug the code on
a machine without the ActiveX controls installed I get compile errors
because the ActiveX controls are not installed. On my machine I can't
reproduce the error because it does not occur if the ActiveX controls are
installed.
I'd appreciate any advice on what to do about this. My original plan was to
create a single front end that would function whether or not the ActiveX
controls were available. However, perhaps it would be better to create two
different front ends, even though I'd rather avoid this to make maintenance
easier.
Currently the SPC charts are generated by shelling out to an external
application, which is rather a slow process. Recently I have obtained some
ActiveX controls for generating the charts, and have incorporated these into
the application.
I have a form that launches the SPC charts, and this is set up so that it
will either shell out to the SPC program or will open the form holding the
ActiveX controls, depending on the value of a function that detects whether
the ActiveX controls are available.
All this works fine on my machine where the ActiveX controls are installed.
However there is a bug that causes it to fail on machines without the
ActiveX controls, and I can't locate the bug! If I try and debug the code on
a machine without the ActiveX controls installed I get compile errors
because the ActiveX controls are not installed. On my machine I can't
reproduce the error because it does not occur if the ActiveX controls are
installed.
I'd appreciate any advice on what to do about this. My original plan was to
create a single front end that would function whether or not the ActiveX
controls were available. However, perhaps it would be better to create two
different front ends, even though I'd rather avoid this to make maintenance
easier.