Labview Auto Close VI Reference?

I'm having trouble with what I think is Labview auto closing a VI reference. Here's my setup:
I have a number of VI's that require a termination when the program ends.
Upon the first call of the VI, it essentially registers a termination VI that will call that VI with the terminate flag set. This is done by opening a reference to the termination VI and adding it to an array in an FGV.
Upon exit, the VI containing the FGV is called. It runs each VI in the array to terminate any VI's that need it.
The problem is, it keeps complaining that the VI reference is not valid. I've check at the point of putting the VI in the array to be sure the VI reference is valid an it is fine. It's only when it tries to call it upon exit that is has a problem. Would labview close any references to VI's automatically?
I've used this scheme successfully before, but on an older version of Labview (8.0). Has something changed since then?
Solved!
Go to Solution.

Once the VI hierarchy that called the Open Reference goes idle, any reference is automatically closed. LabVIEW does not have a reference count system like Java or Lua, where the runtime environment controls the life time of objects depending on if they are assigned to a variable. Instead it controls the life time of it's "objects" (almost anything that is represented with refnums) by the lifetime of the top level VI in whose hierarchy the Open call was done.
So if you have a startup VI that spawns your main VI and also creates the refnums and then terminates, those refnums are gone the instant your startup VI stops executing.You will have to make sure the refnums are opened inside a VI that stays executing for the entire lifetime of your application, which in most cases would be the main VI that starts eventually other sub panels as needed.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • When does LabVIEW actually close object references?

    I wanted to find out how LabVIEW manages references to objects when a reference is distributed among more than one property node located within different structures. So I created a little test where I passed a reference into a for loop, modified the referenced object with a property node and closed the reference inside the loop, then ran the loop several times.
    To my surprise, the VI ran without generating any errors. This doesn't make sense because once I closed the reference in the first iteration of the loop, when the second iteration occurred, the reference should have been invalid. Why did I not receive any errors?
    This begs the question: what happens to references when they are passed to more than one
    location within a VI? Does the reference need to be closed each time it is used, or only after it's been used for the last time?
    Also, if the cluster "controls[]" property is used, do the references to all of the controls within the cluster have to be closed as well as the reference to the cluster itself?
    This issue is very important to me because I am developing a very large VI that is meant to be run for days at a time, and at the moment, there is a memory leak in the program. I want to make sure that all of my references are closed before exiting any sub VIs and I'm not positive that simply closing the original reference passed into a sub VI is actually freeing up all of the memory. On the other hand, I'm afraid of closing references after each time they are used if they are going to be used again in the same VI before it finishes executing.
    Does anybody have any insight on this matter?

    > I wanted to find out how LabVIEW manages references...
    Unfortunately, this depends a bit on which version of LV you are using.
    It was changed for LV6.1 to ensure that front panel object references
    wouldn't cause memory leaks, or more correctly, memory hoarding.
    In LV6, the guideline is to close the reference the same number of times
    you opened it or asked for its value. Opens are easy to spot. The
    asking needs some more explanation. When you read the Controls[]
    property for a cluster or the panel, you are asking the cluster or panel
    to provide you with a bunch of references. In LV6, these were unique
    references each time they were asked. If you do not want these
    references to build up, your diagram needs to call Close on each of the
    asked or opened references. Technically these aren't a leak since LV
    still knows that they are allocated, and when the top-level VI finishes,
    LV will clean them up. But in applications where the top-level VI run
    continuously, then this hoarding of memory is the same as a true leak.
    The size of the leak per reference is something like 20 to 40 bytes, so
    not huge, but still a leak/hoard.
    In LV6.1, the asking for references changed. They always return the
    same reference, and it is a reference that cannot be closed by the user.
    Trying to close it is not an error, but it will be ignored. This
    means that the first time someone wants a reference to a control, a
    reference is generated, and it will be the reference that is returned
    everytime someone asks for the control reference. If your diagram calls
    close already, no harm. If your diagram doesn't call close, no harm.
    When this panel leaves memory and the reference no longer makes sense,
    it will be torn down.
    I need to make it clear that the new LV6.1 behavior is for control
    references that are asked for. References returned from Open are the
    same as before and should be Closed. So this doesn't affect VISA, File
    I/O, and other types of references, it is specific to front panel
    references.
    In case it still isn't clear why the behavior changed, we started seeing
    many diagrams written such that they leaked or hoarded memory. In
    reality, spotting where a diagram asks for a reference is hard, and
    everyone was missing them some of the time. So we changed the
    implementation to be more forgiving. The downside is that LV now hoards
    one reference and you can't tell it that you are totally finished with
    it, but it is no longer a leak.
    I hope this sheds some light. If you have additional questions, just ask.
    Greg McKaskle

  • Auto close when entering login page

    Hi,
    Whenever i try to enter the login page, it auto close the browser. Pls help. thanks.
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x06c306ca, pid=3700, tid=3408
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode, sharing)
    # Problematic frame:
    # V [jvm.dll+0xc06ca]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x01e69c00): JavaThread "main" [_thread_in_vm, id=3408]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000008
    Registers:
    EAX=0x00000000, EBX=0x00000000, ECX=0x00000008, EDX=0x00133af0
    ESP=0x00133918, EBP=0x00000000, ESI=0x01e69c00, EDI=0x00000000
    EIP=0x06c306ca, EFLAGS=0x00010246
    Top of Stack: (sp=0x00133918)
    0x00133918: 06c37e01 00000000 00000000 01e69ce8
    0x00133928: 0013397c 6d3c198b 00000000 01e69c00
    0x00133938: 00000000 01e69c00 00000000 20a3b660
    0x00133948: 2096d730 0000000c 2a9b9130 00000000
    0x00133958: 2b1eaf00 6d3b4e75 01e69ce8 6d3c24a4
    0x00133968: 00000000 01e69ce8 00000000 00000000
    0x00133978: 01e69c00 001339a8 6d3b56d0 01e69ce8
    0x00133988: 001339a7 6d3c24a4 6d3c24c0 6d3c1978
    Instructions: (pc=0x06c306ca)
    0x06c306ba: cc cc cc cc cc cc 8b 44 24 04 8b 0d f0 82 d8 06
    0x06c306ca: 8b 04 01 c3 cc cc 8b 44 24 04 8b 0d ec 82 d8 06
    Stack: [0x00040000,0x00140000), sp=0x00133918, free space=974k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0xc06ca]
    [error occurred during error reporting, step 120, id 0xc0000005]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V+0
    j java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+300
    j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48
    j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57
    j java.lang.System.load(Ljava/lang/String;)V+7
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x09cb0400 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=3084]
    0x08fc2800 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3052]
    0x08fb6800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1028]
    0x08fb5c00 JavaThread "AWT-Shutdown" [_thread_blocked, id=684]
    0x08fb4800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3352]
    0x08f3c400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1084]
    0x08f3ac00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1644]
    0x08f39800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2180]
    0x08f38c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=952]
    0x08ef1800 JavaThread "Finalizer" daemon [_thread_blocked, id=2824]
    0x08ef0c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2904]
    =>0x01e69c00 JavaThread "main" [_thread_in_vm, id=3408]
    Other Threads:
    0x08ee7800 VMThread [id=2844]
    0x08f33800 WatcherThread [id=3860]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 960K, used 892K [0x20960000, 0x20a60000, 0x210c0000)
    eden space 896K, 99% used [0x20960000, 0x20a3f2a8, 0x20a40000)
    from space 64K, 0% used [0x20a40000, 0x20a40000, 0x20a50000)
    to space 64K, 0% used [0x20a50000, 0x20a50000, 0x20a60000)
    tenured generation total 4096K, used 0K [0x210c0000, 0x214c0000, 0x26960000)
    the space 4096K, 0% used [0x210c0000, 0x210c0000, 0x210c0200, 0x214c0000)
    compacting perm gen total 12288K, used 693K [0x26960000, 0x27560000, 0x2a960000)
    the space 12288K, 5% used [0x26960000, 0x26a0d4e8, 0x26a0d600, 0x27560000)
    ro space 8192K, 62% used [0x2a960000, 0x2ae5e4e8, 0x2ae5e600, 0x2b160000)
    rw space 12288K, 52% used [0x2b160000, 0x2b7a0e78, 0x2b7a1000, 0x2bd60000)
    Dynamic libraries:
    0x00400000 - 0x00419000      C:\Program Files\Internet Explorer\IEXPLORE.EXE
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x7e410000 - 0x7e4a1000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x7e290000 - 0x7e3ff000      C:\WINDOWS\system32\SHDOCVW.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x754d0000 - 0x75550000      C:\WINDOWS\system32\CRYPTUI.dll
    0x76c30000 - 0x76c5e000      C:\WINDOWS\system32\WINTRUST.dll
    0x76c90000 - 0x76cb8000      C:\WINDOWS\system32\IMAGEHLP.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\OLEAUT32.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x5b860000 - 0x5b8b4000      C:\WINDOWS\system32\NETAPI32.dll
    0x771b0000 - 0x77256000      C:\WINDOWS\system32\WININET.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\VERSION.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x773d0000 - 0x774d3000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x37000000 - 0x37013000      C:\WINDOWS\system32\EntApi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x5d090000 - 0x5d12a000      C:\WINDOWS\system32\comctl32.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x74720000 - 0x7476b000      C:\WINDOWS\system32\MSCTF.dll
    0x10000000 - 0x1006c000      C:\Program Files\Encentuate\WinObserver2.Dll
    0x00b60000 - 0x00bb0000      C:\WINDOWS\system32\SyncProxy.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x7c080000 - 0x7c0f7000      C:\WINDOWS\system32\MSVCP70.dll
    0x7c000000 - 0x7c054000      C:\WINDOWS\system32\MSVCR70.dll
    0x7c250000 - 0x7c33e000      C:\WINDOWS\system32\MFC70U.DLL
    0x74c80000 - 0x74cac000      C:\WINDOWS\system32\OLEACC.dll
    0x76080000 - 0x760e5000      C:\WINDOWS\system32\MSVCP60.dll
    0x75f80000 - 0x7607d000      C:\WINDOWS\system32\BROWSEUI.dll
    0x20000000 - 0x20012000      C:\WINDOWS\system32\browselc.dll
    0x77b40000 - 0x77b62000      C:\WINDOWS\system32\appHelp.dll
    0x76fd0000 - 0x7704f000      C:\WINDOWS\system32\CLBCATQ.DLL
    0x77050000 - 0x77115000      C:\WINDOWS\system32\COMRes.dll
    0x755c0000 - 0x755ee000      C:\WINDOWS\system32\msctfime.ime
    0x00d70000 - 0x00d9f000      C:\Program Files\Encentuate\CommonResource.dll
    0x00e40000 - 0x00f01000      C:\Program Files\Encentuate\WinObserverIExplore.dll
    0x00db0000 - 0x00dc5000      C:\WINDOWS\system32\WndTransProxy.dll
    0x00dd0000 - 0x00dda000      C:\WINDOWS\system32\ObsDllInterface.dll
    0x7e1e0000 - 0x7e280000      C:\WINDOWS\system32\urlmon.dll
    0x01360000 - 0x013af000      C:\Program Files\HPQ\IAM\Bin\SFSShell.dll
    0x013b0000 - 0x01427000      C:\Program Files\HPQ\IAM\bin\ItMsg.dll
    0x77a20000 - 0x77a74000      C:\WINDOWS\System32\cscui.dll
    0x76600000 - 0x7661d000      C:\WINDOWS\System32\CSCDLL.dll
    0x77920000 - 0x77a13000      C:\WINDOWS\system32\SETUPAPI.dll
    0x01460000 - 0x017df000      c:\program files\google\googletoolbar2.dll
    0x7d1e0000 - 0x7d49e000      C:\WINDOWS\system32\msi.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x71ad0000 - 0x71ad9000      C:\WINDOWS\system32\WSOCK32.dll
    0x76380000 - 0x76385000      C:\WINDOWS\system32\MSIMG32.dll
    0x74980000 - 0x74a8e000      C:\WINDOWS\system32\msxml3.dll
    0x59a60000 - 0x59b01000      C:\WINDOWS\system32\DBGHELP.DLL
    0x76ee0000 - 0x76f1c000      C:\WINDOWS\system32\RASAPI32.DLL
    0x76e90000 - 0x76ea2000      C:\WINDOWS\system32\rasman.dll
    0x76eb0000 - 0x76edf000      C:\WINDOWS\system32\TAPI32.dll
    0x76e80000 - 0x76e8e000      C:\WINDOWS\system32\rtutils.dll
    0x77c70000 - 0x77c93000      C:\WINDOWS\system32\msv1_0.dll
    0x76d60000 - 0x76d79000      C:\WINDOWS\system32\iphlpapi.dll
    0x76990000 - 0x769b5000      C:\WINDOWS\system32\ntshrui.dll
    0x76b20000 - 0x76b31000      C:\WINDOWS\system32\ATL.DLL
    0x769c0000 - 0x76a73000      C:\WINDOWS\system32\USERENV.dll
    0x71b20000 - 0x71b32000      C:\WINDOWS\system32\MPR.dll
    0x75f60000 - 0x75f67000      C:\WINDOWS\System32\drprov.dll
    0x71c10000 - 0x71c1e000      C:\WINDOWS\System32\ntlanman.dll
    0x71cd0000 - 0x71ce7000      C:\WINDOWS\System32\NETUI0.dll
    0x71c90000 - 0x71cd0000      C:\WINDOWS\System32\NETUI1.dll
    0x71c80000 - 0x71c87000      C:\WINDOWS\System32\NETRAP.dll
    0x71bf0000 - 0x71c03000      C:\WINDOWS\System32\SAMLIB.dll
    0x722b0000 - 0x722b5000      C:\WINDOWS\system32\sensapi.dll
    0x75f70000 - 0x75f79000      C:\WINDOWS\System32\davclnt.dll
    0x01db0000 - 0x01e38000      C:\WINDOWS\system32\shdoclc.dll
    0x01d90000 - 0x01d9d000      C:\Program Files\Adobe\Acrobat 7.0\ActiveX\AcroIEHelper.dll
    0x7c340000 - 0x7c396000      C:\WINDOWS\system32\MSVCR71.dll
    0x023d0000 - 0x02404000      C:\Program Files\Encentuate\WebObserver2.dll
    0x6d7c0000 - 0x6d839000      C:\Program Files\Java\jre1.6.0_01\bin\ssv.dll
    0x01e70000 - 0x01e80000      C:\Program Files\HPQ\IAM\Bin\ItIeAddIN.dll
    0x75e90000 - 0x75f40000      C:\WINDOWS\system32\SXS.DLL
    0x02430000 - 0x024a1000      C:\Program Files\Encentuate\WebObserverDefault.dll
    0x024b0000 - 0x024b8000      C:\WINDOWS\system32\SOCIService.dll
    0x024c0000 - 0x02785000      C:\WINDOWS\system32\xpsp2res.dll
    0x75cf0000 - 0x75d81000      C:\WINDOWS\system32\mlang.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x605d0000 - 0x605d9000      C:\WINDOWS\system32\mslbui.dll
    0x7dc30000 - 0x7df21000      C:\WINDOWS\system32\mshtml.dll
    0x746c0000 - 0x746e7000      C:\WINDOWS\system32\msls31.dll
    0x746f0000 - 0x7471a000      C:\WINDOWS\system32\msimtf.dll
    0x5c2c0000 - 0x5c300000      C:\WINDOWS\ime\sptip.dll
    0x03530000 - 0x03541000      C:\WINDOWS\IME\SPGRMR.DLL
    0x03550000 - 0x035ab000      C:\Program Files\Common Files\Microsoft Shared\Ink\SKCHUI.DLL
    0x03790000 - 0x037eb000      C:\Program Files\HPQ\IAM\Bin\ItSSO.dll
    0x03820000 - 0x03853000      C:\Program Files\HPQ\IAM\Bin\Aswallet.dll
    0x72d20000 - 0x72d29000      C:\WINDOWS\system32\wdmaud.drv
    0x72d10000 - 0x72d18000      C:\WINDOWS\system32\msacm32.drv
    0x77be0000 - 0x77bf5000      C:\WINDOWS\system32\MSACM32.dll
    0x77bd0000 - 0x77bd7000      C:\WINDOWS\system32\midimap.dll
    0x18030000 - 0x1803b000      C:\Program Files\Network Associates\VirusScan\scriptproxy.dll
    0x12400000 - 0x12466000      C:\Program Files\Network Associates\VirusScan\mytilus.dll
    0x12580000 - 0x12585000      C:\Program Files\Network Associates\VirusScan\Res09\McShield.dll
    0x12000000 - 0x122d3000      C:\Program Files\Common Files\Network Associates\Engine\mcscan32.dll
    0x75c50000 - 0x75cbe000      C:\WINDOWS\system32\JScript.dll
    0x73300000 - 0x73367000      C:\WINDOWS\system32\VBScript.dll
    0x73dd0000 - 0x73ece000      C:\WINDOWS\system32\MFC42.DLL
    0x76200000 - 0x76271000      C:\WINDOWS\system32\mshtmled.dll
    0x767f0000 - 0x76817000      C:\WINDOWS\system32\schannel.dll
    0x0ffd0000 - 0x0fff8000      C:\WINDOWS\system32\rsaenh.dll
    0x68100000 - 0x68124000      C:\WINDOWS\system32\dssenh.dll
    0x6d6b0000 - 0x6d6d1000      C:\Program Files\Java\jre1.6.0_01\bin\npjpi160_01.dll
    0x6d4a0000 - 0x6d4bb000      C:\Program Files\Java\jre1.6.0_01\bin\jpiexp.dll
    0x6d250000 - 0x6d261000      C:\Program Files\Java\jre1.6.0_01\bin\deploy.dll
    0x6d4f0000 - 0x6d514000      C:\Program Files\Java\jre1.6.0_01\bin\jpishare.dll
    0x06b70000 - 0x06db7000      C:\PROGRA~1\Java\JRE16~1.0_0\bin\client\jvm.dll
    VM Arguments:
    jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~1.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0_01 -Djavaplugin.nodotversion=160_01 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~1.0_0 -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE16~1.0_0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE16~1.0_0\lib\deploy.jar;C:\PROGRA~1\Java\JRE16~1.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.6.0_01 -Djavaplugin.nodotversion=160_01 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE16~1.0_0
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    PATH=C:\PROGRA~1\Java\JRE16~1.0_0\bin;C:\Program Files\Internet Explorer;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Intel\DMIX;C:\Program Files\HPQ\IAM\bin;C:\Program Files\Encentuate\Access Kits\v4\;.
    USERNAME=s7311110b
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1031408k(402732k free), swap 2481980k(1887324k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_01-b06) for windows-x86, built on Mar 14 2007 00:24:02 by "java_re" with unknown MS VC++:1310

    I encoutered this trouble too.
    I spent so much time trying to fix the problem.
    SOLUTION:
    Open IE. From the Menu bar select Tools --> Add-on Component Management -> Enable disable add-on componenents...
    The dialog window "Add-on Component Management" will be displayed.
    From the drop-down menu select "components actually loaded on Internet Explorer "
    Disable the following component:
    Name: HP Credential Manager for ProtectTools
    File: ItIeAddIN.dll
    OK and restart IE.
    The component is listed in your report in the dynamic libraries section (C:\Program Files\HPQ\IAM|Bin\ItIeAddIN.dll).
    Bye

  • PR auto close

    Dear all,
    My plant wants the scenario like if PR is open from more than 2 months without any action then system auto. close the PR.
    Is it possible if yes then how?
    Neha

    Hi,
    The 'closed' indicator on a Purchase Requisition can only be set
    manually. This can be done by one of the following methods :
    1] In the change Purchase Requisition transaction ME52, set the
       close indicator.
    2] If you use transaction ME21 or ME21N to create the PO with reference
       to the Purchase Requisition , the 'closed' flag has to be set
       manually. In transaction ME21N , the indicator to close the Purchase
       Requisition is in the delivery schedule tab of the item details at
       the far right end of the window.
    The close indicator is never set automatically. This is standard SAP
    system design.
    BR
    Nadia Orlandi

  • Under what conditions is it safe to not close a reference?

    I am curious whether there are certain conditions where references will be automatically closed. Especially with ActiveX projects, the number of references that are opened can get very large. When I look at VB code, I see references created by initializing variables, but I don't anything explicitly closing them. Is it necessary to always close the references used in LabVIEW manually?

    For ActiveX, you must always close the reference to avoid leaks while running. Remember that an ActiveX reference is really an IUnknown pointer under the covers, which requires the AddRef() and Release() methods to be invoked (COM is a reference counting model). VB handles it for you automatically by its internal garbage collector.
    LabVIEW will automatically clean up the reference when the top-level VI goes idle but not until then.
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Programatically closing an execution fails unless I select Auto close

    Hello there!
    Im trying to execute a sequence using TestStand API and then close all references, but the End Execution event does not seem to be thrown.
    I had the same issue as the thread called " Programatically closing an execution" from 2009.
    My code is the following
    _axAppMgr.EndExecution += new NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_EndExecutionEventHandler(_axAppMgr_EndExecution);
    _axAppMgr.ExecutionClosed += new NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_ExecutionClosedEventHandler(_axAppMgr_ExecutionClosed);
    void _axAppMgr_QueryCloseExecution(object sender, _ApplicationMgrEvents_QueryCloseExecutionEvent e)
    e.opt = QueryCloseExecutionOptions.QueryCloseExecution_AutoCloseWhenDone;
    void _axAppMgr_EndExecution(object sender, _ApplicationMgrEvents_EndExecutionEvent e)
    ExecutionRunStates runState;
    ExecutionTerminationStates termState;
    e.exec.GetStates(out runState, out termState);
    if (termState != ExecutionTerminationStates.ExecTermState_Normal)
    Trace.WriteLine(DateTime.Now + " -----EXECUTION " + e.exec.DisplayName + "Aborted ---------");
    else
    Trace.WriteLine(DateTime.Now + " -----EXECUTION " + e.exec.DisplayName + " Terminated ---------");
    ExecutionEnd = true;
    public bool Run(string UUTName, string sequencePath )
    bool output = false;
    int TimeOut = -1;
    string name = "";
    ExecutionRunStates runState;
    ExecutionTerminationStates TerminationState;
    try
    name = DateTime.Now.ToString("yyyy-MM-dd") + " Test " + UUTName;
    if (!_axAppMgr.IsStarted)
    _axAppMgr.Start();
    seqFile = _axAppMgr.GetEngine().GetSequenceFileEx(sequencePath);
    Main = seqFile.GetSequenceByName("MainSequence");
    Main.OptimizeNonReentrantCalls = true;
    Main.Type = SequenceTypes.SeqType_ExeEntryPoint;
    execution = _axAppMgr.GetEngine().NewExecution(seqFile, "MainSequence",null, false, ExecutionTypeMask.ExecTypeMask_CloseWindowWhenDone);
    execution.TracingDisabled = true;
    execution.RTEOptionForThisExecution = RTEOptions.RTEOption_Ignore;
    execution.ClearTemporaryBreakpoints();
    execution.DisableResults = true;
    bool isExecuting = seqFile.IsExecuting;
    bool wait = execution.WaitForEndEx(TimeOut, true, null, null);
    execution.GetStates(out runState,out TerminationState );
    execution.Terminate();
    _axAppMgr.SetAutoCloseExecution(execution, true);
    _axAppMgr.CloseExecution(execution);
    execution.GetStates(out runState, out TerminationState);
    while (!ExecutionEnd)
    System.Threading.Thread.Sleep(1000);
    Terminate();
    execution.GetStates(out runState, out TerminationState);
    catch (COMException ex)
    Trace.WriteLine(ex.StackTrace + " " + ex.Message);
    finally
    TSHelper.DoSynchronousGCForCOMObjectDestruction();
    Quit();
    return output;
    The problem is, when I deactivate the 
    e.opt = QueryCloseExecutionOptions.QueryCloseExecution_AutoCloseWhenDone;
    command the execution fails to close.
    If I set the option to 
      e.opt = QueryCloseExecutionOptions.QueryCloseExecution_ShowDialog;
    and manually select auto close , then the Execution Close event is thrown.
    Could anyone help me finding out what's wrong with my code?
    Thank you in advance for your time

    Anyone ??

  • Photoshop is unable to Register/ Auto-Closes upon opening

    Alright,
    I've seen at least one other user with this problem, and it's nothing that can be resolved by signing in and out of the Adobe CC application, or even the Ctrl+Shift+Alt and opening trick.
    So recently I went with the $9.99 a month package for Adobe Creative Cloud containing Photoshop and Lightroom.
    No matter what I try, it won't ever prompt me to input a serial to register Photoshop, therefore any attempts at opening it set off it's anti-piracy measures and make it force-close immediately after opening/ after it finishes loading.
    When I am able to try and register/ finalize registration, it wants me to "complete registration by updating your account information," yet the page continuously loops and clicking "Update and Continue" brings me back to the same page. Which disallows me to register Photoshop.
    This is the reason why I, and possibly others, are unable to use Photoshop, for it auto-closes after fully loading, since it cannot be registered the same way Lightroom is.
    (Lightroom is registered immediately via a prompt message upon first startup asking for a serial code, one of which that is alread inserted/ auto-inserted by the Adobe Creative Cloud application.)
    Upon further investigation to prove my point, on my account the only product registered is Lightroom.
    Picture: http://screencast.com/t/0PTyKbUVLA
    I've tried the customer support chat.
    Multiple times.
    Possibly upwards of 16. Each time the representative went down the same list and copy/ pasted the same answers.
    It's sad that I was the one to narrow it down and have the problem figured out.
    Apparently I have to wait to contact their special support team on Monday to get this resolved.
    Although, it appears the package is "Photoshop Photography Program (For CS3+ customers)," which is not the version listed and advertised all over the site.
    (This package would indicate that I would not be able to use Photoshop since I have not owned Photoshop prior to purchasing this package.)
    Yet the only package that this applies to is this one:
    http://screencast.com/t/pDylveniasI
    This is insanely annoying.
    I would much rather do support via email, and I would also much rather have a more clear product description if the one I selected turned out to have been falsly advertised.
    Message was slightly edited by: MrNameloc

    I was on their Chat Support yesterday for 6 hours. Possibly a bit longer.
    Anyways, after waiting 4 hours for the Technician, the technician walked me through uninstalling Adobe CC and re-installing, but before he had me 'trash' the old preferences.
    Below is the file path (highlighted in blue, obviously), and the items that were changed.
    opm.db was deleted after changing the OOBE folder by adding the '.old' to it. (In the picture you can see the new versus the old...)
    Then afterwards they had me to make sure Adobe CC would not run, then had me to un-install it and re-install. Then had me to un-install Photoshop and re-install.
    (Well, they had me to un-install Photoshop CC, delete Adobe CC's preferences, un-install Adobe CC, re-install Adobe CC, then re-install Photoshop.)
    http://screencast.com/t/hjaPTVD2wl
    Did not work for me. You/ anyone else could try and save yourself 6+ hours in their support chat.
    They even assured me that, on their end, Photoshop had been registered on two machines already under my account; Meanwhile everytime I view my Adobe Products and Services, it still only lists Lightroom.
    Trying to convince them that it's registration is pretty hard. I've seen people with cracks of Photoshop CC, didn't work because Adobe CC keeps re-installing itself if it isn't allowed to be connected to the internet. (They were having the same problem as us; Opening Photoshop had it auto-close, and since Adobe CC cloned itself the anti-piracy measures kicked in causing Photoshop to do this.) However, since the cracks only install the trial version, it's still functional for 30 days. Therefore if you're able to find a trial version of Photoshop, or maybe even get a pirated copy, you'll be prompted to put in a Serial; Then possibly ask Adobe for your Serial, register and activate Photoshop, and maybe it'll work.
    Only reason why I suggest a cracked copy is because you are able to actually download the trial without signing into Adobe CC.
    Plus, it will actually give you a prompt to input a serial key. Unlike the Adobe CC installer.

  • Second popup applet auto-close the first popup applet

    I have a configuration which works in the following way
    1) There's a button on Applet 1, which will pop-up Applet 2 using the ShowPopup method.
    2) In Applet 2, there's a field which has MVG applet.
    I observed the following behaviour:
    1) Click buttons on Applet 1 which pops-up Applet 2.
    2) In Applet 2, click the MVG pick which pops-up the MVG applet.
    3) Close the MVG applet by clicking the X button on the browser window.
    4) When the MVG applet closes, it also auto-close Applet 2. Focus return to Applet 1.
    The expected behaviour is MVG applet close, and focus should return to Applet 2, not auto-close Applet 2.
    Any thoughts?

    Okay, I figured out how to launch an applet from another applet [A]. It was a matter of using a URLClassLoader to load applet [B]. The problem now is that there are some security issues. Even if I sign the applet [B], a security warning is not presented when applet[B] is initilialized. As a result, reading from a file on the local machine can not be done (Security exceptions).
    Any ideas? Thanks in advance.

  • Adobe Reader no longer Auto-Closes after printing

    My company uses software that allows for users to reprint invoices they have previously made.  The way the procedure is supposed to work is: the driver clicks a re-print button, Adobe Reader opens up with the document, prints it, then closes.  Within the past couple of weeks however, everything is fine however Adobe Reader will not close out.  The PDF document itself closes, but the user is then brought to the main menu where they can open up another PDF.  The problem this is causing is that they cannot reprint other invoices until manually closing out of Adobe reader every time.  There have not been any updates made to the software they are using, or to Adobe Reader.  We have users on both Windows XP and 7, and have the issue with both Reader v10 and 11.
    Any suggestions on how I might be able to get Adobe Reader to auto-close again?  I am also checking with the software vendor for their insight.

    Might be difficult to fix.
    You don't know what changes to your system/registry have been made by the virus infection you told of.
    Maybe this article has some useful hints for you.
    http://blogs.adobe.com/dmcmahon/2009/04/12/acrobatreader-acrobat-fail-to-load-its-core-dll -error-after-installation/

  • Auto-close a task

    Auto-close a task
    How can I set up a task so I can just use it to attach an email notice, then automatically close the task, so the next task in the delivery plan will become active?
    Use the ServiceLink Dummy Adapter to create an auto-close Agent that will automatically close any task delegated to that Agent.
    Then create your 2 tasks with their respective conditions and corresponding email templates, and associate them each with this Agent (in the Workflow Type dropdown list on the General sub-tab for the task).
    Only one of the tasks will fire (based on the condition), and that task will be automatically closed by the Agent.
    CREATING AN AUTO-CLOSE AGENT
    (1) In ServiceLink, click Agents.
    (2) On the Agents page, click Create Agent.
    (3) Enter a Name and Action for the agent, such as "Auto-Close".
    (4) For the Outbound Adapter, select Dummy Adapter.
    (5) For the Inbound Adapter, select None (auto complete).
    (6) Click Submit to create the Agent.
    (7) Click Start Agent to start the Agent.
    (8) The Agent will now be available in the Workflow Type dropdown list on the General sub-tab for all tasks.

    Sorry the delay in getting back to you.  Hm, so do you have the parent task and child task evaluated?  I am guessing your version should have the ability to select when the conditional expression is evaluated (when delivery phase starts or acitivity become active) The child task that has the always false expression should be configured to evaluate when the activity becomes active.  Also if you would like please attach a screen capture of the workflow you created? 
    Aler

  • SQL Server Error 9001 and auto close on Property

    Hello,
      While talking to one of my application developers, he encountered Fatal Error 9001 while connecting to the database from .NET Application. In the past , he had similar issues and he mentioned that taking the database offline and bringing it back online
    fixed the problem. So we did the same this and the problem got fixed.
    I asked the question why are we having this problem in first place?.I used the SQL Credentials our .NET App uses and I was able to connect to the SQL Server using those credentials and execute the stored procedure. 
    Doing some online searching, sometimes, turning on Auto close property causes this problem. This particular database had that property turned on and I turned it off. I am not sure how it got turned on in the first place. By default it should be off.
    My question is Whats causing this behavior ?. How can I avoid getting 9001 Errors?.
    I am tying to figure out the root cause and better undestand whats going on with the server?.
    I understand the pros/cons of the auto close property but it shouldn't cause 9001 error.
    Your help would be much appreciated.
    My SQL Server Version:
    select @@version
    Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (X64) 
    Sep 21 2011 22:45:45 
    Copyright (c) 1988-2008 Microsoft Corporation
    Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)
    Thanks,
    I90Runner

    Hi,
    If you refer to
    Microsoft definition of error 9001 it means Log for database is not available. Hope you are using English language
    select text
    from sys.messages
    where message_id = 9001
    and language_id=1033
    Now why would SQL server say log for database is not available, it would say such thing when it wont be able to communicate with log file or wont be able to communicate with disk on which log file resides. I would say this might be disk issue. Not only SAN,
    disk controllers, HBA and other connections which are involved between database and storage should be checked. Please immediately consult your vendor. At first it might seem all is fine but remember I said through check. I faced this issue in cluster and it
    boiled down to Storage issue SQL server was just victim.
    Reg AUTOCLOSE AFAIK by default it is true for express edition not fot other editions
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Auto-close after signature?

    I would like to know if it's possible to auto-close a document after signing and saving.  I've been having an issue at the company with two (or more) people having a document open for electronic signature at once, and of course only one of them can save at a time.  If a document could close automatically after signature, this problem would greatly be reduced.
    If there is a code that allows auto-closing the file after the signature save prompt and the person signs, I would love to know about it.
    Is this possible?
    Win XP, LS 8.2, Acrobat Professional 9.4

    Ok tried that, and get the message, "Object contains a feature not supported by target version"
    The Report log says,  "Target Version does not support PostSign event".

  • Using Validator with mx:ComboBox causes it to auto-close

    I've recently ported a 3.x flex app to Flex 4. I've run in to a bug that causes all mx:ComboBoxes to close the first time the user attempts to open the drop down list. Subsequent attempts to open the box work fine.
    Example:
    <mx:ComboBox id="typeId" dataProvider="{fMechanismTypes}"
                                 labelField="name" prompt="Select..."
                                 change="handleTypeChange( )"
                                 creationComplete="initTypeValidator();"
                                 focusOut="tabValidationCheck()"/>
    private function initTypeValidator():void {
                fTypeValidator.source = typeId;
                fTypeValidator.property = "selectedIndex";
                fTypeValidator.minValue = 0;
                fTypeValidator.lowerThanMinError = "This field is required.";
    If I don't initialize fTypeValidator, the combobox works correctly.
    Anyone experience this?

    It appears a Flex ComboBox and a String Validator with the properties of being required as true, and the property of text, forces the ComboBox to close when selecting an item via the keyboard.  This auto close only happens when making the initial selection from the initial empty string or 0 index.  After a valid selection has been made, the user is able to use the keyboard to select any other values, and the ComboBox display remains open.  I have attempted to write my own ComboBox class that extends the Flex ComboBox, which would do custom open and close functionality, however I have been unsuccessful.  My goal is to have this ComboBox remain open during Keyboard input.  If the StringValidator required property is set to false, the box does not auto close.
    Any help on this topic would be greatly appreciated.
    And here is a sample of my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"  layout="absolute" minWidth="955" minHeight="600" creationComplete="init();">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]private var _comboBoxDataProvider:ArrayCollection;
                private function init():void {
                    _comboBoxDataProvider = new ArrayCollection();
                    _comboBoxDataProvider.addItemAt('', 0);
                    for(var i:int = 0; i < 6; ++i) {
                        var obj:Object = {};
                        obj.labelField = String(i);
                        _comboBoxDataProvider.addItem(obj);
                    comboBoxValidator.validate();
            ]]>
        </mx:Script>
        <mx:StringValidator id="comboBoxValidator"
            required="true"
            source="{comboBox}" requiredFieldError="Empty Field Error"
            property="text"
            />
        <mx:ComboBox  id="comboBox" width="150"
        dataProvider="{_comboBoxDataProvider}"
        labelField="labelField"
        selectedIndex="0"  />
    </mx:Application>

  • Auto-close sales order : Exceptions in FM SD_WF_ORDER_REJECT

    Hi Experts,
    I created a program with the function module SD_WF_ORDER_REJECT for auto-close undelivered sales orders whose date exceeds 60 days and I schedule a periodical job to run this program in background, but the job is canceled due to different reasons:
    - Material X is not defined for sales org. X distr.chan.X, language IT
    - Can not modify a fully charged or canceled orders...
    In my program I select with following parameters:   VBUK~LFGSK = 'A'   AND VBUK~VBTYP = 'C'.
    how to handle exceptions in FM SD_WF_ORDER_REJECT ?
    Many thanks in advance!
    ismail

    Moved from SAP ERP Sales and Distribution (SAP SD) to ABAP Development
    G. Lakshmipathi

  • Auto Close window  when finished

    Does anyone know how to auto close the window when the last
    frame is finished.

    Hi krisTM
    Try clicking Edit > Preferences... > Project node >
    Start and End node. Look at the Action configured in the Project
    end options area. If you click the drop-down, you should see an
    option labeled "Close project". Try configuring that and
    re-publishing.
    Cheers... Rick

Maybe you are looking for

  • Shouldn't I be able to listen to my music while playing a game?

    I just bought one game and when I play it, my music stops. The game does have sound effects which do not seem to have the option of being turned off. Are there any games that allow me to listen to my tunes? TIA

  • Macbook Pro screen - Seeing double Blurry text everything else

    Man....Something happened. I have a pretty much brand new 17 inch pro. I woke it up and now the text and everything else is blurry. when looking at text for example it's like there are two sets! This isn't just when using a specific application. This

  • Protecting PDF files

    Does anyone know of an addin that allows setting the no copy, no edit and no print options on a PDF file? I'd rather not have to purchase Adobe just to perform these functions. Thanks iMac G5 20"   Mac OS X (10.4.7)  

  • How to slow Motion Scroll Effects and anchors?

    I am using a down pointing arrow to cue the user to scroll down to the next section. I thought I could automate by linking the arrow to an anchor that is positioned down the page. Cool, it works. However, the jump is so fast that all the fancy Motion

  • Play difference type of audio simultaneously

    Hello everybody i am making iphone app. i want to play two audio files simultaneously. here the type of two files is difference. one is wav and another is mp3. i tried to play these file with AudioToolbox Fameworks. Therefore, in some time it normall