Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5375

CDotNetInvokeGenericMember throws Exception

$
0
0

Hello,

I am new to LabWindows and I have to fix a bug in a software, which is written by someone who left the company. But I can not even compile very properly.

There are some DLLs, written in C# and built in Visual Studio 2013. If I run the program it gives an error :

 

NON-FATAL RUN-TIME ERROR:   "c:\...\udp.net\UdpDotNetCommunicator.c", line 47840, col 5, thread id 0x00001D38, function id 2:   Function CDotNetInvokeGenericMember: (return value == -6571 [0xffffe655]). The target invoked by the LabWindows/CVI .NET Library threw an exception.

 

According to    .NET Library Error Codes   (http://zone.ni.com/reference/en-XX/help/370051M-01/cvi/libref/cvidotnet_library_error/ it is   The target invoked by the LabWindows/CVI .NET Library threw an exception.

But I have really no idea.

 

And the source code in UdpDotNetCommunicator.c line 47840 is so:

 

    __errChk(CDotNetInvokeGenericMember(
        __assemblyHandle,
        "ControllerBoard.Communication.UdpCommunicator",
        __instance,
        CDOTNET_CALL_METHOD,
        "ReadRegister",
        0,
        0,
        4,
        __parameterTypeNames,
        __parameterTypes,
        __parameters,&__returnValueTypeId,&__returnValue__,
        __exception));

 What can I do? It gives this error 20 times and continues to run if I click "Continue".

Thanks.


Viewing all articles
Browse latest Browse all 5375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>