LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Control in GUI and calling DLL

I have mojo progress bar (activeX control) on the LabWindows GUI. My program is also calling other user provided DLL implicitly. When I tried to run the program, error -143 occurred (library function) on the LoadPanelEx function that supposes to load a child panel that contains the mojo progress bar. Why is this happening? And, how I can fix this problem? I know if I remove the mojo progress bar from the child panel, the error doesn't happen.
0 Kudos
Message 1 of 4
(3,805 Views)

Hi User123,

Please take a look at this KnowledgeBase: Error -143 Occurs When Running a Deployed CVI Program Using an ActiveX control 

That will point you to download the Microsoft Visual C++ 2005 Redistributable Package

 


Mark E.
National Instruments

0 Kudos
Message 2 of 4
(3,784 Views)

The failure I am getting happened in debug mode, LabWindows environment.  This is what different from what the article is talking about.

0 Kudos
Message 3 of 4
(3,781 Views)
Which version of CVI are you using?  Are you specifying single threaded apartment (STA) or multithreaded apartment (MTA) as the threading model for the thread?  If you're using multithreaded, you'll need to switch to STA.  Usually, ActiveX controls and containers need the threads in which they are loaded to be CoInitialized as single apartment threaded (STA).

Mark E.
National Instruments

0 Kudos
Message 4 of 4
(3,763 Views)