"Top level objects not released" warning when accessing LabVIEW adapter through API

I'm having a problem when using the TestStand API in LabVIEW:  I'm trying to get the VI path for a TestStand test step, but I'm getting the "Top level objects not released properly" warning.  It doesn't look like I'm forgetting to close something, but obviously I am.  Snippet is below, and warning text follows.  Anyone have any ideas?
I'm using LabVIEW 2010 and TestStand 2010.
This forum has been a huge help.  Thanks to everyone!
-Joe 
References to PropertyObjects were not released properly.    Total number of objects: 418    Number of top-level objects: 7
    Note: Some top-level objects may be included if they are referenced by    an incorrectly released top-level object. For example, an unreleased    SequenceContext object references a SequenceFile object.
    The following top-level objects were not released:
        Type Definitions [6 object(s) not released]            Type Definition #1:                Name: FlexGStepAdditions
            Type Definition #2:                Name: VIParameter
            Type Definition #3:                Name: VIParameterElement
            Type Definition #4:                Name: NI_LabVIEWParameterResult
            Type Definition #5:                Name: Expression
            Type Definition #6:                Name: Path
        And the following uncategoried objects:            LabVIEWModule (FlexGStepAdditions)                Name: SData
Solved!
Go to Solution.

Yep, that worked.  I thought that Variant To Data was just converting the module reference to the LabVIEWModule data type, but apparently I was wrong...  This TS leak checker is sure making me learn about how to properly close references... I've been programming memory leaks for years!
I was also having problems with LabVIEW crashing after the VI ran, and fixing the order of the close references fixed that, too.
Working code is below.
Thanks a lot (again) Doug.
-Joe

Similar Messages

  • Task Does not get triggered when User is created through API

    Hi,
    Each new user in our OIM environment is supposed to have a iPlanet account. I have configured the access policy for the same and it works.There is also a process task which needs to be triggered once the user is successfully created in the DS. Following is my issue:
    1.When the new user is created through the admin console, the user is provisioned successfully to DS as well because of the access policy and the task also gets triggered successfully.
    2. There is an approval workflow for another resource, at the end of which a user needs to be created through APIs in OIM. The user gets created successfully in OIM and also get provisionined to DS just like in the above use case. However, the task fails in this case. I see that the task is being triggered from the user's resource profile, but the status is rejected.
    Can someone please tell me why is this happening. I initially though there was some issue with my adapter for the task, but in case 1 it works just fine.
    Following is the exception I get as soon as the iPlanet connector finishes creating the user in DS:
    java.lang.ClassCastException: java.lang.String
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETFIELDSONUSERCREATE.implementation(adpSETFIELDSONUSERCREATE.java:51)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    Thanks,
    Supreetha

    Hi,
    Have you checked the process data that you are passing to this adapter and check the mapping of process data to the adapter variable. Try to log the value which you get from process data. I got this error when I was trying to use the literal value from process data as "true" for a boolean value. This is a bug. This value is not actually a boolean value. It threw me error too sometimes back. Either you pass the boolean value from adaptor factory as a literal value or change the type boolean both in your code and the adapter.
    OIM works strangely. ;) All the best,
    Manila

  • Coherence objects not released when undeploying application?

    Hi
    Part of our continuous integration build is deploying our application to a Weblogic server and running some selenium test cases against it. We have usually about 15 builds running each day.
    Our problem is that we seem to be experiencing a memory leak in that process; each new build takes more and more memory until weblogic starts throwing out-of-memory errors (as a workaround we'r restarting weblogic every night).
    After spending some time using a profiler (we'r using YourKit Java Profiler) it appears that the calls to Coherence libraries cause references to our objects not being properly released and GC is not able to get rid of them properly. If the calls to the Coherence libraries are removed teh GC correctly releases all our application objects.
    To confirm this I have created this simle test scenario:
    1. Created an empty web application (war) that has only one class in it:
    package com.test;
    import javax.servlet.ServletContextEvent;
    import javax.servlet.ServletContextListener;
    import com.tangosol.net.CacheFactory;
    public class TestServletContextListener implements ServletContextListener {
         public void contextDestroyed(ServletContextEvent arg0) {
              CacheFactory.shutdown();          
         public void contextInitialized(ServletContextEvent arg0) {}
    2. Modified the web.xml to register the ContextListener:
    <listener>
    <listener-class>com.test.TestServletContextListener</listener-class>
    </listener>
    3. Created empty EAR that has only two libraries in it: coherence.jar & tangosol.jar (version 3.3.1)
    5. included the test web application in the EAR (no other classes, projects or libraries are included; no other configuration settings are adjusted from defaults)
    6. While using the profiler I was performing deployemnt and undeployment of teh EAR against the Weblogic server. With each new deployment a new set of com.tangosol* classes is created. Those classes are not released even when GC is forced from the profiler.
    I'm not able to attach a screenshot from the profiler to this post, but with each redeployment I can see the following objects created (ordered with number of objects created in a descending order):
    com.tangosol.util.Base$ComonMonitor: 1024 new objects
    com.tangosol.run.xml.XmlToken: 16 new Objects
    com.tangosol.util.ListMap: 11 new Objects
    com.tangosol.util.RecyclingLingedList$Node: 5 new Objects
    etc.
    Am I doing something wrong or is there really a problem with the object references not properly released in Coherence?
    thank you
    s.

    Hello Robert
    I have double checked that the two coherence libs don’t exist anywhere on the server class path. I have also tried calling shutdown from preStop instead of postStop but it made no difference.
    (Please note that I'm not really looking for the right place to shutdown Coherence; instead I'm trying to demonstrate that calls to Coherence libraries causes object references not to be released properly. I have chosen to use the shutdown method only because it's nicely visible when it's being invoked and also it is something that our application is calling during shutdowns).
    To make sure that I'm not overlooking something with the Weblogic setup I have tried it with Tomcat:
    1. Downloaded and installed Tomcat 6.0.14
    2. Create new WAR project and put coherence.jar & tangosol.jar in WEB-INF/lib
    3. Created one class:
    package com.test;
    import javax.servlet.ServletContextEvent;
    import javax.servlet.ServletContextListener;
    import com.tangosol.net.CacheFactory;
    public class TestServletContextListener implements ServletContextListener {
         public void contextDestroyed(ServletContextEvent arg0) {
              CacheFactory.shutdown();
         public void contextInitialized(ServletContextEvent arg0) {}
    4. modified web.xml:
    <listener>
         <listener-class>com.test.TestServletContextListener</listener-class>
    </listener>
    5. deployed the WAR to the tomcat server with profiler connected to it
    After that I have used Tomcat Web Application Manager (http://localhost:8088/manager/html/list) to Stop & Start the application repeatedly.
    The behavior is the same as on weblogic. Each stop of the application creates another set of tangosol objects that do not get released by GC.
    Am I correct when I say that there is some problem with the Coherence libraries causing memory leaks by not allowing GC to release old objects?
    Thank you
    s.

  • How to find top level object on a given layer?

    I need to assign it to a var...
    var topLevelObj = app.activeDocument.layers.name("foo")... whatever is on top of that stack...
    ...this is probably not correct but you know what I mean

    Jump_Over wrote:
    Hi,
    top level object is the first in a collection:
    var fooLayerTopObj = app.activeDocument.layers.item("foo").pageItems[0]
    Jarek
    I'm not very good in ID-scripting, but I think this isn't good enough to find topmost item of a layer.
    Why?
    - create a new document
    create a polygon
    create a rectangle
    create an ellipse
    create a line
    Run this script snippet:
    var pI = app.activeDocument.layers.item(0).pageItems;
    for (i=0; i<=pI.length-1; i++) {
    pI[i].select();
    alert (i);
    pI[i].locked = true;
    Do you see, which element pageItems[0] is?

  • How to make top level navigation not refresh

    Hello Guys,
    I have a question concerning on my External Facing Portal, my boss wants that when I click on a tab or a link in the Top Level Navigation , to load the content in the Content Area without refreshing the whole page, What I want is that when I click on a tab or link of the Top Level Navigation , the Top Level Navigation and the MasterHead not to refresh and that the content be loaded and refreshed only in the Content Area. The only way I know to do this is by making a frameset of my page and to make the masterhead and toplevel navigation a frame and the detalied navigation a frame and the content area a frame, and in the links to put the target property to the name of the content area frame, but I don't know if this is possible to do in the portal, I see that all is embedded and I don't know how to make a frameset like this in the portal.
    Any highlights to solve this will sure be appreciated.
    Thanks
    Rewarding points will be given.
    Luis

    Hi,
       When you are implementing External Facing Portal, i think you have used Light Framework Page.  In Light Framework Page, only one Framework has been used, so when you click on the top level navigation, the whole page will get refresh, so there is no otherway as of my knowledge.  If you use standard framework page in portal, it is possible to do (i.e. the content area only get refresh)  and the concept of your External Facing Portal is eliminated here.
    Regards,
    Venkatesh. K
    /* Points are Welcome */

  • MobileMe top-level folders not accepting mail messages

    Strange thing...
    Now that iPhone has "push" mail, I decided to take all my mail from Mail.app on my mac up to my MobileMe account. I wanted to do this as-is, but it's not quite that simple... However, the whole folder structure and all e-mails therein are now happily living in MobileMe.
    Except that they are not! All the Top-Level folders that contain other folders are now white in Mail.app, and don't exist at all in MobileMe. It's as if all folders were one level higher than they should be - all folders directly contained in a white parent folder appear as top level folders in MobileMe!! On the iPhone, they do exist, but their names are greyed out. Both in Mail.app and on the iPhone, they are empty and you cannot add mail messages to them even though, in Mail.app "on my Mac" they still contain mail and will happily accept mail messages...
    What gives? Is there something I need to do to change them from "folder folders" into "mail folders that happen to also have folders in them"???
    G>

    Not a single answer or post on this...
    I decided to create new folders and add a dummy place holder message in them, then move over all the subfolders to this one. There was a bit of strange behaviour when synchronising with MobleMe (old folder disappeared without my deleting it, etc) but now all is well and all my top level folders can accept mails.
    During the process, it seems like MobileMe didn't know that these folder existed - when renaming or deleting them, I do an error saying that they did not exist. Indeed, on MobileMe, they did not exist and this resulted in all the first level subfolders being at the top level in me.com - very messy. It looks a lot better now!
    G>

  • Vendor not released warning as an error message in shopping cart

    Hi,
    When we are creating a Purchase order in SRM R/3 system, If we select a vendor which is not released then we get the Error message saying Vendor is not released and processing stops there.
    Similarly while creating a Shopping cart with the same vendor it just gives a warning message instead of error. Is there any way of converting the warning message in case of Shopping Cart to an error message ? Is there any BADI available ?
    Thanks,
    Sreekanth

    Yes when we are creating any shopping cart or any PO , for validations we are using one check badi.
    Try this Badi :
    BBP_DOC_CHECK_BADI.
    Hope It helps......

  • OIM 11g using too much memory and not releasing it when shutting down

    Hello,
    we have a problem with OIM 11g using too much memory (about 5gb) and it's not releasing it at shutdown (4gb still used).
    We are using a VM with RedHat Linux 5.6. Originally we had 4gb RAM + 2gb swap file. We installed Admin Server, OAM, OIM and SOA on that machine but quickly realised we couldn't run all 4 programs at once in 6gb. AdminServer could run with 2 other products, but it was a tight fit in memory.
    So we increased the RAM to 8gb (still 2gb swap file). But then our problem occured : I start the Admin Server (2.7gb total memory used), then OAM (4.6gb total memory used) and then OIM. After it started the server is now using 9.6gb of memory (~300mb of free memory) ! The problem gets even better : after I shut down everything (OIM, OAM, admin server) the "top" command show that there is still 4gb of memory used even tho nothing else is running on the server ! There is absolutely no other process (other than root stuff) running and no other users connected to the machine. After a reboot, it shows 400mb of memory used. I tried restarting the programs and it did the same thing.
    Our intuition is that there might be a memory leak or some bug in OIM that might use up almost all the free memory and it's not releasing it upon shutdown. It might have been there before we increased the memory but have not noticed it since memory was already tight.
    Anyone encountered the same problem ? Any idea ? Any suggestion to narrow down the problem ?
    Thank you

    You can adjust the memory settings for WLS by editing the setSOADomainEnv.sh file that can be found in your /middleware/user_projects/domains/<domain>/bin/ folder. There is an argument called PORT_MEM_ARGS which is used to set your Java memory arguments. This way you can decrease/increase the amount of memory used by each managed server.
    I usually type "ps -ef | grep oracle" to see what processes are running by the oracle user. This way the output doesn't get cluttered with root processes.
    Sunny Tsang

  • Class not found Exception when accessing database through java using ASP

    I am trying to access the database through ASP via java:
    the database is setup as a system database..
    the java class works fine if i try to run it as a stand alone.. but as soon as I run it through ASP.. it does not get passed the driver line.. is there anything in particular I need to do ?
    JAVA and ASP and the output code looks like as follows:
    java code looks like this:
    import java.sql.*;
    public class testDB{
    private Connection connection;
    private Statement statement;
    public static void main(String[] args){
    public String getDriver(){
    String x = "start of program ";     
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              x = x + " Got Driver";
              connection = java.sql.DriverManager.getConnection("jdbc:odbc:database", "sunny", "jassal");
              x = x + " After connection statement";
              statement = connection.createStatement();
              x = x + " After statement statement";
              statement.execute("Insert into name (name, age) values ('hello', 33)");
              x = x + " after insert";
              connection.close();
         } catch (Exception sqlex){x = x + sqlex.getMessage() + " " ;
              x = x + sqlex.toString() + " " ;
              x = x + sqlex.getLocalizedMessage();}
    return x;
    and the asp looks like this:
    <html>
    <%
         set javaobject = GetObject("java:testDB")
         response.write "after getting object"
         response.write javaobject.getDriver()
         set javaobject = nothing
    %>
    </html>
    after getting objectstart of program sun/jdbc/odbc/JdbcOdbcDriver java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver sun/jdbc/odbc/JdbcOdbcDriver

    what would I set the classpath to be .. and I am sorry I am new to this.. but how would I be able to check the CLASSPATH .. or even how do I set the CLASSPATH.. to which directory would i need to set the classpath to
    I know I can set the classpath in dos by set CLASSPATH=
    but I dont know how to set it so it would read the drivers

  • PS Touch Android does not release memory when closed.

    I have to force closure with Task Manager on my Samsung Note 2 running JB 4.1. Why and when will it be fixed?

    Hi Ignacio,
    Sorry for the lack of information - I had typed more complete description, but had trouble posting it.
    The app is installed on a Samsung Galaxy Note 2 phone that is running Jellybean 4.1.1.
    The only way I can see to exit the application is by using the "back" soft key under the screen on the right. Some apps have an "exit" choice under the "menu" soft key, but that key is not active with PSTouch.
    I see the same issue with Google Chrome. The menu key is active with this app, but it does not have an "exit" choice.
    With both these apps, I have to go to the "Active Apps" tab of the Task Manager to release memory.
    There is one difference with PS Touch. Google Chrome always starts the same way whether or not I release it's memory. With PS Touch, if I release memory after closing with the back key, the next time I start it I get an initial royal blue screen with the PS Touch icon in the middle followed by a second screen with a menu in the middle titled "New Project From". If I exit at that point, it takes two presses of the back key to first close the menu and then exit the program and return to a home screen. If I do not release memory, the next time I start PS Touch, it goes directly to the second screen, but without the "New Project From" menu.
    I hope this gives you the information you need.
                      Pete

  • Show warning when accessing to files API.

    Hello,
    In my application I am using FileConnection APIs. Every time when accessing to files (get file size, dir list and others actions) showing warning: Allow applications to read data in: Memory card or Gallery Yes/No . Are possible remove this warning? If yes, then how can do it?
    Thank in advance.

    Hello.
    What Article? Please give a link for the article. need very mach
    Thanks

  • HP 4120 Lync Phone Edition - Ringer Volume Level Can Not be controlled when a second call comes in for a workflow

    Here is the scenario we are experiencing with our HP 4120 Lync phones running the latest available firmware (4.0.7577.4455)
    1) A User has an HP 4120 phone and is a member of a workflow/response group which is setup with attendant routing method.
    2) The ringer volume is set to the minimum level by the user
    3) When a single call comes in to this user, the ringer volume level works as expected
    4) When two calls come in at the same time to this users phone, the ringer volume set by the user is ignored and the ringer plays at Maximum volume.
    This is causing disruptions to our office environment as we are unable to reliably control the volume levels of the ringers.
    There does not appear to be anything more in the settings/menus of the phones themselves.  I am thinking this may be an issue with the firmware, but if anyone else has any suggestions, they would be appreciated.
    Thanks!!

    Hi,
    Did the issue also happen before update to the latest firmware?
    Did the issue only happen for Response Group call or also happen for basic calls?
    If the issue only happen after updating to the latest firmware, it can be the issue of the firmware.
    As there is call delay for Lync IP Phone to be a agent of the Response Group. So you can try to use Lync desktop to instead for better performance.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • App not working properly when access over vpn

    hi,
    Strange behavior of application when access through vpn. The application keeps on reloading endlessly. And other application renders completely but when the tab is clicked it will reload the whole page displaying the same tab. Is ADF has an issue when access over proxy?
    Both application is build using ADF 11g and is implemented through regions.
    Thanks in advance.

    I think there something to do with PPR or calling the region or am I missing something? The page that keeps reloading has taskflow with activation is immediate but the refresh is set to IfNeeded. Then the page with tabs, the content of the tab are taskflows as well.
    Thanks in advance.

  • Obejct not found error when accessing login.jsp

    Im trying to run a couple of samples I made using Web integration developer tool and following the walkthroughs.
    They did work for a while but after 3 weeks I try to test them again but I got this error message:
    Object not found.
    this the url I use to get the login page: http://localhost:5555.domainname/panama/server/papz/login.jsp
    Can anyone give me an idea what this can be??
    Im using Windows NT 4.0.

    Thanks for you reply Aparikh,
    you were right the url I was using wasn't correct but I still get the same error message.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Aparikh:
    The URL looks incorrect.
    Should be like http://localhost.domainname:5555/panama/server/papz/login.jsp .
    Regards.<HR></BLOCKQUOTE>
    null

  • LabVIEW 7.1 reports an applicatio​n error 'instructi​on adresses memory at 0x00000000 - ... could not be written' when finishing LabVIEW, even when not running any private code

    Hi there,
    I have found similar Qs here, but this one is _somehow_ different.
    My quite large app (>600 VIs) uses some DLL calls to communicate with medical devices. It runs OK, AFAIK, even when started several times. BUT I get an error message each time I when finishing LabVIEW 7.1 (even when just having loaded the app!!!). The error message states that "The instruction at 0x778cca36 adresses memory at 0x00000000. The process 'written' could not be done on that memory. Click to close the app".
    Any clues?
    My system: Athlon64 3000+ with 1GB of RAM running W2k German with all availabel SPs, LabVIEW 7.1 English with all support files from the devellopr suite May05 edition. System was set up 2 days ago on a fresh PC. The old system showed the very same behavior.
    My opinion is, that simply loading an app and than removing it should not cause such an error??!!
    Greetings from Germany!
    Uwe
    Attachments:
    Application_Error_LabVIEW_when_finishing.jpg ‏20 KB

    I can't look at your code because I don't have LV 7.1, but I would recommend searching on the side of the DLL.
    Do you have the source for the DLL? Can you be sure that the DLL doesn't somehow have a memory addressing bug? The DLL will be loadsd as soon as the program is loaded AFAIK, so maybe when unloading the DLL an error occurs because something isn't initialised properly. I've never programmed a DLL, so I may be way wrong, but my instinct tells me that the problem will most likely be with the DLL.
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

Maybe you are looking for

  • New Crack in Case After Phone Ran Hot

    Just a few days ago I took my phone out of my pocket and realized it was extremely warm. I woke it up to use it and immediately got the message that the battery was almost dead. It had a full charge from a couple of hours before and I had only used i

  • BADI  for  Classic  and Extended Classic Scenario

    Hi,    Please   provide  list  of  Reports and BADI's  for         Classic  and Extended Classic Scenario. Thanks, Srini

  • Email Server Shuts Itself Off

    Using Mountain Lion Server. I was getting errors when trying to send emails and was curious as to why I was not receiving any. I checked the email server to find it was switched off. I turned it back on and a couple of minutes later it switched itsel

  • Group Message Problem

    If a picture message is sent to a group, I don't receive the message.  The other people do, but it does not come to my phone.  I don't know where to look to see what the problem is.????????

  • Adobe Acrobat Pro X will no longer start up.

    I have been using my version of Adobe Acrobat Pro X for a while with no problems but suddenly today, after I restarted my computer, the program will no longer start up. What would be the best way to fix this problem?