LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory allocation in external dll functions

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.

Thank you for your time,
Pipo
0 Kudos
Message 1 of 2
(2,733 Views)
Hello,

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?

Can you please send me your DLL and your VI?

Best Regards,

Sanaa T
National Instruments France

Sanaa T.
National Instruments France

0 Kudos
Message 2 of 2
(2,699 Views)