-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi all,
I've developed a CoverCalibrator device for ASCOM 6.5 SP1 in VB.net 2017 but I'va a problem with Conform in 64bit mode.
If I compile the ASCOM driver for 32bit and check the conformance in 32bit mode, it works fine and passes the validation. The driver works fine also with a 'stand-alone controller' built starting from an ASCOM Driver application test template.
But when I compile the driver and the 'stand-alone controller' for AnyCPU or x64 the Conform fails the validation.
Looking at logs of 32bit version, at the moment of connection the SW sets Connected = True then polls the driver few times until it reports Connected state True, giving time to the driver to connect and configure the HW device ( some hundreds milliseconds via USB chip ).
But looking at logs in 64bit mode it seems that Conform doesn't give time to connect to HW. Conform sets Connected = True and immediately check for connection status ( sometimes the timestamps in logs are the same millisecond ) and since the driver reports False, Conform goes ahead with code execution without retrying and the result is a lot of Not Connected Exceptions.
11:04:33.181 Connected Set Set Connected to True
11:04:33.182 Connected Set Failed to connect
The strange is that using the ASCOM Driver application test in 64bit, the application itself and the driver work without any problem!
Seems that Conform in 64bit handles the connection in different mode compared to 32bit mode and the ASCOM platform in both modes.
Attached the logs from Conform and from application test.
BR, Jeff
Log_test_application_64b.txt
Logs 64b_debug_calls.zip
Log_test_application_32b.txt
Logs 32b_debug_calls.zip