Opening/closing References in TS-engine does not work as expected, so creating memory hooks. Any solutions?

Hi!
As my project had grown beyond the point where I could keep a global overview, I tried creating atool that dynamically creates a kind of hirarchy for my TS libraries. It runs quite well for a small test setup, but crashes due to missing memory for the whole project. Any ideas?
A short description: I do all coding in LV7.1.
* Firts I open an automation refnum to TS.Iengine and invoke the method 'GetSequenceFileEx' with the path to my main seqfile, Flags = 0 and conflicthandler_Error.
* Than I use that sequencefile object to invoke the method 'Getsequence' with an index of 0 (assuming this beeing the 'MainSequence').
* For the returned sequence object I invoke the method 'GetNumSTep', which is fed into a For-Loop. Inside that loop, the very same object reference is used to:
- invoke 'GetStep' with the loop index
- with the step object i get some proiperties like Name, some expression and bolean values. If the step 'can_Specify_module', I invoke 'GetDescriptionEx', before the step object is closed (cvlose reference vi)
- I also invoke 'Parameters' on the step object. The parameter reference is used to access the property 'getLocation', which than is used as lookupString to access the property 'GetNumSubProperties', which I take as number of parameters of that step. Finally the parameters reference is closed
* The reference to the sequence object is closed after the for loop.
I fianlly get an array of description for all steps in the sequence file, in the order they are called from mainsequence there.
This array is used to recursively add a similar subarray for any subsequence call in it, until all calls are resolved (using a while loop that runs until the loop counter reaches the number of steps in the step description array).
The array is than scanned for 'typical' errors of mine like wrong parameter number at subsequence calls, missing/misspelled subsequences andf so on.
The LabVIEW execution accumulates more than 1 GB of RAM. LabVIEW itself reports just some 100kB of used RAM. So I assume the difference is RAM used by TS as a child process in LV. What can be done?
A vi with this code is provided (AS IS!).
Attachments:
SeqFileAnalyser.zip ‏192 KB

Hello Lul,
I tried out you tool and took a quick look at it and it ran fine. I did notice that LV memory grows during execution but only a few kb with a standard demo from TS (the increase is about the same size as the file being saved at the end). This is expected bahavior since results are being stored in memory during execution. When it is done, my mem goes back to about what it used to be before running. 1 GB of Mem seems to be very very very high! Did you expect it to be like this? How big is your txt file being created? Is the VI you posted exactly what you are using or do you have additinal loops that make the VI run continuosly and save to txt after multiple runs? I did not see any critical issues with your VI but I also did not go into your code in debth.
As long as you close all your TS references in LV, you should not havbe any mem leaks.
If you expect big fiole to be created, your PC will use up all RAm then use Virtual mem, the size for Virtual mem can be set in the Control Panel in Windows, usually tough, the system can set it dinamically, this might help you avoid crashe.
Hope this helps
Nick

Similar Messages

  • I have upgraded to Lion Os but my Network storage (Iomega Home Media Network hard drive) does not work with Time Machine.  Are there any solution available?

    I have upgraded to Lion  OS only to find that my NAS (Iomega Home Media Network hard drive) does not work.  It tells me that it is not configured.  Are there any solutions .  Have Iomega sorted out the problem?

    Same issue here.  Based on what I can tell, iomega still has not developed a solution to the problem.  See below:
    https://iomega-na-en.custhelp.com/app/answers/detail/a_id/28327/kw/Mac%20OS%20X% 20Lion

  • I've moved my Aperture library to another computer, and masters are referencing an old path name.  How can I update these references?  Reloctating masters does not work in this case :(

    I've moved my Aperture library from one computer to another using Finder.
    I merged the library with one which was already on the computer.
    Now, the photos I imported have reference to the old path name on my old computer.
    How can I update these references as "Relocate Masters" does not work in this case?

    Just one suggestion to be able to reconnect all at once:
    Create a smart album containing the images with missing masters:
    File -> New ->  Smart Album,     and add a rule: File Status is "Missing"     (or File Status is "offline")
    Then select the images in this album and go to the File menu:
    and select:   File -> Locate referenced File
    If you are lucky, Aperture will reconnect all at once, if you point the first image version to its counterpart.

  • When I open firefox before connecting (via 56k modem) or if I leave a previous section open, disconnect and then reconnect, firfox does not work, it remains offline, even though internet is connected. I have to close firefox and reopen

    When I open firefox before connecting (via 56k modem) or if I leave a previous section open, disconnect and then reconnect, firfox does not work, it remains offline, even though internet is connected. I have to close firefox and reopen

    Thanks for the reply. I never get the option to "Restore Previous History" from History. I don't even have the box checked that asks to delete the history when Firefox closes. I don't know what's wrong, no matter what, I always lose everything. I have the box marked "Show my windows and tabs from last time" for when I open Firefox, but it never shows that, just my homepage. Also, when I check my History, it only shows the pages that I opened since I started Firefox, nothing from before. Even if I were to open up 10 pages now, close Firefox, and open it, the history would only show the homepage that opened this time, not any of the 10 pages that I opened 5 minutes ago.

  • Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million :)

    Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million

    Try troubleshooting the Safari .plist file.
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Relaunch Safari. Try a bookmark.
    If that didn't help, check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari.
    If Extensions aren't the issue, reset Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

  • TS3212 I get an apple application support error when installing itunes. It says uninstall and re-install.  Does not work.  same message.  What is a solution?

    I get an apple application support error when installing itunes. It says uninstall and re-install.  Does not work.  same message.  What is a solution?

    Is that an error 2 message?
    If so, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • Silverlight 5 binding on a property with logic in its setter does not work as expected when debug is attached

    My problem is pretty easy to reproduce.
    I created a project from scratch with a view model.
    As you can see in the setter of "Age" property I have a simple logic.
        public class MainViewModel : INotifyPropertyChanged
                public event PropertyChangedEventHandler PropertyChanged;
                private int age;
                public int Age
                    get
                        return age;
                    set
                        /*Age has to be over 18* - a simple condition in the setter*/
                        age = value;
                        if(age <= 18)
                            age = 18;
                        OnPropertyChanged("Age");
                public MainViewModel(int age)
                    this.Age = age;
                private void OnPropertyChanged(string propertyName)
                    if (this.PropertyChanged != null)
                        PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    In the MainPage.xaml 
         <Grid x:Name="LayoutRoot" Background="White">
                <TextBox 
                    Text="{Binding Path=Age, Mode=TwoWay}" 
                    HorizontalAlignment="Left"
                    Width="100"
                    Height="25"/>
                <TextBlock
                    Text="{Binding Path=Age, Mode=OneWay}"
                    HorizontalAlignment="Right"
                    Width="100"
                    Height="25"/>
            </Grid>
    And MainPage.xaml.cs I simply instantiate the view model and set it as a DataContext.
        public partial class MainPage : UserControl
            private MainViewModel mvm;
            public MainPage()
                InitializeComponent();
                mvm = new MainViewModel(20);
                this.DataContext = mvm;
    I expect that this code will limit set the Age to 18 if the value entered in the TextBox is lower than 18.
    Scenario: Insert into TextBox the value "5" and press tab (for the binding the take effect, TextBox needs to lose the focus)
    Case 1: Debugger is attached =>
    TextBox value will be "5" and TextBlock value will be "18" as expected. - WRONG
    Case 2: Debugger is NOT attached => 
    TextBox value will be "18" and TextBlock value will be "18" - CORRECT
    It seems that when debugger is attached the binding does not work as expected on the object that triggered the update of the property value. This happens only if the property to which we are binding has some logic into the setter or getter.
    Has something changed in SL5 and logic in setters is not allowed anymore?
    Configuration:
    VisualStudio 2010 SP1
    SL 5 Tools 5.1.30214.0
    SL5 sdk 5.0.61118.0
    IE 10
    Thanks!                                       

    Inputting the value and changing it straight away is relatively rare.
    Very few people are now using Silverlight because it's kind of deprecated...
    This is why nobody has reported this.
    I certainly never noticed this problem and I have a number of live Silverlight systems out there.
    Some of which are huge.
    If you want a "fix":
    private void OnPropertyChanged(string propertyName)
    if (this.PropertyChanged != null)
    //PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    Storyboard sb = new Storyboard();
    sb.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 100));
    sb.Completed += delegate
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    sb.Begin();
    The fact this works is interesting because (I think ) it means the textbox can't be updated at the point the propertychanged is raised.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • Open Link in New Window, sometimes does not work???

    The problem is in FF4b9 an 10 (the only ones I tested). The problem is that when I open a link in a new window sometimes it does not work. Well, I am presented with a new instance of the browser as expected but it seems like the parameter is not passed or something. Also, I have noticed something weird about the new instance. There is a button labeled Firefox in orange and another set of minimize, maximize, and close buttons. Here is a screenshot:
    http://i52.tinypic.com/ilejkn.png

    There is this pref: browser.tabs.loadBookmarksInBackground
    But it doesn't have effect if you open links via the Library, it only works when opened via the browser window (menu, toolbar, sidebar).

  • VPD context_sentisitive policy does not works as expected

    Hi,
    I'm trying to implement CONTEXT_SENSITIVE RLS policies:
    http://docs.oracle.com/database/121/ARPLS/d_rls.htm#ARPLS67721
    Server re-evaluates the policy function at statement execution time if it detects context changes since the last use of the cursor. For session pooling where multiple clients share a database session, the middle tier must reset context during client switches. Note that the server does not cache the value returned by the function for this policy type; it always executes the policy function on statement parsing. Applies to only one object.
    What I have discovered so far:
    1. policy function executed each time when query executed from SQL*Plus. Independently of context changes.
    2. policy function executed only once when query executed from PL/SQL.
    3.  When we have a PL/SQL procedure like this:
    begin
    <query>
    <change context>
    <query>
    end;
    Additionally, query (cursor) is not present in PL/SQL cursor cache, then
    policy functions executed only once when first query executed.
    So wrong results are possible when application context changed in a way that policy function returned predicate also changed.
    4. JDBC: policy function executed each time when query is executed. Policy function executed only once when I enabled statement caching:
    OracleDataSource ods =  new OracleDataSource();
    // skip
    ods.setConnectionCachingEnabled( true );
    ods.setImplicitCachingEnabled( true );
    Properties cacheProps = new Properties();
    cacheProps.put( "InitialLimit", "1" );
    cacheProps.put( "MinLimit", "1" );
    cacheProps.put( "MaxLimit", "5" );
    cacheProps.put( "MaxStatementsLimit", "50" );
    ods.setConnectionCacheProperties( cacheProps );
    5. Queries with RLS policies are not cached in the session cursor cache. For example, if we executed same query multiple times in SQL*Plus - then this query will be not cached.
    2 and 3 (PLSQL) relates to PL/SQL cursor cache.
    As a result, when we disable PL/SQL cursor cache (setting session_cached_cursors=0), then policy function executed each time in PL/SQL.
    What I have observed, it is not agreed with documentation on context_sensitive policies (I provided a link above):
    Server re-evaluates the policy function at statement execution time if it detects context changes since the last use of the cursor.
    Signature of DBMS_RLS.ADD_POLICY procedure was changed in 12c with additional arguments: NAMESPACE, ATTRIBUTE.
    I tried to use them with no luck, results are the same.
    In my opinion statements below are contradict to each other:
    1. Server re-evaluates the policy function at statement execution time if it detects context changes since the last use of the cursor.
    2. it always executes the policy function on statement parsing.
    First, documentation says that the policy function evaluates at statement execution time.
    Second, documentation says that the policy function executes on statement parsing.
    I have used Oracle Database 12.1.0.2 for testing.
    I provided a script that I have used in my tests:
    rls_policy.txt - creates test schema and policy
    rls_sqlplus.txt - runs simple select against query with RLS policy
    rls_plsql.txt - more complex example, runs some anonymous blocks with queries against table with RLS policy.
    In my opinion, context_sensitive policies does not works as described in the documentation.
    Is it a bug or I'm missing something?
    Please advice.
    Best regards,
    Mikhail.

    Thanks Scott. May i know why i should never use user policies for denying access?
    From my readings on some articles, there is no way to deny users permission in sharepoint after granting domain users with read access other than the web application user policy in our case (with certain reason, we need this group to be granted with
    read access but we would like to restrict small amount of users from seeing the page)

  • TS1996 my zero key does not work as it should after software update any help

    my zero key does not work after a software update when i try to use it /pp0 then volume symbol appears on the screen just happened after the update

    Hello, pakie1. 
    Thank you for visiting Apple Support Communities.
    Here is a troubleshooting article that you may find helpful when experiencing keyboard issues.
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Cheers,
    Jason H.

  • CuciLync 9.2 - registry key configuration does not work as expected

    Hi,
    according to the Administration Guide for CuciLync 9.2.2 some registry keys are supported to configure the client.
    In the chapter 'Phone Parameters' there is a statement that four registry keys are supported:
    CcmcipServer1
    CcmcipServer2
    TftpServer1
    TftpServer2
    In the next chapter 'CTI Load Balancing' there is an explanation that the registry key UseCUCMGroupForCti is also supported.
    => Does that mean that five registry keys are supported and not only four ?
    My next questions leads to the possible values for these registry keys.
    With CuciLync 8.6 it was possible to leave the registry keys for CcmcipServer empty.
    In this case the IP addresses for CcmcipServer were automatically defined by downloading the config file.
    And with UseCUCMGroupForCti these IP addresses were 'copied' to CtiServer.
    That means with CuciLync 8.6 there was need to define CcmcipServer and CtiServer.
    Only the TftpServers were configured by registry keys.
    => Is this also supported with CuciLync 9.2 ?
    => If no: In which future version do you plan to implement this ?
    => If yes: Are there any extra settings needed ? Because it does not work at the moment
    Thanks for your feedback
    Best Regards
    Carsten Lucy
    (Bayer Business Services)

    According to MSDN:
    When caching is enabled, the module caches the service information data until it polls the Service Control
    Manager and discovers that the data has changed. If changed, the module updates the cached data and returns it as output. You can disable this caching feature, but doing so will cause the module to return data at every polling interval instead of only returning
    when the data has changed or when the polling interval count has reached a multiple of 10.
    However, the configuration is DisableCaching, and the default is False. Go figure that one out. Gotta
    love Microsoft configuration names and documentation! If true, then it's not disable..... :)
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Some components does not work in a new created window

    Hi Guys,
    I don't know if there are some parts I am missing, but i
    could not get it work. Hope you can help.
    I created a native window for my AIR application from AS3.
    see the code,
    but there are some components in the newly created window
    does not work properly, e.g. the combobox, the drop-down list is
    not displayed, although the data is there. and the drag and drop
    interaction with desktop is also not working. Could anyone help?
    Thanks!

    Anyone can help?

  • "Open In" functionality with .ibooks file does not work

    I am using the latest iBooksAuthor v2.2 and exporting an iBook to the .ibooks file format.  I have tried with and without a version number.  When I import the .ibooks file using the "Open In" functionality on the iPad it opens in the iBooks app.  However, if the book is already in iBooks it does not overwrite the existing iBook with the new file that has the changes I have made.  Am I missing a setting somewhere to ensure this works?

    Hello kbbean,
    The resource below will explain how to publish and update to your previously published book in the iBooks Store:
    iBooks Author: How to update your published book in the iBooks Store - Apple Support
    http://support.apple.com/en-us/HT202443
    Learn how to update a book that you published to the iBooks Store.
    Before you can publish an update to your book:
    You must have a Paid Books Account or Free Books Account.
    You must have submitted your book to the iBooks Store at least one time.
    You must install iTunes Producer on your Mac.
    You must install iBooks Author 2.0 or later. We recommend the latest version of iBooks Author.
    Your book’s file size can't be larger than 2 GB.
    If you want to update your screenshots, use Contact Us in iTunes Connect. You can't update the screenshots that appear with your book in the iBooks Store via a redelivery. You can add screenshots to iTunes Producer only the first time you publish your book. 
    When you're ready to publish an update to your book:
    Open the book (.iba file) that you'd like to update in iBooks Author.
    Make the desired changes to your book.
    Click Publish in the iBooks Author toolbar, or choose it in the File menu.
    Follow the prompts until you reach the Add Version Info screen.
    Select "This is an update to a previously submitted book."
    Click Continue.
    Choose which of your previously published books you'd like to update.
    Enter a new version number. The new version number must be higher than the version number that currently appears on the iBooks Store.
    Click Continue and follow the prompts.
    iBooks Author will export your updated book to iTunes Producer. Follow the onscreen instructions in iTunes Producer to publish your updated book to the iBooks Store. Most of the required fields will be filled in for you, but you'll need to include text in the What's New field to update your book.
    Last Modified: Nov 8, 2014
    Have a great weekend!
    - Judy

  • Firefox application starts IE instead, can't open Firefox in anyway! Reinstalation does not work.

    Today I was browsing regular wallpaper webistes, and suddently my Firefox crashed, and opened IE to its home page. After this, in every way I tried to execute Firefox, I got IE opened instead. I ran a full virus scan, got some trojans wiped out, but the problem continued. Tried restarting, and finally reinstalling FF, but none of it worked. Never seen anything like this, anyone knows how to fix this?
    Thanks in advance

    Do you still have a Firefox desktop shortcut?
    You can also check if Firefox is still installed.
    Firefox installation folder:
    *(32 bit Windows) C:\Program Files\Mozilla Firefox\
    *(64 bit Windows) C:\Program Files (x86)\Mozilla Firefox\
    Also check the setting of the default browser.
    See:
    *http://kb.mozillazine.org/Default_browser
    *https://support.mozilla.org/kb/How+to+make+Firefox+the+default+browser
    *https://support.mozilla.org/kb/Setting+Firefox+as+the+default+browser+does+not+work

  • [SOLVED] gtk-qt-engine does not work

    I basically no long use GNOME but I do use a few GTK apps such as Pidgin and Firefox (thats GTK right?). Anyways they look like total crap in KDE and I'd rather not start gnome-theme-manager everyday just to theme them right.
    I installed gtk-qt-engine in the hopes that it would theme my GTK apps to look like my KDE theme ...
    http://img164.imageshack.us/img164/1340 … 68sju0.png
    As you can see there, I have it enabled (I think), but Pidgin in the background is not themed like it should be o_O.
    Any ideas?
    Thanks.
    Last edited by A.I. BOT (2007-07-10 18:40:07)

    gtk-qt-engine is a bit broken, at least that is how it feels. A workaround for your problem is set in kde control center a gtk style for your gtk apps (same place where you tell to use gtk-qt-engine). After this, start a gtk application, it has a normal gtk style now. Close the gtk app, go back to control center and choose use qt theme for gtk apps at that place (dunno how it is exactly called, I'm not in kde atm). Now it should apply your qt theme to gtk apps.

Maybe you are looking for

  • Ipod restore not working?

    So about a week ago my main ipod, a 160 gb ipod classic has been having tons of issues, i don't know if they are related in anyway. First the center button became stuck under the click wheel. Then the ipod was needed to be restored. I did it and that

  • Jdeveloper error on downloading resource from portal server from WC Spaces

    Hi All, I am basically from portal area and have now also started using jdeveloper. I have 11.1.1.7 version and am trying to use it for a roundtrip development for my Webcenter Spaces applications. A problem has been baffling me for last several days

  • Drives not showing up in LR dialogue boxes.

    It's the weirdest thing but I when I'm trying to use the "find missing folder" dialogue box to update the location of a moved folder, none of my drives are there. The dialogue looks like this: Any help would be GREATLY appreciated. Thanks.

  • My AppleTV will not show the main menu but it will airplay

    We have been airplaying music from my iphone to the appleTV all week and now we cannot get any video other than in airplay. The devices are all off of airplay. We have restarted the appleTV, unplugged and replugged the HDMI cords. To no avail.

  • 400 Mhz Pismo + 2x512MB PC133 modules = yes?

    Hello, Can I install two 512MB PC133 modules into my PowerBook G3 400 Mhz Pismo? Will it work and run with the upgrade or can it only handle 512MB in one slot? Thanks!