Hi,
I have two Labview VI's that use an external DLL that I have written to do some read/writes over a special network interface. Both VIs use the same exact DLL. When run as VIs, they both appear to function properly and can be run at the same time.
However, I need to build them into two separate Labview applications and need to be able to run both at the same time. When I try to do this, the DLL for the second application I run does not appear to work. Has anyone seen problems like this before?
I suspect this is happening because when they are built as applications the DLL is included in each application's own "data" directory, thus giving two copies of the same DLL. I am guessing that when I run the second application, there is a problem loading the DLL because it is already in memory from the first application that I ran. When run as VIs, I've noticed that the first VI loads the DLL and the second VI automatically uses the one that is already in memory. This does not appear to occur when using the Labview applications. Does this hypothesis make sense to anyone? Any suggestions how to get around this?
I would appreciate any suggestions about how to get around this and still be able to use two Labview applications that can be run at the same time.
Thanks,
Brian