01-05-2011 01:24 AM
I have a VI that calls a (C#.NET created) DLL.
One function inside the DLL is 'string reference' based function. VI returns nothing to me (as shown in block diagram) for this function. VI returns no errors though. It's repeatable.
I create the EXE of the same VI. The same function returns me the value.
Question1:
While EXE returns me value when it calls a DLL function, the VI does not return any value; wondering why?
Question2:
EXE when launched for the first time, behaves the same way as DLL (no value return for this function). For later executions of EXE (without quitting) it returns valid value to 'DeviceQuery'.
Don't know why EXE behaves exactly like a VI, when launched for the first time.
(There are other functions which work in all cases. there is indeed a connection between LabVIEW and C#.NET DLL)