LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling DLL

Hello,

I am trying calling a DLL in LabVIEW.
I do get all the desired results.
But then if i run it for the second time it gives an error which is as
follows

"The instruction at '0x0622277d2' referenced memory at `0x00000000'.
The memory could not be read"

Can Anyone please tell me what is this error and how it can be
rectified.

Avni
0 Kudos
Message 1 of 2
(2,238 Views)
There are many possibilities here, but they basically all deal with improper use of memory. Basically, you're stomping in a part of memory where you shouldn't be. This could be due to improper memory management when you're passing parameters to the DLL. What kind of data are you passing? Just numbers, or arrays? How about strings? It could also be the DLL itself. Without more information...

You may want to check the examples that ship with LabVIEW on how to properly interface to DLLs. There's an excellent example that covers a multitude of datatypes. You should also check the NI Knowledgebase.
0 Kudos
Message 2 of 2
(2,218 Views)