Windows handles left open after opening and closing registry key

When I open a registry key with 'Create Registry Key.vi' or 'Open Registry Key.vi' and thereafter close it with 'Close Registry Key.vi', there are 2 Windows handles left open. As my program polls the registry for changes repeatedly, my system crashes because after a certain time of use, no handles are available anymore.
I'm using Windows XP and Labview 8.6.
The VI in the attachment illustrates the problem (reading and writing of values are left out as these have no influence on the problem).
How can I read and write the registry, without leaving open handles?
Ruud
Attachments:
Registry-handles.vi ‏12 KB

Dear Ruud,
thank you so much for your post on our webforum. I noticed that this is a known issue for Labview 8.6, a while ago it was reported with a Corrective Action Request (CAR# 132471). The issue should be resolved with Labview 2009. I wasn't able to reproduce the issue wit Labview 2010, the number of handles stayed arround 28000,
best regards,
Martijn S
Applications Engineer
NI Netherlands
Attachments:
handles.JPG ‏104 KB

Similar Messages

  • I just upgraded to OSX version 10.8.3 and since then all animations are defective. The dock is jerky! The effects of opening and closing windows ranging in shots!  What should I do?

    I just upgraded to OSX version 10.8.3 and since then all animations are defective.
    The dock is jerky!
    The effects of opening and closing windows ranging in shots!
    What should I do?

    You can check the status of your drive's indexing by clicking the Spotlight menu to see if there is a progress bar at the bottom of it, and can also open Activity Monitor and click the "%CPU" column to sort by CPU usage, to see if the processes "mds" or "mdworker" are currently active and using your CPU.
    If so, then wait for them to finish. However, if not then try rebooting and then hold the Shift key immediately after you hear the boot chimes. This will load the system into Safe Mode, which should run some checks and maintenance routines on the system. Then reboot normally to see if the problem persists.
    How much RAM do you have installed on your system? You can see this by choosing About This Mac from the Apple menu.

  • After opening and closing 19-20 PDFs in 8.1.6 Acrobat stops working

    I have just started getting Acrobat errors '..has stopped working' after opening 19-20 PDFs (individually opening and closing each separately) which causes Acrobat to stop working and displaying PDFs, even any of the 19-20 PDFs, that opened fine beforehand, stop opening. Only by restarting Windows, does it seem to clear this error. I have maintained my updates and patches, on both my Acrobat Professional and Reader 8.1.6.
    I am Running Windows XP SP2, with 4Gbs or Memory, and no other programs except for my MS outlook 2007 running. I have MS Office 2007 Professional installed. Something also from Acrobat is interferring with Outlook. Is there an add-on, automatically installed in Outlook for PDF previews? I suspect it might have something to do with the aspect of Acrobat causing the errors and crashing of Acrobat, but I am only guessing. I have also run Antivrus scans on all my PDFs and found no problems with them.

    Hi Michael,
    Thank you for your suggestion. I did uninstall both, and reinstall Pro, and restarted my system. However, that did not solve my problem. Thank you though.
    Sincerely
    John M. Shaw

  • FF5.01 for Windows deletes and blocks cookies if other browser-window is opened and closed

    Recently (five days ago, before that FF worked fine) my FF5.01 for Windows has started to delete cookies if other FF-window is closed (and that way I get "logged out" from sites I've been logged in) and FF also rejects all cookies after that which prevents re-login to sites, closing all FF-windows helps until other FF-window is opened and closed then cookie-deleting and rejecting starts again. No problems on 5.0 for Windows (32bit).

    Hi detroitdecay !
    Sorry for my english.
    I have the same problem. Did you find a solution ?
    Thks.

  • Opening and closing osk form java program on windows 8

    Hi
    I want to open Osk when ever I click on any text field in windows 8.
    I tried in below mentioned way to open and close but it is usefull. could some body help in opening and closing osk properly on windows 8
    Opening OSK:
    builder = new ProcessBuilder("cmd /c " + sysroot + " /System32/osk.exe");
    Closing Osk:
    Runtime.getRuntime().exec("taskkill /f /im osk.exe");

    Hello,
    It is odd that you are seeing a dialog saying it needs to be removed. Can you post a screenshot of that?
    If a particular update version is already installed, regardless of the build number in the case of EA builds, you will see a message saying that it is already installed, you can then continue or cancel.
    Why is it that you were trying to reinstall? As you called out the 64bit OS it may be the case that a 64bit JRE was installed and the JRE is not working in the 32 browser. I mention this as this is a common case.  Really only IE has a 64bit browser for Windows, Chrome and Firefox are do not provide production 64bit browsers and thus the 64bit plugin will not run in those browsers. Windows 8 as a bit more of a hurdle as Java must be run on the desktop rather then the start screen and the 32bit browser, as I recall, is the default.  Java.com will not provide the 64bit JRE unless a 64bit browser is being used for just this reason. Here are a few links that cover this:
    https://www.java.com/en/download/faq/java_win64bit.xml
    http://windows.microsoft.com/en-us/windows7/32-bit-and-64-bit-Windows-frequently-asked-questions
    You can obtain the 32bit JRE from https://www.java.com/en/download/manual.jsp
    To complete the uninstall there are some steps you can try this first:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall/en
    Only if the above does not work... registry changes, be careful, back up the registry!
    https://www.java.com/en/download/help/regkey_addremove.xml
    Cheers,
    Roger

  • Mac OS 10.7 Server won't mount DMG's after opening and closing - "Resource Temporarily Unavailable"

    I am running Mac OS 10.7.3 Server on Mac Pro 2 x 2.66 GHz 6-Core Intel Xeon with multiple users editing on Avid.
    DMG's containing raw camera footage are stored on the server, mounted by connected users on their desktops to allow Avid to access the enclosed data within the DMG's. Recently we've started encountering a problem opening the DMG's after they've recently been opened and closed. After opening and closing a DMG. when we try to open it again from the same user/connected computer or any other user/computer we see an error message saying "The following disk images couldn't be opened" NAME OF DMG "Resource temporarily unavailable". This happened to several users with several DMG's.
    We have since restarted the server, which appeared to fix the problem for about a week and now we are having the same issue again.
    The only changes made recently have been an update to version 4.2 of our ISIS 5000 which all of the Avid systems edit off of, but I don't beleive that to be the cause of the DMG opening issue. I suspect it might be caused by the Pram still thinking that the DMG's are open when they've already been closed.
    Not sure if this is relevant, but we had been running only Mac OS 10.7 systems connected to the server but within the last few months we've been adding several more systems including those with OS 10.8.
    Has anyone else encountered this issue? Does anyone know the fix to this problem?
    Thanks for any and all help!

    Also, we have been able to copy the DMGs to desktops and external drives, which normally would not be possible when a DMG is currently open by another user which is the standard situation in which a DMG would say "Resource Temporarily Unavailable".
    After copying to another location, they open normally so we believe it is an issue isolated to the server itself.
    Thanks!

  • Premier elements 12 crashes on opening and closing

    Premiere elements 12 crashes on opening and closing.   New Lenovo laptop with I7 processor and 8Gb RAM.

    When I hit the X in the upper right hand corner to close the program I get the little spinning circle indicating the program is trying to do something.  When I click again on the program window, I get an error window stating that Adobe Premiere Elements 12 is not responding.  It givse 3 options: check for a solution, close the program or wait for the program to respond.  This is the problem details:
    Description:
      A problem caused this program to stop interacting with Windows.
    Problem signature:
      Problem Event Name:                        AppHangB1
      Application Name:                             Adobe Premiere Elements.exe
      Application Version:                           12.0.0.0
      Application Timestamp:                     52251824
      Hang Signature:                                  2827
      Hang Type:                                          0
      OS Version:                                          6.1.7601.2.1.0.256.48
      Locale ID:                                             1033
      Additional Hang Signature 1:           28274b0f11ed25b4cb51d233f19762db
      Additional Hang Signature 2:           33cb
      Additional Hang Signature 3:           33cba566967f0185e41e4060c623d622
      Additional Hang Signature 4:           2827
      Additional Hang Signature 5:           28274b0f11ed25b4cb51d233f19762db
      Additional Hang Signature 6:           33cb
      Additional Hang Signature 7:           33cba566967f0185e41e4060c623d622
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
    The close does complete the save.
    After closing the program with the “Close Program” option there are no Adobe processes left in the Task Manager list.
    Thanks for the help!
    ron

  • How to calculate opening and closing balance for period

    Hi all,
    i have to find out opening and closing balance.
    the table structure of temporary table is
    select * from hwcn_xn_fa_report_temp1 where asset_id=10029400
    PERIOD_COUNTER CST_OP_BAL CST_ADDITION CST_TRANSFER CST_DISPOSAL COST_CLOSING_BALANCE
    24108 0 0 0
    24109 12000
    24110 0 0 0
    24111 0 0 0
    in this table cst_op_balnce and cost_closing_balace is null
    i have display cost_op_bal and cost_closing_balnce
    cost_closing_balance=cst_op_bal+cst_addition+cst_transfer+cst_disposal
    for period 2408 op_balnce=0 closing_bal=0
    for period 2409 op_balnce=0 closing_balce=1200
    for period 2410 op_bal=1200 closing_bal=1200
    closing balance of dec will be opening bal of jan
    thanks and regards
    Edited by: user10664276 on Apr 19, 2009 11:08 PM
    Edited by: user10664276 on Apr 19, 2009 11:13 PM

    Hi,
    user11118871 wrote:
    Can you explain what that is? Thank you if you have one example.
    ROWS BETWEEN  UNBOUNDED PRECEDING AND 1 PRECEDING
    When you use the analytic SUM (c) function, then, on each row, it returns the values of column (or expression) c from several rows in the result set added together.
    Which rows? That depends.
    If the analytic clause (the part in parentheses after OVER) does not include ORDER BY, then it is all rows.
    If the analytic clause has an ORDER BY clause, but no windowing clause (that is, ROWS BETWEEN ... or RANGE BETWEEN ...), then the rows included in the sum are all rows up to and including the row where the function is being called (as sorted by the analytic ORDER BY).
    If the analytic cluase has both ORDER BY and a windowing clause "ROWS BETWEEN x PRECEDING AND y PRECEDING", then the rows included in the sum are the rows from x to y rows before the one where the function is called.
    Do some experiments with different values of x and y.
    First, create a table like the one in the problem above, but simplified a little.
    CREATE TABLE     test_sum
    (      period     NUMBER
    ,      new_amt     NUMBER
    INSERT INTO test_sum (period, new_amt) VALUES (24108,     1);
    INSERT INTO test_sum (period, new_amt) VALUES (24109,     4);
    INSERT INTO test_sum (period, new_amt) VALUES (24110,     2);
    INSERT INTO test_sum (period, new_amt) VALUES (24111,     8);
    INSERT INTO test_sum (period, new_amt) VALUES (25001,     32);
    INSERT INTO test_sum (period, new_amt) VALUES (25002,     16);
    COMMIT;The original problem above used names that were meaningful for its application, and columns that have nothing to do with the SUM function. Let's simplify the former and lose the latter.
    That problem involved the SUM of three columns added together. Since we just want to understand how the windowing clause works, let's simplify that to one column.
    With these simplifications, my original query is:
    SELECT       period
    ,       new_amt     
    ,       SUM (new_amt) OVER ( ORDER BY          period
                                         ROWS BETWEEN  UNBOUNDED PRECEDING
                                 AND          1            PRECEDING
                        ) AS opening_balance
    ,       SUM (new_amt) OVER ( ORDER BY          period
                        ) AS closing_balance
    FROM       test_sum
    ORDER BY  period;Given the data above, it produces these results:
    .   PERIOD    NEW_AMT OPENING_BALANCE CLOSING_BALANCE
         24108          1                               1
         24109          4               1               5
         24110          2               5               7
         24111          8               7              15
         25001         32              15              47
         25002         16              47              63So, for example, on the row where period=24110,
    opening_balance=5, which is the total of new_amt from all rows up to but not including that row: 5=1+4, and
    closing_balance=7, which is the total of new_amt from all rows up to and including that row: 7=1+4+2.
    To really understand how the windowing clause works, do some experiments. Change the definition of opening_balance to include " BETWEEN x PRECEDING AND y PRECEDING". You'll find that:
    (a) "UNBOUNDED PRECEDING" means the same as "n PRECEDING", where n is greater than the number of rows in your result set.
    (b) "CURRENT ROW" means the same as "0 PRECEDING"
    (c) x must be greater than or equal to y
    (d) neither x nor y can be negative (but you can use "FOLLOWING" instead of "PRECEDING" to get the same effect).
    For more, see the introduction to "Analytic Functions" in the [SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions001.htm#sthref972]
    When you're finished, don't forget to
    DROP TABLE     test_sum;

  • IPhoto 6 slow when opening and closing

    My wife has a love-hate relationship with iPhoto. iPhoto takes time to open and close. Here is my observations:
    1) MacBook Pro with 512MB and 10 000 pics.The file Library6.iphoto is 130MB and I realized that each operation in iPhoto recreates this file (using the temporary file Library6.temp). It probably explains much of the slowness.
    2) iMac Intel with 1GB and 7 000 pics (subset of the previous 10 000). Now the Library6.iphoto is 17MB. What a difference! Opening and closing time quite acceptable.
    I read a lot of articles on the subject and I don't think that the problem is explained by EXIF info.
    More memory probably makes a difference, but not much.
    The real issue is probably the size of the Library6.iphoto file. I would so much like to take an inside look to each record of this file!
    Is anyone has an idea?

    denismailloux:
    Welcome to the Apple Discussions. Both libraries are at version 6, right? If the one with the 130MB data file is at V5 that would explain the slowness. Have ou tried rebuilding the library by launching iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library. Select just the option to rebuild the database. See if that won't give you a smaller Library6.iPhoto file.
    Another possibility, if the normal rebuild doesn't do the trick is to rebuild the library with
    Using iPhoto Library Manager to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your User/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File->Rebuild Library menu option
    In the next window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: It can take some time to create the new library if you have a lot of photos. One user reported that with a library of about 5,000 images it took about 12 hours so plan ahead.
    It does not touch or modify the original library so there's no danger of the process messing it up. Worth a try.
    Do you Twango?

  • Open and closed invoices

    hi experts,
    I have to capture the parked, open and closed invoices in a report in reference to vendor...
    I got the parked invoice condition from the table BSTAT either v or w.
    But i am not getting the idea how to capture the open and closed invoices...
    Some one suggested me to use the ITEMSET structure but i donno how to capture those values can anyone suggest me how to do it...?
    SIRI

    Hi,
    you can use the same query...Also check the new code after the select..
    SELECT BUKRS BELNR GJAHR <b>BSTAT</b>
    FROM BKPF
    INTO TABLE T_BKPF
    WHERE BUKRS = P_BUKRS
    AND BSTAT IN ( ' ' , 'A' ) " ' ' - Normal document, A - Parked doc
    AND BLART = P_BLART
    AND CPUDT IN SO_CPUDT " Selection screen input.
    IF NOT T_BKPF[] IS INITIAL.
    SELECT BUKRS BELNR GJAHR BUZEI EBELN AUGBL AUGBT
    INTO TABLE T_BSEG
    FOR ALL ENTRIES IN T_BKPF
    WHERE BUKRS = T_BKPF-BUKRS
    AND BELNR = T_BKPF-BELNR
    AND GJAHR = T_BKPF-GJAHR
    AND EBELN IN SO_EBELN " selection-screen input
    ENDIF.
    LOOP AT T_BKPF.
    Parked
      IF T_BKPF-BSTAT = 'A'.
        WRITE: / T_BKPF-BELNR , ' - Parked'.
    process the next record.
        CONTINUE.
      ENDIF.
    Check for Open / Closed.
      LOOP AT T_BSEG WHERE BELNR = T_BKPF-BELNR
                                   AND      BUKRS = T_BKPF-BUKRS
                                   AND      GJAHR = T_BKPF-GJAHR
                                   AND      AUGBL <> ' '.
        EXIT.
      ENDLOOP.
    If the return code is 0 then the document is cleared..
      IF sy-subrc = 0.
        WRITE: / T_BKPF-BELNR , ' - Closed'.
    Else the document is not cleared.
      ELSE.
        WRITE: / T_BKPF-BELNR , ' - Open'.
      ENDIF.
    ENDLOOP.
    Thanks,
    Naren

  • 7344 servo motion switching between open and closed loop operation

    I have a custom end-of-line test system presently using a 4-axis 7344 servo controller to perform various functional tests on small, brushed DC motors. The system is programmed in C/C++ and uses flex motion functions to control the motor during testing. Motors are coupled to external encoder feedback and third party PWM drives running in closed-loop torque mode from an analog command signal. The system uses all four motion axis channels on the 7344 board to independently and asynchronously test up to four production motors at a time.
    In closed-loop mode, the system runs without issue, satisfying the battery of testing protocols executed by this system. I now have a request to add additional test functionality to the system. This testing must be run in open loop mode. Specifically, I need to use my +/- 10v analog output command to my torque drive to send different DAC output levels to the connected motor.drive while monitoring response.
    I do not believe the flex motion library or 7344 controller includes functions to easily switch between open and closed loop mode without sending a new drive configuration. I am also under the impression that I cannot reconfigure one (or more) servo controller axis channels without disabling the entire drive. As my system runs each axis channel in an asynchronous manner, any requirement to shutdown all drives each time I change modes is an unworkable solution.
    I am open to all ideas that will allow asynchronous operation of my 4 motor testing stations. If the only solution is to add a second 7344 controller and mechanical relays to switch the drive and motor wiring between two separately configured servo channels, so be it. I just want to explore any available avenue before I place a price tag on this new system requirement.
    Bob

    Jochen,
    Thank you for the quick response. The 7344 board does an excellent job running my manufacturing motor assemblies through a custom end-of-line tester in closed loop mode. A portion of the performance history and test result couples the motor through a mechanical load and external shaft. The shaft is in contact with a linear encoder that closes my servo loop.
    My new manufacturing requirement is to also sample/document how the small DC motor behaves in open loop operation. Your solution is exactly what I need to perform the additional functional tests on the product I am manufacturing. I see no reason why this cannot work. I was originally concerned that I would need to reinitialize the 7344 board after changing axis configuration. Initialization is a global event and impacts all four channels on the 7344 board.
    Using flex_config_axis() to change axis configuration on a single channel without disturbing other potentially running axis channels will solve my concern. It will be several weeks before I can return to the manufacturing facility where the 7344-based testing machine is located. I will update this thread once I verify a successful result.
    Bob

  • Open and Closed Time Outside of the 15 Minute Options

    I have a 13 agent Call Center with one CSQ with Skills based  routing.
    The Call Center closes at 8 pm on Weekdays and 12  pm on Saturday EST. The time of day function only allows me to choose 15 min  increments for open and closed.  So the Call Center either closes at 8 pm or 7:45 pm.   I need to prevent calls from being queued after 7:58 pm on Weekdays and 11:58 am  on Saturday.  I don’t know how to get around this 15 min restriction.  A friend  of mine told me that some kind of Java query can be entered into a Boolean  variable and then use If / Then statements to check the time and route the call  to closed at 7:58 pm and 11:58 am.  Any help will be appreciated.

    Most commonly used backup methods

  • Open and closed hand cursors

    I have a drag image application and I wanted to use the open and closed hand cursors to move the image about. It seems there is no easy way of accessing these in Java. After searching for cursor names etc.. I decided to hard code the cursors from the .gif image. Also I didn't want the .GIFs as files as this adds to loading problems so I ended up using arrays of pixels that took a little while to enter.
    I'm giving you the code if you ever need to use it as I typed it in and wouldn't want anyone else to have to do the same.
    int curWidth=32;
                   int curHeight=32;
                   int curCol;
                   Image img;
                   int x,y;
                   int closed_black[] = { 6,5,7,5,9,5,10,5,12,5,13,5,5,6,8,6,11,6,14,6,
                             15,6,5,7,14,7,16,7,6,8,16,8,5,9,6,9,16,9,4,10,
                             16,10,4,11,16,11,4,12,15,12,5,13,15,13,6,14,14,14,
                             7,15,14,15,7,16,14,16,0};
                   int closed_white[] = { 6,4,7,4,9,4,10,4,12,4,13,4,5,5,8,5,11,5,14,5,15,5,
                             4,6,6,6,7,6,9,6,10,6,12,6,13,6,16,6,4,7,15,7,17,7,
                             5,8,17,8,4,9,17,9,3,10,5,10,15,10,17,10,3,11,17,11,
                             3,12,16,12,4,13,16,13,5,14,15,14,6,15,15,15,6,16,
                             15,16,7,17,14,17,0};
                   int closed_whiteruns[] = {6,13,7,15,7,15,5,15,5,15,5,14,6,14,7,13,8,13,8,13,0};
                   int open_black[] = { 10,3,11,3,6,4,7,4,9,4,12,4,13,4,14,4,5,5,8,5,9,5,12,5,
                             15,5,5,6,8,6,9,6,12,6,15,6,17,6,6,7,9,7,12,7,15,7,16,7,18,7,
                             6,8,9,8,12,8,15,8,18,8,4,9,5,9,7,9,15,9,18,9,3,10,6,10,7,10,
                             18,10,3,11,7,11,17,11,4,12,17,12,5,13,17,13,5,14,16,14,6,15,
                             16,15,7,16,15,16,8,17,15,17,8,18,15,18,0};
                   int open_white[] = {10,2,11,2,6,3,7,3,9,3,12,3,13,3,5,4,8,4,10,4,11,4,15,4,
                             4,5,6,5,7,5,10,5,11,5,13,5,14,5,16,5,17,5,4,6,6,6,7,6,10,6,
                             11,6,13,6,14,6,16,6,18,6,5,7,7,7,8,7,10,7,11,7,13,7,14,7,17,7,
                             19,7,4,8,5,8,7,8,8,8,10,8,11,8,13,8,14,8,16,8,17,7,19,8,3,9,6,9,
                             16,9,17,9,19,9,2,10,4,10,5,10,19,10,2,11,18,11,3,12,18,12,4,13,
                             18,13,4,14,17,14,5,15,17,15,6,16,16,16,7,17,18,17,7,18,16,18,
                             8,19,15,19,0};
                   int open_whiteruns[] = {9,14,8,17,4,16,5,16,6,16,6,15,7,15,8,14,9,14,9,14,0};                    
                   int pix[] = new int[curWidth*curHeight];
                   for(y=0; y<=curHeight; y++) for(x=0; x<=curWidth; x++) pix[y+x]=0; // all points transparent
                   // black pixels
                   curCol=Color.black.getRGB();
                   int n=0;
                   while(closed_black[n]!=0)
                        pix[closed_black[n++]+closed_black[n++]*curWidth]=curCol;
                   // white pixels
                   curCol=Color.white.getRGB();
                   n=0;
                   while(closed_white[n]!=0)
                        pix[closed_white[n++]+closed_white[n++]*curWidth]=curCol;
                   // white pixel runs
                   n=0;
                   y=7;
                   while(closed_whiteruns[n]!=0) {
                        for(x=closed_whiteruns[n++];x<closed_whiteruns[n];x++)
                             pix[x+y*curWidth]=curCol;
                        n++; y++;
                   img = createImage(new MemoryImageSource(curWidth,curHeight,pix,0,curWidth));
                   closedhandCursor = Toolkit.getDefaultToolkit().createCustomCursor(img,new Point(5,5),"closedhand");
                   for(y=0; y<=curHeight; y++) for(x=0; x<=curWidth; x++) pix[y+x]=0; // all points transparent
                   // black pixels
                   curCol=Color.black.getRGB();
                   n=0;
                   while(open_black[n]!=0)
                        pix[open_black[n++]+open_black[n++]*curWidth]=curCol;
                   // white pixels
                   curCol=Color.white.getRGB();
                   n=0;
                   while(open_white[n]!=0)
                        pix[open_white[n++]+open_white[n++]*curWidth]=curCol;
                   // white pixel runs
                   n=0;
                   y=9;
                   while(open_whiteruns[n]!=0) {
                        for(x=open_whiteruns[n++];x<open_whiteruns[n];x++)
                             pix[x+y*curWidth]=curCol;
                        n++; y++;
                   img = createImage(new MemoryImageSource(curWidth,curHeight,pix,0,curWidth));
                   openhandCursor = Toolkit.getDefaultToolkit().createCustomCursor(img,new Point(5,5),"openhand");
                   setCursor(openhandCursor);you need to define openhandCursor and closedhandCursor with your other cursor definitions (I made them default to start with) and then just use setcursor as normal. There must be an easier way to do this!
    p.s. thanks to Martin Zvarik for the original code here: http://www.jguru.com/faq/view.jsp?EID=9958

    Hi,
    you can use the same query...Also check the new code after the select..
    SELECT BUKRS BELNR GJAHR <b>BSTAT</b>
    FROM BKPF
    INTO TABLE T_BKPF
    WHERE BUKRS = P_BUKRS
    AND BSTAT IN ( ' ' , 'A' ) " ' ' - Normal document, A - Parked doc
    AND BLART = P_BLART
    AND CPUDT IN SO_CPUDT " Selection screen input.
    IF NOT T_BKPF[] IS INITIAL.
    SELECT BUKRS BELNR GJAHR BUZEI EBELN AUGBL AUGBT
    INTO TABLE T_BSEG
    FOR ALL ENTRIES IN T_BKPF
    WHERE BUKRS = T_BKPF-BUKRS
    AND BELNR = T_BKPF-BELNR
    AND GJAHR = T_BKPF-GJAHR
    AND EBELN IN SO_EBELN " selection-screen input
    ENDIF.
    LOOP AT T_BKPF.
    Parked
      IF T_BKPF-BSTAT = 'A'.
        WRITE: / T_BKPF-BELNR , ' - Parked'.
    process the next record.
        CONTINUE.
      ENDIF.
    Check for Open / Closed.
      LOOP AT T_BSEG WHERE BELNR = T_BKPF-BELNR
                                   AND      BUKRS = T_BKPF-BUKRS
                                   AND      GJAHR = T_BKPF-GJAHR
                                   AND      AUGBL <> ' '.
        EXIT.
      ENDLOOP.
    If the return code is 0 then the document is cleared..
      IF sy-subrc = 0.
        WRITE: / T_BKPF-BELNR , ' - Closed'.
    Else the document is not cleared.
      ELSE.
        WRITE: / T_BKPF-BELNR , ' - Open'.
      ENDIF.
    ENDLOOP.
    Thanks,
    Naren

  • Open and closed cursor

    I have some doubts/questions .
    What is the difference between open and closed cursor?
    Are library cache locks same as parse locks?
    What is the difference between latch and mutex?
    I would be grateful if experts could answer these questions.
    Regards

    Almost correct. The terminology is however nor correct.
    Simplistically:
    The SQL engine receives a SQL. It attempts a soft parse first. This means looking for an existing cursor in the Shared Pool with the same SQL. This existing cursor can be in use by other sessions. It does not matter - if that cursor is in used (opend by other sessions), or not. It may not be in use at all and simply sitting there in the cache. If such a cursor is found, it is used for that session's SQL - and that session gets a cursor handle (reference/pointer) to that existing cursor.
    If the SQL engine does not find an existing cursor to use, it needs to create a brand new cursor in the Shared Pool. This is a hard parse. Again, the session receives a cursor handle for that new cursor created.
    And that is it.
    You now need to decide how to use that cursor handle. The cursor itself is a program. You have a handle to execute that cursor program. Via its bind interface you can input data to this cursor program. Then execute it and receive (fetch) output of that cursor program.
    So the ideal is to re-use the cursor handle again and again.
    Basic example: the following is not optimal as the same cursor is opened and closed, opened and closed, for each read from the file. A lot of soft parsing results.
    while not-eof( filehandle )   // read data from a file
      read file data into var1, var2
      open cursor for 'insert into testtab values( :1, :2)'   // create a cursor
      bind cursor :1 = var, :2 = var2  // bind values to cursor (for insert)
      exec cursor // do SQL insert
      close cursor 
    end whileThis is a lot better. A single cursor is used and executed again and again:
    open cursor for 'insert into testtab values( :1, :2)'   // create a cursor
    while not-eof( filehandle )   // read data from a file
      read file data into var1, var2
      bind cursor :1 = var, :2 = var2  // bind values to cursor (for insert)
      exec cursor // do SQL insert
    end while
    close cursor  In this case a single soft/hard parse - and the client uses that cursor handle to execute that cursor (insert data) program again and again.

  • I WORK WITH 20+ TABS OPEN, SOMETIMES IF A WINDOW IS ALSO OPEN AND I DON'T CLOSE IT FIRST, MY TABS DON'T REOPEN WHEN I RESTART FIREFOX-HOW CAN I FIND AND REOPEN?

    I understand how to set the restore tabs function and have done so. Usually my tabs reopen when I restart, but every once in a while if I have other windows (not tabs) open, and I forget to close them all first, before I close my main window, then when I reopen, my tabs are gone. I have gone to History and I can see the Restore Previous Session and Restore Closed Tabs commands, but they are not highlighted and they don't work. Please advise

    Try using the Firefox button > Exit when you go to close Firefox, that should save all your open windows / tabs.

Maybe you are looking for

  • Apple midi loops load incorect channel strip

    when i preview a midi apple loop in the loop browser it sounds fine, but when i drag it onto an inst. channel it loads up all the wrong channel strip info. it will load the Garage band sampler but the correct samples do not load. I have used Redmatic

  • Aperture 3 keeps asking for my serial numbers every time I launch it.

    I'm writing this not because I have this problem (though I did have it) but because I couldn't find a direct answer here in Apple Support Communities but did eventually solve it. After purchasing a new iMac to replace an aging MacBook Pro, I tried co

  • Can no Longer See Windows Shares

    My network has always connected no problem. Suddenly today I can no longer see the computers on my LAN. These are all windows shares. All I see are two alias' Llbrary and Servers. Mail and internet operates normally both by ethernet and wireless. I'v

  • Purchase order - Function - Confirmation

    Hi, I need find a function to simulate the confirmations in purchase order. The standard process is strange. Sometimes, reduces even though the total amount does not reach a confirmed total order.  It's like the standard randomly chose the quantity t

  • Need current MBA users' help

    Hi all, Im currently using a 2009 Macbook Pro 15 inch with core 2 duo 2.66 Ghz, and im thinking of switching to a MBA 13 inch... things that im concerning right now... 1. Weight (well, MBA does weight a lot less) 2. Heat (even watching HD videos prod