issues with labview and memory leaks

This is a discussion on issues with labview and memory leaks within the labview forums in Programming Languages category; Hi, I do not use DataSocket ActiveX VIs. Does anyone seen memory leaks with DataSocket server? cosmin ...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 08-12-2008, 04:10 AM
cosmin
Guest
 
Default Re: issues with labview and memory leaks

Hi,
I do not use DataSocket ActiveX VIs. Does anyone seen memory leaks with DataSocket server?
cosmin 
Reply With Quote
  #12  
Old 08-12-2008, 06:10 PM
juliodiaz
Guest
 
Default Re: issues with labview and memory leaks

Que tal Cosmin,Tuve el mismo problema que tu, usaba LabVIEW DSC 7.0 y migré a LabVIEW DSC 8.6, y como ya han publicado<a href="../view_profile?user.id=95073" class="auth_text" style="font-weight: bold;" target="_blank"></a> Ben y Karunya R, es difícil encontrar la solución a algo si no podemos ver tu problema. Este ejemplo solucionó mi problema, espero solucione el tuyo.Hay algunas cosas que difieren de tu aplicación. Yo estoy usando Win XP SP3. Es recomendable que empieces a considerar cambiar tu sistema operativo a Win XP o Windows Vista, pues Windows 2000 pronto dejará de tener soporte por parte de Microsoft y cada vez será más difícil solucionar tus problemas con este sistema operativo.Saludos, Julio DíazMensaje editado por juliodiaz


DataSocket Memory Leaks.JPG:
http://forums.ni.com/attachments/ni/...3/1/DataSocket Memory Leaks.JPG


DataSocket Memory Leaks1.JPG:
http://forums.ni.com/attachments/ni/...3/2/DataSocket Memory Leaks1.JPG
Reply With Quote
  #13  
Old 08-13-2008, 06:10 PM
Karunya_R
Guest
 
Default Re: issues with labview and memory leaks

Hi Cosmin,&nbsp;If you can't post the whole code, it is possible for you to replicate the problem and put up a smaller piece of code to test. It is difficult to come to any type of conclusion without having something to work with.&nbsp;
Reply With Quote
  #14  
Old 08-13-2008, 07:10 PM
jlokanis
Guest
 
Default Re: issues with labview and memory leaks

Regarding the DS memory leak, would the following VI leak in LV8.5?&nbsp; We call this VI severla times in our code (but not in a loop).&nbsp; Does it matter how many times we call it?&nbsp; Does the leak only happen if we call it several times quickly?&nbsp; Do I need to cache the DS ref so I only call open once?&nbsp;-John


Write Output.vi:
http://forums.ni.com/ni/attachments/...349169/1/Write Output.vi
Reply With Quote
  #15  
Old 08-14-2008, 11:40 AM
Karunya_R
Guest
 
Default Re: issues with labview and memory leaks

Hi John,&nbsp;Are you seeing a memory leak? The only known issue with memory leaks and data sockets is when you use data socket active X VIs. The issue and the workaround is posted <a href="http://zone.ni.com/devzone/cda/tut/p/id/6449#46630%202VO0SF00%20by%20Category" target="_blank">here</a>.&nbsp;
Reply With Quote
  #16  
Old 08-14-2008, 01:40 PM
jlokanis
Guest
 
Default Re: issues with labview and memory leaks

Yes, I am seeing a slow memory leak, but I do not know if it is coming from the DS open-close.&nbsp; I read the workaround.&nbsp; What do you mean by 'ActiveX' VIs?&nbsp; Are the standard DS VIs using ActiveX or are there other VIs for DS that use ActiveX?The workaround states to open, do all your writes and then close.&nbsp; What if this operation is used many times in many places in an app that is supposed to run for many weeks?&nbsp; Am I supposed to cache the open ref and then pass it around?&nbsp; Is the leak coming from the open command or is the close simply not cleaning up properly?&nbsp; Does it matter what kind of write or read operation I do (I only use lookout calls to a remote cFP unit).&nbsp; What if this VI is reentrant and can be called by multiple threads simutaneously?&nbsp;Pleae provide a lot more detail on this issue and look at my VI.&nbsp;thanks,&nbsp;-John
Reply With Quote
  #17  
Old 08-15-2008, 05:40 PM
Karunya_R
Guest
 
Default Re: issues with labview and memory leaks

Hi John,&nbsp;I took a look at your VI and it does use DataSocket Active X.&nbsp; An example of a datasocket ActiveX vi is Browse to OPC item.vi in the shipping examples.&nbsp;&nbsp;I tried to run your VI but it looks like you are using an internal IP
address in your VI (which of course I wouldn't have access to). After how long to do you see your memory leak? Have you tried to use the VI profile window to track memory use for your VI. <a href="http://digital.ni.com/public.nsf/allkb/9515BF080191A32086256D670069AB68" target="_blank">This</a> knowledgebase has instructions on it.&nbsp; &nbsp; Thanks,
Reply With Quote
  #18  
Old 08-15-2008, 06:10 PM
jlokanis
Guest
 
Default Re: issues with labview and memory leaks

My VI just writes to a DIO output on a DIO card in a cFP unit that has the ethernet interface (no controller).&nbsp; Yes, this is a piece of HW in out lab.&nbsp; You could easily reproduce this by writting to a DIO card in your own cFP unit at NI.I do see a slow leak (over many days) in my application.&nbsp; I call this VI about 200 times a day.&nbsp;So, what you are telling me is the bug with DS will cause this VI to leak.&nbsp; Do you have any suggestions for how to work around this?&nbsp; The problem I have is many asyncronos threads are calling this VI so it has to be set to reentrant and therefore storing one global DS session and reusing it is not practical.&nbsp;
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:15 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.