From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Hi, I just coded a very little dll that adds a function to a Labview component. The function is called and the job is done, however I am experiencing memory issues :
- first when the .vi is loaded 80Mo of memory is used (whereas the .dll size is 44Ko) - then when the .vi is launched and additionnal amount of 180Mo is used - at last when the function is exectuted the labview program freezes because of the memory allocation done in the function (DSSetHandleSize)
So I would need help to fix the strange extra memory usage from labview, and to find a solution to my function memory allocation.
To respond to your request, I need more information : 1 - LabVIEW Version? 2 - You say "at last when the function is executed the LabVIEW program freezes because of the memory allocation done in the function (DSSetHandleSize)". Do you receive error message? 3 - Have you call your DLL with other program except LabVIEW? 4 - Your VI is simple one? Can you call DLL in simple one?