As of May 2, 2022 the LabJack forums have been set to read-only.
If you are in need of support, please contact us via one of the methods described on our contact page.
I built a 64-bit application in VisualStudio 2010 Pro using C++ and am using the LabJackUD library, version 3.50. When the OpenLabJack method is called the application is crashing. Any thoughts?
We haven't encountered OpenLabJack crashing applications in UD v3.50. Maybe an issue with the handle you pass? What data type are you using for the handle? It needs to be a long (LJ_HANDLE) data type, and you pass the variable by reference.
If the above information doesn't help with figuring out the issue, please provide the chunk of code performing the OpenLabJack call causing the crash, including the data types of the used variables and how they are initialized/changed before the call. Also, what version of Windows are you running? For further testing on your computer, you can try one of our C/C++ examples and see if it has issues with OpenLabJack. This is to confirm a general issue on your system, or an issue in your code only.
We haven't encountered OpenLabJack crashing applications in UD v3.50. Maybe an issue with the handle you pass? What data type are you using for the handle? It needs to be a long (LJ_HANDLE) data type, and you pass the variable by reference.
If the above information doesn't help with figuring out the issue, please provide the chunk of code performing the OpenLabJack call causing the crash, including the data types of the used variables and how they are initialized/changed before the call. Also, what version of Windows are you running? For further testing on your computer, you can try one of our C/C++ examples and see if it has issues with OpenLabJack. This is to confirm a general issue on your system, or an issue in your code only.
thanks