I am running ACP 9.2 and trying out a CoverCalibrator for the first time (I've been using an Alnitak non-ASCOM panel up to this point). After running AutoFlat I often cannot run it again and instead get the following (my CoverCalibrator is using COM7):Source: ASCOM.Utilities
Message: Access to the port 'COM7' is denied.
If AutoFlat completes without any errors I will get this access-denied error on subsequent runs but eventually it will work if I try a couple times. If I need to abort AutoFlat (and I have needed to for a reason I will bring up in another thread since I think it's a separate issue than this), I cannot access the CoverCalibrator again until I restart ACP.
I then thought I'd write a script to try to "reset" access to the CoverCalibrator. This doesn't work though. I still get an access-denied error to the COM port when trying to reconnect.
Code:
var CC = new ActiveXObject(Util.Prefs.CoverCalibratorID);
CC.Connected = false;
Console.PrintLine(CC.Name + " is disconnected.");
CC.Dispose();
Console.PrintLine("COM port released.");
CC = new ActiveXObject(Util.Prefs.CoverCalibratorID);
CC.Connected = true;
Console.PrintLine(CC.Name + " is reconnected.");
Any ideas why the COM port is not getting released after running AutoFlat?
Jeff