LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Hello. I have a problem with function DisplayPanel and InstallPopup.

Hello EveryBody. I have a problem with function DisplayPanel and InstallPopup.
The Error is (The program has caused a 'Double' foult at 001b:684e61da);
I am working with ScanWorks (Asset)  Api functions.  When i run my application without (include api's library)
its OK.
I am use cvi 8.5.
I need a help!!! .
Best Regards
Boris
0 Kudos
Message 1 of 4
(3,377 Views)
Hello,

How are you using the ScanWorks API?  Are you using something like LoadLibrary() & GetProcAddress() or linking the import library and using a header file for the Scanworks function calls?

When you get this error what is the code on the line it errors on?


Kristen
National Instruments
0 Kudos
Message 2 of 4
(3,346 Views)
How are you using the ScanWorks API?
I'm including the header and lib files to the project.
I'm not using any functions like LoadLibrary() & GetProcAddress(), i'm just including *.h & *.lib files.

When you get this error what is the code on the line it errors on?
For working with scanWorks i need to call connect() func.
After that, the functions DisplayPanel() or InstallPopup() are Error.
If I call DisplayPanel() or InstallPopup() functions before connecting to ScanWorks Its ok, but after connection i can't display any panel.
The code is (The program has caused a 'Double' foult at 001b:684e61da); on the line DisplayPanel().

thanks!
Best Regards
Boris
0 Kudos
Message 3 of 4
(3,323 Views)
If you call DisplayPanel(), then Connect(), then RunUserInterface() does it still not display the panel?

If not, you may want to try calling Connect() in a different thread.  This Developer Zone article explains all about Threading in LabWindows/CVI: http://zone.ni.com/devzone/cda/tut/p/id/3663.  In the 4th section there is example code that shows exactly how to do it. 

Let me know if you have any questions or if either of those suggestions don't help.
Kristen
National Instruments
0 Kudos
Message 4 of 4
(3,287 Views)