LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is error -2147417851?

What does error -2147417851 "the server threw an exception in ***.vi" mean when trying to contol a WinTV card using ActiveX objects?
0 Kudos
Message 1 of 7
(7,032 Views)
Here is a good discussion thread regarding errors with ActiveX objects and LabVIEW.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000...

What OS and version of LabVIEW are you running with? Some advice that worked for other people was to try executing in the user-interface thread (see link above for details). Here are the instruction to run a VI in the UI thread:

"To run a VI in User Interface, go to File>>VI Properties>>Execution and select User Interface for preferred execution system. The default is �standard�
."

Does that help?
Darin Gillis
NI - Chief Product Owner - VeriStand
0 Kudos
Message 2 of 7
(7,032 Views)
Hi,

You say you have to set the execution system to User Interface (default
seems to be same as caller). Exactly to which VI has this to be done (the
report vi, calling vi, main vi)?

Regards,

Wiebe.

"Darin G" wrote in message
news:506500000005000000FD2B0100-1042324653000@exchange.ni.com...
Here is a good discussion thread regarding errors with ActiveX objects
and LabVIEW.


href="http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQu
estion&HOID=506500000008...



What OS and version of LabVIEW are you running with? Some advice t
hat
worked for other people was to try executing in the user-interface
thread (see link above for details). Here are the instruction to run
a VI in the UI thread:

"To run a VI in User Interface, go to File>>VI Properties>>Execution
and select User Interface for preferred execution system. The default
is "standard"."

Does that help?
0 Kudos
Message 3 of 7
(7,032 Views)
The setting should be set in all VI's that use Active-X objects.
Darin Gillis
NI - Chief Product Owner - VeriStand
0 Kudos
Message 4 of 7
(7,032 Views)
Could this also help with error -2147319784?

Regards,

Wiebe.

"Darin G" wrote in message
news:506500000005000000832C0100-1042324653000@exchange.ni.com...
> The setting should be set in all VI's that use Active-X objects.
0 Kudos
Message 5 of 7
(7,032 Views)
Yes, according to the other discussion thread I gave before. The error comes from LabVIEW using many threads for the activeX objects; and setting it to run in the user-interface thread means that it will only use one thread to manage its activeX objects.

good luck,
~Darin
Darin Gillis
NI - Chief Product Owner - VeriStand
0 Kudos
Message 6 of 7
(7,032 Views)
Thanks! Sorry it's taken a while to reply - I've been off.

I've tried 2 computers, both with LabVIEW 6.1, one on XP and one on Win98. Same problem with both.

I tried what you suggested (and looked at the link) and I don't get that error when running in User Interface mode but... It brings up a window saying "Runtime Error" and crashes. Don't suppose you have any other ideas?
0 Kudos
Message 7 of 7
(7,032 Views)