LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CDotNetInvokeGenericMember throws Exception

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.

0 Kudos
Message 1 of 2
(4,492 Views)

Hi,

this error can happen when the library was not correctly registered (that it is not found in the GAC). Have you already seen the following thread ? http://forums.ni.com/t5/LabWindows-CVI/What-is-the-labwindows-cvi-equivalent-to-the-net-constructor/...

I hope this helps.
Aurelie

0 Kudos
Message 2 of 2
(4,452 Views)