09-14-2006 11:52 AM
Hi Josh,
I tried running the program you sent and I get an error popup “PS_Main_dbg.exe – Entry Point Not Found with the message The procedure entry point DeleteTableCellRangeRingItems could not be located in the dynamic link library cvirte.dll”, followed by popup “Fatal Run-time Error, The external process failed to load properly. Verify that all DLLs used by the debuggee were installed in the path.”. Also, I noticed you added the ps6624_dll project to the PS_Sim workspace. Perhaps that is why it worked for you.
Attached is a simpler version. I found that if I get the device handle from WinMain and then try to access the device using this handle from the CVICALLBACK I get the GPF. When I get the device handle and access the device from the same location (WinMain or the Callback) it works fine. I added a readme.txt file to PS_Main that explains the project objectives.
09-15-2006 09:11 AM
Jim,
When should I be seeing the GPF? When I press the 'on' button?
Because I ran PS_Main_dbg.exe that you sent, and it works just fine. I can toggle the button on and off without error. Am I doing something wrong?
Josh W. | National Instruments | Applications Engineering
09-15-2006 10:40 AM
When the Test button is pressed (ON or OFF) the cvicallback calls the Command_SetNomVolt function, which loads the ps6624_dll.lib and calls the SubDLL function ps6624_VoltageLevel function. In the SubDLL I call the IVI function hp662xa_ConfigureVoltageLevel(). It is at this point I get the GPF.
Thanks,
Jim
09-18-2006 04:23 PM
09-19-2006 08:37 AM
09-20-2006 01:43 PM
09-21-2006 10:38 AM
Hi Terry,
I tried running the Simple_IVIGPF on another PC (Windows XP) and still get the GPF when the IVI function is called from the SubDLL. I’ve tried changing the MainDLL and SubDLL image base addresses (Build Options) to avoid collisions, plus explicitly declared function as __stdcall. Are there any other CVI environmental features I may be overlooking?
FYI I will be out next week.
Thanks,
Jim
09-22-2006 10:39 AM
10-10-2006 02:01 PM
Hi Terry,
I tried using the CVI evaluation version 8.0.1 with the same result (GPF). Is there a specific version of the IVI Compliance Package, NI-VISA, or any other associated software I may need loaded on my PC?
Thanks,
Jim
10-11-2006 10:26 AM