Close vi reference doesnt close the VI?!

Hi,
I'm running an application that has several dynamically loaded listening threads. When running in interpreted mode while developing, I noticed the threads are not closing when I stop the main VI. To try to combat this, I made an event case:
This didn't appear to help either. That is when I read in the help menu on 'close reference' the following:
"When you create a refnum to a VI, LabVIEW loads the VI into memory. The VI stays in memory until you close the refnum and until the VI meets the following conditions:
There are no other open references to the referenced VI.
The front panel of the VI is not open.
The VI is not a subVI of another VI in memory.
The VI is not a member of an open project library."
So the last part is my problem since the VI is still a member of the open library in interpreted mode. Is there any way to force closure of these threads without having to restart the project?
Solved!
Go to Solution.

Actually no, it wouldn't. The abort is a hard close that shuts everything down immediately and won't allow you to do any cleanup. For any application I disttibute I hide the Run, and Abort buttons completely. Looking for the Application CLose, Panel Close and your own Exit/Stop is the proper way to close an application so you can do all of your necessary cleanup.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • My safari is not working. Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen stay

    . Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen and stays like that.

    If Safari crashes on launch and you don't have another web browser, you should be able to launch Safari by starting up in safe mode.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
    After removing the malware, remember to reset your home page in all the web browsers affected, if it was changed.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Not able to close the Org Period

    Hi,
    We recently upgrated from 11.5.10.2 to 12.1.3, and we are not able to close the org due to error in tables WSM_LOT_MOVE_TXN_INTERFACE and WSM_LOT_SPLIT_MERGES_INTERFACE. The records are getting reflected as 'Pending WSM interface' - Resolution Required.
    These records are back dated, with year as 2007/2009 and for some Jul'11, for which period has been closed except Jul'11 which is - 'Closed not Summarized'.
    Sample records are like
    Pending Shop Floor Lot Split Merge Transactions WSM_LOT_SPLIT_MERGES_INTERFACE Resolution Required
    Header Id Transaction Id Transaction Type,Transaction,Date,Transaction Reason,Reference,Lot,Process,Status,WIP,Flag,Split,Flag,Group Id Request Id Error Message,
    1030,Lot Based Inventory,Translate,25-OCT-07 07-3547-B4 Error 2 1 1031 210415824 Invalid lot_number in Starting Lots,11547,Lot Based Inventory,Translate,25-OCT-07 07-3547-B4 Error 2 1 ,11548 211066708 Invalid lot_number in Starting Lots
    Pending Shop Floor Lot Move Transactions WSM_LOT_MOVE_TXN_INTERFACE Resolution Required
    587560686 2 12-MAR-09 09-4139-C1 Error 17200 50 END 999 END 20156699 290394731 Error:WSMPLBMI.MoveTransac
    tion(stmt_num=240) :
    Has any one faced same issues with OSFM/INV modules closing process ?
    Regards
    Adarsh K

    Hi,
    Please check the charecterstic of Book Area 01 in customization. If net book value has been maintained as negative, then you have to run depreciation to make it negative.
    If depreciation for all asset has not been run a particular fiscal year then you cannot close the fiscal year.
    Please check wheather depreciation for all additional assets has been run or not.
    Hope you have understood.
    Regards
    Tapan

  • Desktop Manager sync issues: windows closes the program

    I have Windows Vista and my BB Desktop manager is v4.5.  In the past 2 weeks I have been unable to sync my BB 8330 as windows closes the program after it compares the calendar in outlook and tells me I have an app crash.  I have read all the threads and instructions to remedy this problem, and have tried each solution, but to no avail.  I'm at a loss as to what to do now.
    Solved!
    Go to Solution.

    Hi,
    I have reread the entire post and I've got to tell you I missed the most important part.
    Windows closes the program and Windows tells you there is a APPCRASH which is why there
    is no reference to it in the knowledgebase.
    Here is the correct forum: Microsoft Windows Vista Support
    We will be glad to work with you on the Blackberry program side, this is a Vista error.
    There are also many references to it on Google.
    Let us know how it goes!
    Thanks,
    Bifocals
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • I opened a new account.. I want to CLOSE the old o...

    I wanted to close an old account I haven't used for a lonnnng time. It had my stage name, and I wanted a personal account with NO REFERENCE at all of my stage name. The Q&A told me to open a new account, so I did. Then the new account has my personal name in the body and my stage name at the top!!!!!!!!!!!!!!! PLEEEZE someone tell me how to completely close the old account. I don't want it associated AT ALL. Why should this be so difficult?

    thefirstnote wrote:
    PLEEEZE someone tell me how to completely close the old account.
    Hello and welcome to the Skype Community.
    https://support.skype.com/en/faq/FA142/how-can-i-delete-my-skype-account?q=delete%20account
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Any Oracle API to Finally close the PO Shipments

    Hi,
    I have the requirement of Finally close the Number of PO shipments,
    I know there is a API (PO_ACTIONS.CLOSE_PO API )can be used to Finally close the PO at header level.
    Is there any sepecific API to finally close the PO shipments or how i can achive this?
    Please pour your thoughts.
    Thanks,
    Subash

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • How to close the called vi but keep caller vi remain open

    I have Main.vi that call and open subvi Calculator.vi.  I want to close Calculator.vi window and keep Main.vi open when exit button is pressed.  I've tried the EXIT function but this method also close Main.vi.  Is there another method that close callee and keep the caller open? 

        Right clic on the subvi and select "Subvi node setup..."  Check "show front panel when called" and also "close afterwards if originally closed". Close the subvi before runing the main vi if the subvi's front panel is modal. When the execution or the subvi begins, the subvi's front panel will be shown, if the execution of the subvi finish it will be automatically closed, so your exit button should stop the loops in your subvi to finish its execution and closed the subvi's front panel.
    If you want to close the subvi without stopping its execution you have to hide the subvi's front panel using a invoke node, invoke the method "FP.CLOSE" using a static reference to the VI you want its front panel to hide.
    Paul
    Mechatronic engineer
    Lima-Perú

  • How to close the Sound object

    I'm using Flash CS3, running code in ActionScript 3.
    I use the Loader class to load a child SWF file, which then
    takes over the entire area on my website that is reserved for
    Flash. If the user decides to stop watching the SWF file before it
    is completed, he hits the "close" button within the child SWF,
    ultimately causing the Loader.unload() method to be executed. So
    far, so good, only the sound from the remaining portion of the SWF
    file keeps playing. According to the Flash Docs for the
    Loader.unload() method:
    "As a best practice, before you unload a child SWF file, you
    should explicitly close any streams in the child SWF file's
    objects, such as LocalConnection, NetConnection, NetStream, and
    Sound objects. Otherwise, audio in the child SWF file might
    continue to play, even though the child SWF file was unloaded."
    It then gives an example that assumes you already have access
    to the Sound object, so closing the Sound object is done by:
    mySound.close();
    The only problem is that I have no idea how to access the
    Sound object when I use the Loader.load() method. Where is this
    beast? I can't seem to find anything in the documentation that
    tells me how to find the Sound object after calling Loader.load().
    As a temporary fix, I modified the target SWF file so that when the
    "close" button is hit, it calls the "stop()" function; however,
    this only stops the sound, it does not close the associated Sound
    object, and I presume it continues to lurk around in memory with
    nothing useful to do. (When the user hits the "close" button in the
    child SWF file, it creates a "bubbling" event so that the Loader
    class can call the Loader.unload() method on it.)
    I've attached code for your reference.
    Any help is deeply appreciated!
    -Dan

    Ack! Looks like I hijacked this thread, sorry.
    I'm doing almost exactly the same thing the OP is doing...
    Loader class to load an external SWF (which is a video file FLV).
    If the user hits the "close" button on the video, the video goes
    away as it should but the audio continues.
    I understand that I need to close any NetConnection and
    NetStream objects in addition to unloading the movie. What I don't
    understand is how to do that. I'm sure that it's a syntax thing I'm
    just not getting right. I would just really like a more detailed
    explanation of stopping NetConnections and NetStreams (but an
    explanation for the not-so-actionscript-experienced LOL).
    Thanks.

  • TS1717 I can't run an update in iTunes until I know how to close the account. Can someone please help me?

    I need to run an update for iTunes but it won't run until I 'close' it.  Could someone tell me how to do this? Just clicking on the red button
    doesn't work. Thanks

    Which are you working on, a Mac (which you state in your profile and would seem to be indicated by your reference to a "red button") or a Windows system (this being the iTunes for Windows forum) and what OS version are you running?
    If you're running a Mac, clicking the red "close" button just closes the window; it does not quit the iTunes program. You have to actually use the Quit iTunes command.
    Regards.

  • My iPhone is getting stuck for a few seconds everytime I do something,  if i type a letter it will type it twice or a few times, if i click to close the browser it stucks there for a few seconds before closing, if i try to open some app it gets stuck ther

    My iPhone is getting stuck for a few seconds everytime I do something,  if i type a letter it will type it twice or a few times, if i click to close the browser it stucks there for a few seconds before closing, if i try to open some app it gets stuck there.
    I have restored it and loaded the backed up material again. But this problem doesnt seem to go away. Sometimes it is too much sometimes it is not noticeable, so what exactly could be wrong and what ALL should I do to get it fixed?  Please reply.

    Thank you. You are very kind. First I backed everything up, then restored as a new phone, and then i couldn't see the contacts, the contacts were not restored when i restored as a new phone. So in order to get the contacts I restored from the backup but then the same problem happened again.
    What I meant to saw was that the probelm disappeared when i restored as a new phone, but it reappeared when i restored from the backup. So is there a way to just somehow get the old contacts when the phone is restored as a new phone. All I need from the current phone is the contacts to be there when I retore as a new phone.
    I hope I am clear.
    Kindly help

  • My iPhone is getting stuck for a few seconds everytime I do something, if i type a letter it will type it twice or a few times, if i click to close the browser it stucks there for a few seconds before closing, if i try to open some app it gets stuck there

    My iPhone is getting stuck for a few seconds everytime I do something,  if i type a letter it will type it twice or a few times, if i click to close the browser it stucks there for a few seconds before closing, if i try to open some app it gets stuck there.
    I have restored it and loaded the backed up material again. But this problem doesnt seem to go away. Sometimes it is too much sometimes it is not noticeable, so what exactly could be wrong and what ALL should I do to get it fixed?  Please reply.

    I did that many times, I mean I do it everytime. But it doesnt seem to help. It is strange sometimes the phone is slow and stucks for a many seconds, sometimes it is just one or two seconds. Thank you for your help though, but is there something else that you could think of?

  • Executables throw a widows error when you close the application

    I have this problem on several of my labview executables.  I can open and runt eh program with no errors.  But when I close the program by any method, I get a pop up error in windows. Stating:
    "Application Name" has encountered a problem and needs to close.  We are sorry for the inconvenience. 
    I get the option to send the info to Microsoft.  Another error pops up Stating the following:
    WinsockAsyncSelectWindow:  Application name.exe - application error
    The instruction at "0x7c90e470" referenced memory at "0x03182a2c". The memory could not be "read".  Click on CANCEL to debug the program.
    This is really annoying... Anyone know why this error is poping up?

    Hi Jason,
    Could you please provide us with some more information regarding your executable?
    What version of LV are you using?
    How are you stopping the executable (stop button?  abort button?)  You should always use a stop button, not the abort button (the stop sign looking glyph on the toolbar) to ensure that all of your references have been properly closed. 
    Do you see this performance when running the executable on the development machine?
    Do you get the warning every time, or only some of the time?
    What all are you doing in the executable?  I'd be curious to know if it was something particular to your code or the environment.  One way to test this is to build a "dummy" executable--just one that does something as simple as count iterations, and see if you get the message or not.  
    Please provide a little more information and we'll do our best to help. 
    Cheers, 
    Marti C
    Applications Engineer
    National Instruments
    NI Medical

  • Close the Window on Button Click.

    please can someone help.
    I am trying to close the window in which my 'Exit'button is defined.
    For this I am using:
    button.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         //dispose();
    But the window still doesnt close,till I click on the 'X' icon.

    action{
    if(e.getSource() == myButton){
    jframe.setVisible(false)
    // possibly jframe.dispose() depending on what you are trying to do
    //if you are tying to exit the program all together
    System.exit(0);
    }http://mindprod.com/jgloss/close.html
    xpost
    http://forum.java.sun.com/thread.jspa?threadID=764106&tstart=0

  • Just downloaded app and now screen is blank. How do I close the app with the key board?

    I just downloaded a app. I opened it and the screen went blank. I don't know how to close the app so I can access my mac. I have tried shutting it down and re-starting it. That didn't work. So how do I  shut the app down with the keyboard?

    Hi jemurrow17,
    Welcome to the Apple Support Communities!
    You can Force Quit an application by using a keyboard command. Please reference the attached article for instructions on how to Force Quit.
    OS X: How to quit an unresponsive application using Force Quit
    http://support.apple.com/kb/HT3411
    Have a great day,
    Joe

  • Transaction to close the inspection lot in mass.

    Hello,
    Due to settings in the material's QM view , inspection lot with origin 89 were created for all the process orders , we don't use these inspection lot for recording any results , now we are not able to close the process order because the inspection lot related to the order are not closed yet.
    Can you please let me know transaction to close all the inspection lots collectively so that i can proceed to close the orders.
    regards
    jeet

    Are you sure the lots are inspection origin 89 and that those are preventing the closing of the orders?  89's should be manual inspection lots and should not have been caused by any settings in the material master but would have had to be caused by someone creating them.  There is no reference to an order number in an 89 lot so I'm not sure how they could be blocking an order.  Now..  If you created these as the result of a custom development that might be different.  But they still shouldn't be able to block the closing of an order, unless of course you have some other development or user exit being used to check on the lot.
    That said, unless you record results in the 89 lots you can't mass process them close.  You have to do them one by one.
    I would also suggest you look for inspection lots with an 03 origin as these CAN influence the orders.  But again, they usually don't prevent you from marking the order technically complete.  If you mark the orders technically complete, you can then use QA40 to close the 03 lots where the orders are TECO status.
    FF

Maybe you are looking for

  • Save and restore state on a tree

    Hi, We're using a tree in a pagefragment and we want to save the state when someone change it. We save the state on treenodeX_action with this: tree1.saveState(getFacesContext()); And we try to restore in every page with this code: //PRERENDER METHOD

  • I am unable to install the new flash upgrade. What gives?

    It seems to install just fine (tried from the website and again from Adobe directly) but then when I return to the original website I was trying to use, it still says I need to upgrade. It is driving me insane. I tried the standard advice on the Adob

  • Magnetic iPhone Cases, Good or Bad Idea?

    Thinking of purchasing a new iPhone case which has a leather flip cover for the touch screen and has magnetic fasteners. Dose anyone know if this can affect the iPhone or it's touch screen? Thanks. here is the site and it is a dock 'able' case. Found

  • HELP ME  TO  LAUNCH  J2SE 1.4.1_02

    GOOD MORNING MY NAME'S WALTER PORCELLINI AND I'M A PLC PROGRAMMER IN ITALY WE'RE STUDING THIS SySTEM (TINI) AFTER SOME RESEARCH I DOWNLOADED THIS VERSION OF SOFTWARE: -J2SE SDK1.4.1 _02 FINISH TO DOWNLOAD I HAD INSTALL ALL WITH SUCCESSFULL BUT WHEN I

  • Photos not removing from iPad

    Shouldn't your photos that you removed from your iPhone be removed from you iPad when you are using iCloud?