04-13-2014 06:07 PM
There is a memory leak in the attached vi that I am unable to find. The purpose of this VI is to read incoming strings from a custom instrument via TCP/IP port 23 (telnet).
The main VI that runs in the attached folder is "CI Instrument Communications.vi". The vi will leak approximatley 2GB of memory over an 8 hour period. Please let me know what you guys can find.
04-14-2014 06:10 AM
Why do you keep opening and closing your ethernet port? You only need to open it up once. You are just adding a bunch of overhead to the TCP layer.
Also the constant building of the string could lead to issues. I don't think that is your issue, but it is something to look into.
04-14-2014 07:14 AM - edited 04-14-2014 07:15 AM
Thanks for the reply. I originally wasn't closing the connection after each call, but I decided to try it to see if not closing it was the cause of the leak. In an example I found the connection was being closed and re-opened each loop iteration. This didnt fix the issue, so i'm still searching.
I'll look into the string.