LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Edited dll function not behaving right

Solved!
Go to solution

I have a bunch of DLL's created as part of a C# project. So far I have managed to use the DLL functions in Labview with the nodes in the .NET pallette.

 

My problem is this, I made a few minor changes to the behavior of a function in the DLL in Visual Studios, but when I try running that same function in Labview, it still has the old behavior, like I haven't updated it at all. (I even started a new VI just to implement the nodes anew, and the .DLL file shows the last modified date as a few minutes ago, still doesn't work though)

 

Does anyone know why this might be happening?

0 Kudos
Message 1 of 6
(2,634 Views)

Just a guess:  I have found that soemtimes LabVIEW reserves DLLs if or not the VI is running.  Sometimes if or not the VI is even in memory.  So it might not release the reference unless you exit out of LabVIEW completely and reopen it.  I cannot say this what you are seeing but it does fit the description.  You are probably rebuilding the DLL while LabVIEW is still open.  This means LabVIEW might be using the DLL code which was already in memory...

0 Kudos
Message 2 of 6
(2,631 Views)

Hi, I have re opened Labview and also restarted my computer. It doesn't seem to have any effect.

0 Kudos
Message 3 of 6
(2,625 Views)

You are sure you are pointing to the right dll?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(2,599 Views)
Solution
Accepted by topic author 29rx

Go to View >> .NET Assemblies in Memory to check the DLL location.

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 5 of 6
(2,596 Views)

Ah, that was the problem. Thanks jyang!

0 Kudos
Message 6 of 6
(2,577 Views)