07-27-2009 04:55 AM
|
I have a project with DataSocket and ActiveX control of the DTPicker.If I made the DataSocket of OPC for Siemens PLC s7-200 inavailable,there was no error while debugging.But if the DataSocket of OPC was available,I get the error "library function error (return value ==-43[0xffffff71]).ActiveX control error.
how can I resolve the problem?
Thank you. The error as picture:
07-27-2009 08:14 AM
Hello zaizai -
One possible reason for the error you are seeing is that the thread you are trying to call LoadPanel from has been initialized to use the Multi-Threaded apartment threading model. An explanation of how this can happen can be found here.
One thing you may try to resolve the error you are seeing is to call the following function as one of the very first function calls in the thread resposible for loading the panel (certainly before calls to any other ActiveX functions are made)
NickB
National Instruments
07-28-2009 10:23 AM
thanks.I will have a try.