I noticed in the disassembled code that DestroyHandle was used just before CreateHandle. With that change added to your code, it now works!
Code: Select all
AXC_DestroyHandle(hAXC)
hAXC = AXC_CreateHandle(bStartAsDemo,@nError)
var IsOpen = AXC_OpenDevice(hAXC, strptr(firstSN), bReadHardware, @nError)