Hello,
paulh3030 wrote:Even after resetting the computer, I would still see the warning.
What do you mean with resetting? you shut-off and shut-on the computer? or you goes over Windows menu and click "re start your PC"? Note that with any WIndows 10 installation, the option for fast startup is set to on. If this is so, the PCAN-Basic connections are kept in memory so that after shutting off and on your PC you will still have the problem. Check if this is your case and disable it.
Here are some struction how to do this.
paulh3030 wrote:While I am now able to avoid this issue most of the time and have a way to recover from it, it doesn't seem right that PCAN-View displays this warning even after the USB connection is reset.
Please note that the architecture of our drivers allow to work even without having an adaptor attached (for instance our Virtual drivers). Disconnecting a device from the computer doesn't means an automatic "software disconnection".
paulh3030 wrote: I have found a way to reproduce this issue which involves running our software from the Visual Studio Debugger, and then pausing the software while it is running, and then stopping the software from the debugger. This causes our software to not run through its normal termination (where the PCAN library is unitialized) leaving PCAN thinking there is still an active connection.
As in other post commented, it was possible to solve this problem over the options in Visual Studio (
CAN_Initialize failing after stop debugging). Starting with VS2017 this was no possible anymore. This behavior was enhanced as part of Windows and included in the Version 1803 of Windows 10. Tests with older versions (Windows 1709) shows that the problem was not there. Microsoft changed back this behavior again in the last update, 1809. Here, the PCAN-Basic connection is removed as expected. Please check which version of Windows 10 you are using and update your system if needed.
Nevertheless, we are preparing an update in our drivers to catch this problem and to enhance finalization of connections on environments like Visual Studio