we have a .net framework project (DLL) acting as an CANEngine built using UDSApi and PCANBasic APIs, and since we use Diagnostics we initialize using UDSApi and pass its handle to the PCANBasic APIs whenever we want to use them.
Recently we are trying to integrate this DLL project into another solution based on python (for deadline issues we can't rebuild it using the python package), now we are facing a weird behavior whenever we call any functions that uses the PCANBasic saying "A PCAN Channel has not been initialized yet or the initialization process has failed"
apparently any PCANBasic gets PCAN_ERROR_INITIALIZE status whenever it's called, even tho we already know that it's been initialized using the UDSApi already and the Diag services are working fine
Note:
- Everything works normally when initializing with PCANBasic however we can't use UDS services
- any .net framework project using the CANEngine DLL works also fine, it only shows when calling from python
Please let mw know if anyone faced such issue and how to fix it