LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory read problem when calling dynamic arrays in DLL built using VC++ (LabView 5)

I am using an Non-destructive Testing Ultrasonic card to acquire ultrasonic signals. I have written a DLL in VC++ to read data from the card. This DLL works well in the VC++ environment. It reads data into a dynamic array.
I am using a call library function(CLF) to access the DLL. When I try doing this, I get an run time error stating

"The instruction at "0x0360cfd1" referenced memory at "0x00000001".This memory could not be written.
Click on OK to terrminate the program
Click on CANCEL to debug the program."

I am using LabView 5 under Win98/NT environment.

Please advise on how this can be done correctly.

Satish
0 Kudos
Message 1 of 2
(2,526 Views)
create a LV array of the correct type and number of elements before calling the DLL function, pass the array by reference, fill in the array from your DLL and use the output terminal of the Call DLL function to pass your now filled in array to other functions.
Stu
0 Kudos
Message 2 of 2
(2,526 Views)