I'm currently using several advantech devices with LabView, When I use one function with the dll it use memory, if I call it several time the memory used increased over and over ... to finally crash labview or have a bluescreen.
I've tried to flush the memory each time, it works better (crash after 30 min, before it was 10 sec ...)