Calling sequence in a new thread multiple times gives debug warning "reference not released properly"

Hi,
I am including steps inside a sequence which calls sub sequences in a new thread. After calling each sub sequence in a new thread, I am putting Wait step which is configured to wait for the respective sub seueqnce to complete its execution. When I include these steps (call a subsequence in a new thread and then configuring wait to complete it) once, it executes properly but when I includes these steps twice, I get debug warning when I close Teststand sequence editor. Due to this behaviour, when I run this sequence through operator interface (Simple OI), I get run time error R6025.
I checked if there is any object reference which might not be released, but could not figure it out here. Please see attached sequence and the debug warning message.
Used version: Teststand 4.0.1, LabVIEW 8.5, Windows XP
Kindly help.
Thanks in advance,
Nirmal
Attachments:
Sequence_new_thread2.seq ‏37 KB
Debug Warning2.JPG ‏34 KB

Hi Nirmal,
Thanks for the detailed instructions. I tried exactly what you said and I still do not see the leak. The problem is likely specific to something customized on that machine or in the very least does not happen every time or on all machines. I'd recommend trying to narrow down by eliminating the possibility of an unintended customization. If you can try installing a clean install of teststand on a clean machine and see if you can still reproduce the problem then that would help narrow things down a little. If you can't reproduce it on a clean install on a clean machine then I'd start looking at what's different on the machine you can reproduce it on. You could remove your config files to eliminate customizations to settings such as search directories. You could remove files from your components\User directory to eliminate the possibility of using those. Just a few ideas. Other people might have some other ones.
-Doug

Similar Messages

  • [svn:bz-trunk] 12783: Optimizations around subtopic handling in MessageService/ ActionscriptAdapter, now we avoid calling Subtopic constructor ( which is costly) multiple times.

    Revision: 12783
    Revision: 12783
    Author:   [email protected]
    Date:     2009-12-10 06:42:14 -0800 (Thu, 10 Dec 2009)
    Log Message:
    Optimizations around subtopic handling in MessageService/ActionscriptAdapter, now we avoid calling Subtopic constructor (which is costly) multiple times.
    Checkintests: Pass - except the usual 3 failing tests.
    QA: Yes
    Doc: No
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/services/MessageService.java
        blazeds/trunk/modules/core/src/flex/messaging/services/messaging/SubscriptionManager.java
        blazeds/trunk/modules/core/src/flex/messaging/services/messaging/adapters/ActionScriptAda pter.java

  • After moving my itunes library from my old WinXP computer to my new Win7 computer, itunes gives a warning that my content on my phone must be removed and re-synced. I want to merge changes/updates on my phone with my itunes library as normal, not erase it

    After moving my itunes library from my old WinXP computer to my new Win7 computer, itunes gives a warning that my content on my phone must be removed and re-synced. I want to merge changes/updates on my phone with my itunes library as normal, not erase it & replace it. My updates/changes will be lost.
    How do I merge content on my iPhone & content in iTunes together?

    Hopefully you still have the original library and can redo the migration...
    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • How to call a sequence in a new thread from C++ dll

    Here is what I am trying to do:
    I implemented a dll that monitors network traffic, and it also supports message handlers that can be triggered when a specific message has been received. Essentially the receipt of a message is like an event causing additional code to be executed. What I need to do is have the message handler in the dll call/execute a sequence (either is the same sequence file that originally called the dll, or in a different sequence file). Also I want the sequence to be executed within the same execution object for the purpose of result collection and report generation. I am expecting the dll to have to launch a new thread to call a sequence because of the asynchronous nature of the message received event.
    There are easier ways to achieve the same result, but one of my goals is to make it easy for a test developer to configure a message handler, by having only one step in their sequence to configure the message handler. I want the rest to be transparent to the user.
    I am unsure about how to implement this feature, so I am asking for any examples, ideas, comments before I start trying things out.

    Assuming that I understand your question correctly, it would seem to be the best way to do this would be to pass the Execution object to the DLL (either through a direct pass of the Execution object or passing the sequence context, from which you can get the Execution).  Then simply call Execution.NewThread, specifying the SequenceFile object (accessible from Engine.GetSequenceFileEx) and then passing the Thread object out as an output.  Your sequence file in which your DLL is called could then simply have a Wait step which is configured to wait on that Thread object.  What happens in this case is that the results are collected for that thread (which is being executed asynchronously) and returned as the results for the Wait step.
    Although you are probably not using LabVIEW, I have attached an example of this in LabVIEW that might be helpful just for seeing the flow.
    Thanks,
    Andy McRorie
    NI R&D
    Attachments:
    thread_test.seq ‏32 KB
    testthread.vi ‏19 KB

  • Calling a sequence in a new thread with different values

    I have a sequence that I want to call that runs in parallel (seperate thread). The question I have is that I want to run this sequence from a lot of different places, but with different values of the variables going into the steps inside the sequence.
    If I change the values inside the sequence (running on seperate thread), then I will have to duplicate this sequence over and over. What I really want to be able to do is run a step in a seperate thread, and not wait for it to complete. Is this possible? Or a method of passing step values into a seperate thread. I don't want to use globals unless I really have to.

    Hi ADL,
    I have attached an example which I hope will illustrate an answer to your question.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    Sequence_File.seq ‏34 KB

  • Calling a Function in new thread

    Hi,
    I am New to java, i wrote a class it has some functions ,now i want to call one of its function in from another of its methods in new thread, how can i do it.
    Scenario is :
    Classs A extends thread
    function One()
    Thread new = new Thread(functionTwo());
    Function Tow()
    but it i snot allowing me to call that function

    Naseerqau wrote:
    I am New to java, i wrote a class it has some functions methods,
    now i want to call one of its function methods in from another of its methods in new thread, how can i do it.This demonstrates how you run something in a thread.
    I am guessing any Java tutorial on threads will have something like it.
    class Naseergau {
        Naseergau() {}
        void method1() throws Exception {
            for(int i=1;i<10;++i) {
                System.out.println("In method1()");
                Thread.sleep(20L);
        void method2() throws Exception {
            for(int i=1;i<10;++i) {
                System.out.println("In method2()");
                Thread.sleep(20L);
        public void runSerial() {
            System.out.println("Start runSerial");
            try {
                method1();
                method2();
            } catch (Exception ex) {
                ex.printStackTrace();
            System.out.println("End runSerial");
        public void runParallel() {
            System.out.println("Start runParallel");
            Thread t1 = new Thread(new Runnable() {
                public void run() {
                    try {
                        method1();
                    } catch (Exception ex) {
                        ex.printStackTrace();
            t1.start();
            Thread t2 = new Thread(new Runnable() {
                public void run() {
                    try {
                        method2();
                    } catch (Exception ex) {
                        ex.printStackTrace();
            t2.start();
            try {
                t1.join();
                t2.join();
            } catch (Exception ex) {
                ex.printStackTrace();
            System.out.println("End runParallel");
        public static void main(String[] arg) {
            Naseergau n = new Naseergau();
            n.runSerial();
            n.runParallel();
    }

  • HT1692 I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; twpo problems--I now get dozens of new calendars every time, and my calendar will not syncd at all.; meaning that date entries on Outlook do no

    I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; two problems--I now get dozens of new calendars every time, and my outlook calendar will not sync at all.; meaning that date entries on Outlook do not come across ot iPhone.

    It is unusual for the calendar to sync and not the contacts in Outlook. I've worked with Outlook for years. You didn't answer what computer OS you are using. If it is Windows, have you tried to reset the sync history in iTunes? Do that by opening iTunes, go to Edit>Preferences>Devices and click on reset sync history. If you have done this and it doesn't help, then we can try and run scanpst.exe on your Outlook file and see if there are any errors. Search your computer for that file, however it normally resides in one of the Microsoft Office folders in the folder Program files. After that, you can see if it will sync.

  • Will not open link in new tabs, some of my add ons are not working properly

    I am using Firefox 3.6.6
    My add ons, such as Gmail Notifier and Forecast Fox are not showing up on the bottom, but they are all enabled and updated. Also, when right click and select Open Link in New Tab, it opens an Untitled tab.
    == This happened ==
    Every time Firefox opened
    == I'm not sure when

    The current version of Greasemonkey is compatible with Firefox 29. Could you check to make sure it is not turned off? There should be a "monkey" icon on the toolbar. Clicking that icon turns Greasemonkey on and off; the "off" state is designated by a faded icon, while the "on" state has a full-colored icon.
    More generally, could you check for possible extension updates and disable unimportant extensions in case one of those conflicts with Firefox?
    Open the Add-ons page using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, look for the "gear" button above the list and choose Check for Updates.
    I also suggest disabling any extensions you won't be using for the next 24 hours so that you can test whether that improves Firefox's functioning.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any difference?
    One possible reason for hangs, especially where you eventually get a dialog indicating that a script is running slowly, is Flash. To minimize sites from using Flash unnecessarily, try setting Flash to Click-to-Play ("Ask to Activate"). This will delay Flash from starting on a page until you approve it.
    On the Add-ons page, in the left column, click Plugins. Look for "Shockwave Flash" and change "Always Activate" to "Ask to Activate".
    When you visit a site that wants to use the Flash, you should see a notification icon in the address bar and one of the following: a link in a black rectangle in the page or an infobar sliding down between the toolbar area and the page.
    Any noticeable difference?

  • I recently updated my new iphone 4 from ios6 to ios7. All of a sudden, my screen crashed and is now in a flashing white state with lines. I've reset the settings multiple times and the flickering has not disappeared. Please help

    I recently updated my new iphone 4 from ios6 to the current ios7. It has been in use for a few days now and all of a sudden the screen crashed to a white display with lines. I have reset it a couple times but there has been no improvement in reducing the screen flicker. Please help

    First try a Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    3: If the device doesn't appear in iTunes, try using the Steps in this article to force the device into Recovery Mode.
    From Here
    http://support.apple.com/kb/TS3281
    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download
    Note on Recovery Mode.
    You may need to try this More than Once... Be sure to Follow ALL the Steps...

  • The touch on my iphone 3gs does not work. the only time it works is when i slide it to turn it off. I've tried resetting it multiple times and it will still not work. I need help!

    Hello, I've got a question about my Iphone 3gs. Well one day i woke up and i tried to slide to unlock my phone but the touch was unresponsive. So, i turned off my phone and back on, the unlock screen came back one and same problem happened. The only time the touch works is when I slide to turn off my phone. When people call me, i can't answer. When people text me, I can't answer. I do have the latest update for the phone. I've looked everywhere on the internet and have got no answers. I have dropped my phone a couple of times and it does have some cracks on the screen. Please help!

    Your only chance besides getting it serviced would be setting it up as new device:
    http://support.apple.com/kb/HT4137

  • Best way to print an image multiple times on same sheet and not lose quality when doing so

    Hello,
    I have the full subscription to Adobe Creative Suite, but am unfamiliar with almost all of the programs. I have used Photoshop a bit, but not too much.
    I have this project I do several times a year, and am sure there is a better way to do it.
    I am sent a colourful excel spreadsheet - a schedule. I print a bunch of copies full size, then need to print 8 copies on a single 8.5x11 piece of paper.
    I've tried several methods - but want to know what the best way to retain the best quality would be.
    The best I've done (and I'm not totally happy with) is to copy the image into Photoshop, save as a PDF, create 7 more copies then merge as a single PDF and print.
    I do find that the quality does suffer a bit.
    Can anyone suggest a better way?
    Thanks in advance.
    Amber

    With all the apps at your disposal, that is a long way around. Granted it is hard to not loose quality/data when scaling. But it makes sense to create the document to your liking, then create a new document that is 8.5" x 11" and place the original into it. Then using guides or alignment tools, duplicate that image.
    This allows you to have full control over the location of each image, and extra data needed like captions, names, etc. and how that data is formated.
    Luckily you have multiple programs that can accomplish this. Some are easier than others, some are more robust than others, etc. In the end it is what you are familar with and how much time you can spend on learning while getting the job done.
    Photoshop, Illustrator, Indesign are all your go to programs from creating anything for print and they can be used for other media as well. But that is their strong suite, print.
    All three apps have their own dedicated forum on this site, so go ahead and mark them as your favorites as your questions for each need to be in their respective place.
    http://forums.adobe.com/community/photoshop
    http://forums.adobe.com/community/illustrator
    http://forums.adobe.com/community/indesign

  • My Iphone will not show up in Itunes. I have tried re installing Itunes and all the Apple devices multiple times and it still will not work. Help!!!

    My itunes is making me crazy. I have updated to IOS 6 on my phone from my friends computer. Then I had to also restore it. I tried re connecting to my computer but the itunes just says that it is not compatable. I tried turning the phone on and off. Restarting it and the computer. I have also un installed and re installed itunes and the apple support systems. I have no idea what to do now. Please help!

    Security Software and Related Troubles
    http://support.apple.com/kb/TS3125          Basic Troubleshooting
    http://support.apple.com/kb/TS3297          Advance Troubleshooting
    http://support.apple.com/kb/ts1629          Ports List
    Basics
    Check correct date, time, and timezone.
    Log in as administrative user account
    Verifiy iTunes updated
    Update Operating System “OS” (Ms Windows, Mac OSX)
    Update Modem / Router firmware
    Update security software (Antivirus, Firewall)
    Remove Outdated Security Software (Always restart afterwards)
    Advanced
    Remove Mobile Software not used anymore
    (Motorola, Android, Nokia, Sony, Blackberry)
    Add Apple programs to firewall permissions
    Allow Ports 80, 443, 3689, 5297, 5298, 5353, 8000-8999, and 42000-42999
    Permit Domains - apple.com , edgesuite.net , mzstatic.com
    Disable Security Software
    Remove Security Software (restart!)
    Delete “Hosts” file and restart, or edit and save.
    Check Browser Settings: Use SSL3, TLS1, Auto Detect, No Proxy Settings
    Reinstall itunes FOLLOWING ARTICLE while all security off / disabled or completely removed.
    http://support.apple.com/kb/HT1923
    http://support.apple.com/kb/HT1925

  • I got a new iPhone 5 and my itunes music will not sync properly. it will show up on the phone but it is light gray wording and they are not selected only a few songs work. The grayed out music just takes up space. Someone please help.

    My itunes music is grayed out and unplayable on my new iphone 5. only a few songs work and the rest just take up space. They will play correctly in my itunes on the computer but not the phone. Please help.

    I am so relieved to hear that I am not the only one experiencing this! However, I am sorry to hear you are going through this as well. Lucky for me I am upgrading to a 5s which will be sent to me on Wednesday. I did stumble upon an article with tips on how to downgrade back to iOS 7, but I am EXTREMELY apprehensive about doing that myself. Here's the article link if you want to give it a go:
    http://osxdaily.com/2014/09/21/downgrade-ios-8-back-to-ios-7-1-2/

  • First time working with 802.11n, not working properly?

    Hello,
    This is the first time I use 802.11n in my network there is only one AP1141 but the clients don't connect at 802.11n rates, instead they connect at data rates as low as 11 Mbps. At the begining they connect at 144 Mbps but immidiatly it decreases to 11 or 12.
    Many of our wireless clients in the company are Intel(R) WiFi Link 5100 AGN.
    Any comments?
    AIR-AP1141N-A-K9  
    AIR-WLC2106-K9
    6.0.182.0
    Let me know if more info needed?
    Thanks

    Hi George,
    So you suggest to keep only WPA2/AES?
    Regarding the coverage area keep in mind this is a really small 4 floor building with an AP floor floor, I installed only one AP1141 in my floor and kept the AP1131 in the other 3 floors, I might reduce the power to half since I don't need them working at full power unless I need coverage in the stairs in order to enforce roaming to IPPhones. Also, I don't want to bond channels on 2.4 because I read that as a recomendation in a Cisco's document (anyways I did not find how to do it in 2.4, wuld be a nice tip if you tell me how just in case) so 144 Mbps would be great as long as it works properly. I did not experienced these rate hoping until I enabled this AP1141.
    And yes most of the clients that reported issues are Intel (engineering team, haven't checked the rest yet).
    Regards!

  • I updated my software for the Time Machine and it will not work properly now.

    I updated my Time Machine's Software and now it flashes amber all of the time and will not let me "into" it. I used to have a wireless network through it and now it does not work. I have hard reset it several times and it is flashing amber again.

    I have done this on several occassions. This works for 1 time then it stops. It "connects" allows me to set it up and then flashes amber. It did backup 1 time today, but now it says it is delayed and there is no back up. It worked fine until I updated the software and tried to extend my network. After this, it will NOT work at all, for any length of time. i just reset it, and was able to set it up, but it gave me an error message, is flashing amber and is not being recognized. Very frustrating.
    Message was edited by: StephHouse

Maybe you are looking for

  • What impact should I see when my Ipad mini is associated to my Wife's Apple ID

    I have a 64gb Ipad mini My wife has a 16gb Ipad with retina Both me and my wife have purchased tv shows in iTunes using my Ipad mini and have both downloaded content to that device. My Ipad mini shows in my wife's iTunes account as being associated w

  • How can I query a https website used to display the status of an application using Powershell?

    Need assistance on querying the status of an application using Powershell. The status of the application is displayed in a https website. I want to receive a notification when one of the listed applications fails. Below is an example the failures I n

  • Slideshow Madness

    I’m having such troubles exporting slideshows that I may go insane. I want to be able to do two things: 1. Export a slideshow to a file that I can burn on a CD or DVD and give to people to play on both Macs and PC’s. I would like this slideshow to ha

  • Issue with XML nodes while Import

    Hi I am trying to import R3 data to MDM via XI. In my XML that generated from XI, has a separate nodes for main table and Qualifier Lookup tables. What happens is, in Import Manager, when a Qualifier Lookup table has only one record for a main table

  • Best file manager with SMB and streaming support? Time Capsule access?

    Constantly having to jump through hoops it seems, because of no file manager in iOS. Another simple scenario: have 2 disks connected to my Apple Time Capsule. Can accesss them with Android phones, always in trouble finding a good app on iPhone. Any t