From: Chris E <sp...@gm...> - 2016-05-07 03:16:36
|
Hi guys. Looks like I've managed to stumble across some kind of reverse Heisenbug, and it's been doing my head in for days. I am developing a program using the Qt Library and LibusbK (precompiled .dll/.lib). When I compile and run, it works great - in debug or release mode. I can even deploy it on other machines and there are no immediate issues. However, when I try to debug using CDB (the Qt/Visual Studio debugger), UsbK_Init will always fail. This is, of course, a little bit problematic. Is there a way to get around it? If it helps, UsbK_Init returns error code 0x03 if compiled with Visual C++ 2013 (x86 and x64), and 0xCE if compiled with MinGW x86. Is this a known issue? Do desktop debuggers do this often? (If you haven't guessed already, I have fairly minimal experience developing Desktop software; I'm mainly used to microcontrollers and even there I'm no expert.) Thanks, ~Chris |