<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META http-equiv=Content-Type content="text/html; charset=us-ascii"><META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD><BODY><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2>Hi Paul - </FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2>when I run your example I get an error: </FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2>ActiveX object returned error during GET of property "Document"</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2>Error 553</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2>Unspecified return error code 0x80004005 (16389)</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2>Do I need to have something special installed or should this work out-of-the-box/</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=171534511-28062005><FONT face=Arial color=#0000ff size=2>Sascha.</FONT></SPAN></DIV><BR><BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> Paul.Fowler@raytheon.co.uk [mailto:Paul.Fowler@raytheon.co.uk] <BR><B>Sent:</B> 28 June 2005 11:16<BR><B>To:</B> PDL-LISTS,VRF (A-Lists,unix1)<BR><B>Subject:</B> Re: [vrf] Internet Explorer<BR></FONT><BR></DIV> <DIV></DIV><BR><FONT face=sans-serif size=2>Having found a problem with the ExecWB method when trying to download a file silently; I humbly submit another solution using the URLDownloadToFileA function from urlmon.dll.</FONT> <BR><BR><FONT face=sans-serif size=2>Please see attached.</FONT> <BR><BR><FONT face=sans-serif size=2>Paul F.</FONT> <BR><BR><BR><BR><BR><BR> <TABLE width="100%" border=1> <TBODY> <TR vAlign=top> <TD width="13%" bgColor=#004200><FONT face=Arial color=#004200 size=1><B>Paul.Fowler@raytheon.co.uk</B></FONT> <TD width="73%" bgColor=white><FONT face="Times New Roman" size=2><B>Document Marked as Unclassified</B></FONT> <TD width="12%" bgColor=#004200></TR></TBODY></TABLE><BR> <TABLE width="100%"> <TBODY> <TR vAlign=top> <TD> <TD><FONT face=sans-serif size=2> </FONT><FONT face=sans-serif size=1><B>Paul.Fowler@raytheon.co.uk</B></FONT> <BR><FONT face=sans-serif color=#0041c2 size=5><B> </B></FONT><FONT face=sans-serif size=1>27/06/2005 16:36</FONT> <BR><FONT face=sans-serif color=#2f2f2f size=1><B> </B></FONT><FONT face=sans-serif size=2> </FONT><FONT face=sans-serif size=1>Please respond to Paul.Fowler<BR> </FONT> <BR><FONT face=sans-serif size=1> Stationery name:-Untitled-</FONT> <BR><BR> <P></P> <TD><FONT face=Arial size=1> </FONT><BR><FONT face=sans-serif size=1> To: VRF |vrf@agilent.com></FONT> <BR><FONT face=sans-serif size=1> cc: </FONT> <BR><FONT face=sans-serif size=1> Subject: Re: [vrf] Internet Explorer</FONT></TR></TBODY></TABLE><BR><BR><FONT face=sans-serif size=2><BR>Having loaded the page, I would navigate to the image itself using:</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif size=2><B><BR>A.Navigate(A.Document.Images(0).src)</B></FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif size=2><BR>where A is your InternetExplorer.Application object</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif size=2><BR>You can then use the <B>ExecWB</B> method to save the image. For Example:</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif size=2><B><BR>A.ExecWB(4,0)</B></FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif size=2><BR>will display the SaveAs box. It is also possible to save the image silently, to a filename you specify... there is some documentation on this here...</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif size=2><BR>http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/methods/execwb.asp</FONT><FONT face="Times New Roman" size=3> <BR><BR><BR><BR><BR></FONT> <TABLE width="100%" border=4> <TBODY> <TR vAlign=top> <TD width="47%" bgColor=#004200><FONT face=Arial color=#004200 size=1><B>|ext-michael.simon@nokia.com></B></FONT><FONT face="Times New Roman" size=3> </FONT> <TD width="48%" bgColor=white><FONT face="Times New Roman" size=2><B>Document Marked as Unclassified</B></FONT><FONT face="Times New Roman" size=3> </FONT> <TD width="3%" bgColor=#004200></TR></TBODY></TABLE><BR> <TABLE width="100%"> <TBODY> <TR vAlign=top> <TD width="2%"> <TD width="63%"><FONT face=sans-serif size=2> </FONT><FONT face=sans-serif size=1><B>|ext-michael.simon@nokia.com></B></FONT><FONT face="Times New Roman" size=3> </FONT><FONT face=sans-serif color=#0041c2 size=5><B><BR> </B></FONT><FONT face=sans-serif size=1>27/06/2005 14:50</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face=sans-serif color=#2f2f2f size=1><B><BR> </B></FONT><FONT face=sans-serif size=2> </FONT><FONT face=sans-serif size=1>Please respond to ext-michael.simon<BR> </FONT><FONT face="Times New Roman" size=3> </FONT><FONT face=sans-serif size=1><BR> Stationery name:-Untitled-</FONT><FONT face="Times New Roman" size=3> <BR></FONT> <TD width="34%"><FONT face=Arial size=1> </FONT><FONT face=sans-serif size=1><BR> To: VRF |vrf@agilent.com></FONT><FONT face="Times New Roman" size=3> </FONT><FONT face=sans-serif size=1><BR> cc: </FONT><FONT face="Times New Roman" size=3> </FONT><FONT face=sans-serif size=1><BR> Subject: [vrf] Internet Explorer</FONT></TR></TBODY></TABLE><BR><FONT face="Times New Roman" size=3><BR></FONT><FONT face="Courier New" size=2><BR>Hi,<BR><BR>I'm using "Microsoft HTML Object Library" and "Microsoft Intenet Controls" as ActiveX libraries to automatically start the Internet Explorer and navigate to a web page. On this web page only one image is displayed and now I want to save this image to file on my harddisk. <BR>Any idea how to do this?<BR><BR>Regards,<BR><BR>Michael<BR><BR>---<BR>You are currently subscribed to vrf as: Paul.Fowler@raytheon.co.uk<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</FONT><FONT face="Times New Roman" size=3><BR><BR><BR>--- You are currently subscribed to vrf as: Paul.Fowler@raytheon.co.uk To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</FONT> <BR><BR>--- You are currently subscribed to vrf as: sspangenberg@agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BLOCKQUOTE><BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word"><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250"><META content="MSHTML 6.00.2900.2668" name=GENERATOR><STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"}LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"}DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"}A:link { COLOR: blue; TEXT-DECORATION: underline}SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline}A:visited { COLOR: purple; TEXT-DECORATION: underline}SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline}SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose}DIV.Section1 { page: Section1}</STYLE></HEAD><BODY lang=EN-US vLink=purple link=blue><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=685592814-28062005>Amrik,</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=685592814-28062005>You can add "Value Constraint" input pins to the Real64 Input boxes. Since the constraints will change periodically, i.e. not that often, I would read in the value constraints from a text file. Alterntively you could build a user interface with fields for "Max Low Force Limit" etc.</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=685592814-28062005>Hope that helps,</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=685592814-28062005>Warren</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=685592814-28062005></SPAN></FONT> </DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Amrik Sekhon [mailto:Amrik.Sekhon@GeePlus.biz]<BR><B>Sent:</B> 28 July 2005 15:23<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] User Changeable parameters<BR><BR></FONT></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi Folks<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I was wondering if anyone can point me in the right direction. <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have a series of if then boxes that contain tolerances for each test parameter.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I need to create some code that will allow these to be changed by the user. However these will not be changed everytime the program is run, they will be set periodically. I need to know, what is the best way of storing and retrieving these values, so that it can be done in the runtime version.<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have attached the basic format of the user input to help explain. <o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Cheers<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Amrik<o:p></o:p></SPAN></FONT></P></DIV><BR>---<BR>You are currently subscribed to vrf as: Warren.Pickles@tycoelectronics.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". <BR> <P><FONT size=2>--<BR>Internal Virus Database is out-of-date.<BR>Checked by AVG Anti-Virus.<BR>Version: 7.0.323 / Virus Database: 267.8.5/32 - Release Date: 27/06/2005<BR></FONT></P> <P><FONT face=Arial size=2></FONT></P></BLOCKQUOTE><BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></HTML>
> Can't open your example, Sascha, as I'm not up to VEE 7.0 yet. Sorry.
> Does VEE 7.0 no longer have 'Delete Library' under the 'Device' menu? Yes Delete Library does exist, but sadly it does not do a proper job since it does not free up the allocated memory
S.
Cheers Paul F.
"SPANGENBERG,SASCHA (A-Scotland,ex1)" <sspangenberg@agilent.com> Document Marked as Unclassified
"SPANGENBERG,SASCHA (A-Scotland,ex1)" <sspangenberg@agilent.com> 28/06/2005 16:18 Please respond to "SPANGENBERG,SASCHA (A-Scotland,ex1)"
Stationery name:-Untitled-
To: VRF <vrf@agilent.com> cc: Subject: [vrf] Library Import "Memory Leak"
Hi -
this is more an observation than a serious problem since it will
not happen to many people..
I noticed that the Vee memory footprint increases continuously when I execute some program repeatedly.
One issue I have found was that re-importing a modified library does not release the memory that was previously allocated for the library.
See the attached example which shows the increased memory usage when re-importing a library several time (along with the increased library load times due memory demands I guess).
Note that this is a very specialised scenario and it will probably only cause trouble when developing a library since vee only re-imports a library if the library file has been modified since the last import...
One possible workaround might be to "manually" unload the library similar to the "Delete Variable" approach but this does not cover libraries..
So my question woul be: Is it possible to remove an imported library from a running vee program prior to re-importing it? (Other than closing the vee program and reloading it;-)
Sascha.
--- You are currently subscribed to vrf as: Paul.Fowler@raytheon.co.uk To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
So I digged up System.GC.Collect() from mscorlib which apparently collects all garbage but no luck, the memory creeps up regardless.. Still it was worth a try :-)
Sascha.
> -----Original Message----- > From: Shawn Fessenden [mailto:shawn@testech-ltd.com] > Sent: 28 June 2005 17:18 > To: PDL-LISTS,VRF (A-Lists,unix1) > Subject: RE: [vrf] Library Import "Memory Leak" > > On the other hand... > > You know, this whole .NET thing depends on the manager to > keep it in line. The library might be retained because > garbage collection hasn't run. If you can find a Compact or > CollectGarbage call, that might help. > -SHAWN- >
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
So I digged up System.GC.Collect() from mscorlib which apparently collects all garbage but no luck, the memory creeps up regardless.. Still it was worth a try :-)
Sascha.
> -----Original Message----- > From: Shawn Fessenden [mailto:shawn@testech-ltd.com] > Sent: 28 June 2005 17:18 > To: PDL-LISTS,VRF (A-Lists,unix1) > Subject: RE: [vrf] Library Import "Memory Leak" > > On the other hand... > > You know, this whole .NET thing depends on the manager to > keep it in line. The library might be retained because > garbage collection hasn't run. If you can find a Compact or > CollectGarbage call, that might help. > -SHAWN- >
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45"><TITLE>RE: [vrf] Library Import "Memory Leak"</TITLE></HEAD><BODY><P><FONT SIZE=2>It's also the day after The Paper Bag party (10pm - 4am) and I should still be in bed...</FONT></P><P><FONT SIZE=2>Memory leak? Yeah, I have it big time today.</FONT></P><P><FONT SIZE=2>-Bill</FONT></P><P><FONT SIZE=2>(The Paper Bag is the World's Longest Running (and probably only) 60 piece rock band.)</FONT><BR><FONT SIZE=2><A HREF="http://www.paperbagmusic.com" TARGET="_blank">http://www.paperbagmusic.com</A></FONT></P><BR><BR><P><FONT SIZE=2>> -----Original Message-----</FONT><BR><FONT SIZE=2>> From: Shawn Fessenden [<A HREF="mailto:shawn@testech-ltd.com">mailto:shawn@testech-ltd.com</A>]</FONT><BR><FONT SIZE=2>> Sent: Wednesday, June 29, 2005 10:08 AM</FONT><BR><FONT SIZE=2>> To: VRF</FONT><BR><FONT SIZE=2>> Subject: RE: [vrf] Library Import "Memory Leak"</FONT><BR><FONT SIZE=2>> </FONT><BR><FONT SIZE=2>> </FONT><BR><FONT SIZE=2>> > thanks for looking into this to such a length.</FONT><BR><FONT SIZE=2>> </FONT><BR><FONT SIZE=2>> Hey it's the day after Brandy's 21st birthday party! I'm not </FONT><BR><FONT SIZE=2>> much good for anything except messing around until at least </FONT><BR><FONT SIZE=2>> another pot of coffee </FONT><BR><FONT SIZE=2> </FONT></P><P><FONT SIZE=2> This e-mail and subsequent attachments may contain information which is proprietary to L-3 Communications Corporation. The contents shall not be disclosed, copied, distributed or used unless authorized by L-3 Communications Narda - East.</FONT></P><BR>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list, email "vrf@agilent.com". <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></HTML>
This "appears" to be a real leak. I'll submit a defect report.
BTW, WorkingSet isn't the best indicator for tracking memory leaks. It represents the sub-set of virtual pages resident in physical memory. To see this in action, run the leaking program for a while then minimize the VEE window for a few seconds and then restore it. Notice that the working set number drops way down for a bit. This is a Windows feature to free up physical memory for other apps. A better indicator would be to use the PrivateMemorySize property.
Also two great tools for spelunking memory usage is the Performance Monitor (perfmon.exe) - specifically the Process and .NET counters. The other tool is ClrProfiler -
> -----Original Message----- > From: Shawn Fessenden [mailto:shawn@testech-ltd.com] > Sent: Wednesday, June 29, 2005 8:08 AM > To: PDL-LISTS,VRF (A-Lists,unix1) > Subject: RE: [vrf] Library Import "Memory Leak" > > > thanks for looking into this to such a length. > > Hey it's the day after Brandy's 21st birthday party! I'm not much good for > anything except messing around until at least another pot of coffee :-) > > > Maybe we should consider it a Vee Defect > > because the Delete Library should really > > clear up the memory I would have thought. > > Maybe it should, but I imagine it's just because nobody ever anticipated > the effect of re-loading VEE libraries that use .NET. I know it works ok > if you don't use .NET. At some point in these feature discussion meetings > you have to stop asking "what if" and just get down to bidness! > > > Who knows... ( maybe the Vee Lady does > > I suspect Keith could probably shed some light on what is happening, and > even come up with a work-around (if that's possible anyway). > > I can think of a way to do it provided you're just developing. As long as > you don't really need VEE to stick around that is. You could easily have > VEE run a batch file that would close VEE and reopen it. > -SHAWN-
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Maybe we should consider it a Vee Defect because the Delete Library should really clear up the memory I would have thought.
I reckon there is a way for the Vee guys to fix though because ultimately vee does it already when closing the vee program (not the editor, i.e. after the example ran you can do a File->New which does close the example but does keep the vee editor running). This action does free up the memory so somewhere in the vee editor implementation the memory must get freed up..
On the other hand maybe this is a .NET thing too and the Vee Editor doesn't really have any control over it..
Who knows... ( maybe the Vee Lady does
Sascha.
> -----Original Message----- > From: Shawn Fessenden [mailto:shawn@testech-ltd.com] > Sent: 29 June 2005 14:14 > To: PDL-LISTS,VRF (A-Lists,unix1) > Subject: RE: [vrf] Library Import "Memory Leak" > > > Trying FreeLibrary. > > Well don't bother doing that! I tried unloading mscorlib.dll > and VEE vanished in a puff of greasy black smoke. Naturally > this would mean that something's destructor tried to run and > all that was there was empty space. > > But... I'm still pretty convinced .NET is at the root of the > problem. If you could somehow create a new AppDomain and load > your VEE library in it, you could then Unload that domain > before re-importing the library. > > How exactly that would work out I have no idea. It looks like > you'd have to abandon VEE's .NET Assembly References... > dialog and simply do it by hand (but now you're in a chicken > & egg scenario). Maybe a two level deal would work. Import > AppDomain, create a new AppDomain, load assemblies and > operate in it, then unload it when done. > > Sounds goofy but it's the only way I can see around the > memory problem unless VEE itself can be told to unload it's > .NET AppDomain without actually using .NET. > -SHAWN- >
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Sorry.
> Does VEE 7.0 no longer have 'Delete Library' under the 'Device' menu?
Yes Delete Library does exist, but sadly it does not do a proper job
since it does not free up the
allocated memory
S.
Cheers
Paul F.
"SPANGENBERG,SASCHA (A-Scotland,ex1)"
<sspangenberg@agilent.com> Document Marked as Unclassified
"SPANGENBERG,SASCHA
(A-Scotland,ex1)" <sspangenberg@agilent.com>
28/06/2005 16:18
Please
respond to "SPANGENBERG,SASCHA (A-Scotland,ex1)"
Stationery
name:-Untitled-
To: VRF <vrf@agilent.com>
cc:
Subject: [vrf] Library Import "Memory Leak"
Hi -
this is more an observation than a serious problem since it will
not happen to many people..
I noticed that the Vee memory footprint increases continuously
when I execute some program repeatedly.
One issue I have found was that re-importing a modified library
does not release the memory that was previously allocated for
the
library.
See the attached example which shows the increased memory usage
when
re-importing
a library several time (along with the increased library load
times due
memory
demands I guess).
Note that this is a very specialised scenario and it will
probably only
cause trouble
when developing a library since vee only re-imports a library if
the
library file has been
modified since the last import...
One possible workaround might be to "manually" unload the
library
similar to the "Delete Variable"
approach but this does not cover libraries..
So my question woul be:
Is it possible to remove an imported library from a running vee
program
prior to re-importing it?
(Other than closing the vee program and reloading it;-)
Sascha.
---
You are currently subscribed to vrf as:
Paul.Fowler@raytheon.co.uk
To subscribe send a blank email to
"join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to
"leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
So I digged up System.GC.Collect() from mscorlib which apparently
collects all garbage
but no luck, the memory creeps up regardless.. Still it was worth a try
:-)
Sascha.
> -----Original Message-----
> From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
> Sent: 28 June 2005 17:18
> To: PDL-LISTS,VRF (A-Lists,unix1)
> Subject: RE: [vrf] Library Import "Memory Leak"
>
> On the other hand...
>
> You know, this whole .NET thing depends on the manager to
> keep it in line. The library might be retained because
> garbage collection hasn't run. If you can find a Compact or
> CollectGarbage call, that might help.
> -SHAWN-
>
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
So I digged up System.GC.Collect() from mscorlib which apparently
collects all garbage
but no luck, the memory creeps up regardless.. Still it was worth a try
:-)
Sascha.
> -----Original Message-----
> From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
> Sent: 28 June 2005 17:18
> To: PDL-LISTS,VRF (A-Lists,unix1)
> Subject: RE: [vrf] Library Import "Memory Leak"
>
> On the other hand...
>
> You know, this whole .NET thing depends on the manager to
> keep it in line. The library might be retained because
> garbage collection hasn't run. If you can find a Compact or
> CollectGarbage call, that might help.
> -SHAWN-
>
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
This "appears" to be a real leak. I'll submit a defect report.
BTW, WorkingSet isn't the best indicator for tracking memory leaks. It
represents the sub-set of virtual pages resident in physical memory. To
see this in action, run the leaking program for a while then minimize
the VEE window for a few seconds and then restore it. Notice that the
working set number drops way down for a bit. This is a Windows feature
to free up physical memory for other apps. A better indicator would be
to use the PrivateMemorySize property.
Also two great tools for spelunking memory usage is the Performance
Monitor (perfmon.exe) - specifically the Process and .NET counters. The
other tool is ClrProfiler -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/h
tml/scalenethowto13.asp
--
Keith
> -----Original Message-----
> From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
> Sent: Wednesday, June 29, 2005 8:08 AM
> To: PDL-LISTS,VRF (A-Lists,unix1)
> Subject: RE: [vrf] Library Import "Memory Leak"
>
> > thanks for looking into this to such a length.
>
> Hey it's the day after Brandy's 21st birthday party! I'm not much good
for
> anything except messing around until at least another pot of coffee
:-)
>
> > Maybe we should consider it a Vee Defect
> > because the Delete Library should really
> > clear up the memory I would have thought.
>
> Maybe it should, but I imagine it's just because nobody ever
anticipated
> the effect of re-loading VEE libraries that use .NET. I know it works
ok
> if you don't use .NET. At some point in these feature discussion
meetings
> you have to stop asking "what if" and just get down to bidness!
>
> > Who knows... ( maybe the Vee Lady does
>
> I suspect Keith could probably shed some light on what is happening,
and
> even come up with a work-around (if that's possible anyway).
>
> I can think of a way to do it provided you're just developing. As long
as
> you don't really need VEE to stick around that is. You could easily
have
> VEE run a batch file that would close VEE and reopen it.
> -SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
thanks for looking into this to such a length.
Maybe we should consider it a Vee Defect because the
Delete Library should really clear up the memory I would have thought.
I reckon there is a way for the Vee guys to fix though because
ultimately
vee does it already when closing the vee program (not the editor, i.e.
after the example ran you can do a File->New which does
close the example but does keep the vee editor running). This action
does free up the memory so somewhere in the vee editor implementation
the
memory must get freed up..
On the other hand maybe this is a .NET thing too and the Vee Editor
doesn't really have any control over it..
Who knows... ( maybe the Vee Lady does
Sascha.
> -----Original Message-----
> From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
> Sent: 29 June 2005 14:14
> To: PDL-LISTS,VRF (A-Lists,unix1)
> Subject: RE: [vrf] Library Import "Memory Leak"
>
> > Trying FreeLibrary.
>
> Well don't bother doing that! I tried unloading mscorlib.dll
> and VEE vanished in a puff of greasy black smoke. Naturally
> this would mean that something's destructor tried to run and
> all that was there was empty space.
>
> But... I'm still pretty convinced .NET is at the root of the
> problem. If you could somehow create a new AppDomain and load
> your VEE library in it, you could then Unload that domain
> before re-importing the library.
>
> How exactly that would work out I have no idea. It looks like
> you'd have to abandon VEE's .NET Assembly References...
> dialog and simply do it by hand (but now you're in a chicken
> & egg scenario). Maybe a two level deal would work. Import
> AppDomain, create a new AppDomain, load assemblies and
> operate in it, then unload it when done.
>
> Sounds goofy but it's the only way I can see around the
> memory problem unless VEE itself can be told to unload it's
> .NET AppDomain without actually using .NET.
> -SHAWN-
>
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
This seems to be a problem still, in Vee 9.0.
The reason why I'm re-loading the library is because I would like to close down a ActiveX automation reference.
If anyone have an idea how to close the ActiveX automation reference without deleting a library it would be most helpful.
/Tor Andersson