01-02-2011 11:40 PM
Hello All,
I am currently using a call library function node in a while loop which calls a third party dll to process and recieve some data.
My question is, if I am using this function in a while loop, what exactly happens?
Does the dll get called in each loop iteration, or does it keep the called dll loaded in memory and just pass the values to it to process data?
Also, if the answer to the above question is that it will make calls to the DLL in each iteration, how can we keep it loaded in memory always? I mean, if the DLL is a .NET application DLL, I believe the main .NET application which uses this DLL won't do multiple calls to the dll, rather it will keep it loaded in memory.
Thanks
FraggerFox!
01-03-2011 03:00 AM
Hi,
the DLL will stay in memory as long as there is a program running which has not closed (unloaded) the DLL.
Doing repetitive calls to the DLL is irrelevant in this context. LV opens the DLL as soon as needed and will only unload it when there is no VI in memory which has a CLN to that DLL...