Problem with setLocation in a multi screen environment

hello,
I'm using a multiple screen environment (matrox graphicccard, 3 screens).
I've a application moving some JDialogs to screen-locations saved somewhen before. So far so good.
getLocation () for my left screen delivers me a negative value:
e.g. getLocation().x = -150
getLocation().y = 50
setLocation (-150, 50) works as expected.
Ok, but if I use the same application on another workstation using another matrox driver, the dialog disappears.
On my computer the 3 screens are handled as separate screens (the one in the middle as the mainscreen) => 3x1024x768
JDialogs on the left screen are given negative x-location values, JDialogs on the right screen have x-location values greater than 1024.
On the other computer the 3 screens are handled as one big desktop => 1x3072x1024 (as said: other matrox device).
My problem is now: if I transfer my locations stored in an external config-file somewhere else I can't restore the location on the other computer, seems clearly there is no negative screen with this graphiccard.
I tried following code
     public void setLocation (int x, int y)  {
          GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
          Dimension screenSize;
          try  {
               Rectangle screenS = new Rectangle ();
               GraphicsDevice[] gs = ge.getScreenDevices ();
               for (int j = 0; j < gs.length; j++) {
                    GraphicsDevice gd = gs[j];
                    GraphicsConfiguration[] gc = gd.getConfigurations();
                    for (int i=0; i < gc.length; i++) {
                         screenS = screenS.union(gc.getBounds());
               screenSize = screenS.getSize ();
          } catch (HeadlessException e) {
               screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
          if (x > screenSize.width) {
               x = screenSize.width-getSize().width;
          if (y > screenSize.height) {
               y = screenSize.height-getSize().height;
          super.setLocation (x, y);
but it doesn't help. By the way: I can't (!) check in this function for negative x-values because computer 1 allows negative x-values, computer 2 NOT.
I need something to get out if a x,y-location is situated in a viewable screencontent AND this should work on every computer.....
any help would be great
Thanks a lot

Has anyone solved this problem yet? I've tried several variants in the call to Frame's getMaximizeBounds() and cannot reliably get it to work. For one particular monitor setup (1280x1024, 1024x1280, and 1024x1280), I can find the magic numbers to make it maximize across both 1024x1280 monitors.
For my scenario, the left monitor is 1280x1224 and is primary, the other two are used to run the Java application. When maximized, it should take over the complete 2048x1280 space of both portrait monitors (middle and right monitors). When not maximized (in NORMAL mode), it the window takes over the space of the middle 1024x1280 monitor.
To make it work, I use the following call:
// x = 0, y = 1, width = 2304, and height = 1280
m_windowFrame.setMaximizedBounds(new Rectangle(0,1,2304, 1280));
- if "y" is 0, which I would expect should be ok, the maximize defaults to having as if I pass in null (it maximized to only one monitor).
- if "width" is the correct amount (2048), it doesn't use all the space of both portrait monitors. For some reason, if I use with width of the primary and the width of one portrait, it works.
This doesn't make a bit of sense why these number works. If someone can shed light on how this call works, I would very much appreciate it.
Thank you

Similar Messages

  • Problems with pricing in Internet Order screen(CRM E-Commerce 5.0)

    Good afternoon !
            We are using CRM 5.0 with CRM E-Commerce 5.0, and we are experiencing problems with pricing in the order screen.
            When we create an order and insert one item at this order, this item is processed and the price is calculated and shown correctly, both in the item and in the table of totals at the right corner(where is the Total Net Price, freight value, etc).
            If we change the quantity of this item, or insert more one item(with the same or other product), the price turns to zero, both in the item(s) and in the table of totals mentioned above. Also, in the table of totals, the freight value remains being calculated, even in this cases when the prices is turned to zero.
            What can be happening in this case ? What can I check to determine the cause and solve this problem ?
            Thank you in advance !
            Wilson

    Good afternoon !
            This problem was solved adjusting some parameters of partner determination.

  • Problem with InDesign CC redrawing the screen too slow while using Zoom tool

    Hello. I got a problem with InDesign CC redrawing the screen too slow while using Zoom tool. Sometimes it takes more than a secong to zoom in or out. However InDesign CS6, Photoshop CC, Illustrator CC works just fine. What could be the problem, videocard or something else? Below is my PC configuration: OS Windows 8 Pro (x64); processor Intel Core i7 2600k CPU 3,40GHz; video adapter NVIDIA GeForse GTS 450; monitor NEC PA271W (2560x1440).

    Yes it’s a bug. The trick is to select the tool and then left click the photo information strip and hold for a few seconds until you see the windows bar at the top of the screen (not responding)
    The lasso tool should then work normally.

  • Problem with checkbox in the selection screen

    Hi guys,
    I have a problem with the check box in the selection screen.When i select a check box then a field in the selection screen should be enabled for entering a value.Again if i unselect the checkbox then the field should be disabled for entering a value.I have written the code in at selection-screen output.
    The problem is when i select the check box ,the field is not enabled.But when i press enter after selecting the checkbox then the field is enabled for input.It is the same when i unselect the checkbox,after i press enter only the field is getting disabled.What could be the problem.Any suggestions please?
    Thanks.

    Hi d p
                 Please try this code . I think this code have some way that you would like.
    REPORT  zdownload_to_application_server.
    TABLES : caufvd, jest.
    I N C L U D E  P R O G R A M                                        *
    *INCLUDE znrpstnd.
    Selection Screen                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    PARAMETERS: p_outb RADIOBUTTON GROUP g1 USER-COMMAND outb DEFAULT 'X' ,
                p_inb RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETERS : p_werks LIKE caufvd-werks MODIF ID a.        " Plant   "OBLIGATORY
    SELECT-OPTIONS  :  s_auart FOR caufvd-auart MODIF ID a,       " Order Type
                       s_aufnr FOR caufvd-aufnr MODIF ID a.       " Order number
    PARAMETERS: p_path TYPE string DEFAULT 'C:\SchedulerInterface-OutboundTextFile\' MODIF ID a,
                p_actual AS CHECKBOX MODIF ID a.                  " Transfer Actual
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETERS : p_werks2 LIKE caufvd-werks MODIF ID b,   " Plant   "OBLIGATORY
                 p_path2 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
                 p_path3 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
                 p_sessio TYPE apqi-groupid MODIF ID b.   " BDC Session
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      IF p_outb EQ 'X'.   " Outbound --> Hide inbound
        LOOP AT SCREEN.
          "IF screen-name = '%BT02011_BLOCK_1000'.
          IF screen-group2 = 'BLK'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'A'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'B'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          "IF screen-name = '%BT01004_BLOCK_1000'.
          IF screen-group3 = 'BLK'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'A'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'B'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path2.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = 'C:\SchedulerInterface-InboundTextFile\'
          mask             = ',Text Files,.txt,All files,.*.'
        IMPORTING
          filename         = p_path2
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path3.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = 'C:\SchedulerInterface-InboundTextFile\'
          mask             = ',Text Files,.txt,All files,.*.'
        IMPORTING
          filename         = p_path3
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    TOP-OF-PAGE.
    START-OF-SELECTION.
    Regards
    Wiboon

  • Problem with uploading a file in Clustered Environment

    Hi,
    I have a problem with uploading a file in a clustered environment. I have an iview component which facilitates an upload action of an xml config file. The problem is that the upload of the modified XML file is reflected only in the central instance of the cluster and not in the dialog instances. The dialog instances hold the old config file.
    Is there any solution to upload the file to all the nodes in the cluster.
    Thanks
    Kiran

    Hi,
    This is a known problem with clustered environment. Remember that your portal component runs on just on dialog instance and it doesn't automatically have access to the other nodes.  However, there are some ways to get around this
    1. Use KM to store files. KM is a common repository for all application servers and therefore you needn't worry more
    2. Use an external batch oriented product (suresync/robocopy) to synch folders on the different DIs. You basically use your existing portal component, but there is a batch job which makes sure the upload folder is identical on all DIs (however, there is a slight delay depending on how often you run the batch job)
    3. Store the files on a shared disk directly from the portal component.
    Cheers
    Dagfinn

  • I have problem with Flash Player. Full screen doesn't work correctly. Turning off hardware acelleration helps but I want this option to work.

    Problem exist only on YouTube. When i want get full screen, I have black screen with audio. If I click few times full screen button it helps, but I want to go to full screen by one click.
    If i turn off hardware acceleration everything is ok but vids looks terrible.
    I have this problem with Flash Player 10. No 9 works good, but some websites wants no. 10

    Generaly FP works, but problem is that i must press few times full screen button. Now i have turn off hardware accelleration, but movies are quite bad.
    I have already installed newest graphic drivers but it didn't help.
    Everything was good unless Flash Player and Mozilla notificated that update is necessary :<

  • Problems with flashing images top of screen in CS4

    Hi there: I'm running Photoshop CS4 on an iMac 27 inch - Processor 3.4 GHz Intel Core i7 / Memory 8 GB 1333 MHz DDR3 / Graphics AMD Radeon HD 6970M 2048 MB / OS X 10.8.2.
    Ever since buying the Mac I've had problems with what I can only describe as flashing, bitmap images around the main image but not within it. This problem mostly occurs at the top of the screen (in the 'Rulers' area)
    but occassionally happens to the left and right of the image too. I've reached the limits of my 'tech' expertise and trashed the Preferences a couple of times but I still have the problem.
    I found one similar problem on the forums but not the same as it was all over the screen and required a complete reboot; I only need to quit Photoshop or ignore it - although it is very distracting!
    Their problem was the video card, could this be the same? Very grateful if anyone can shed light.

    willspring,
    Just to make sure: As I understand it, things worked in CS4, not only in earlier versions.
    To reset settings in Illy, you may Move the folder, but it may not solve the issue (the simpler but less thorough resetting being to Ctrl+Alt+Shift/Cmd+Option+Shift during startup).
    Have you made any changes, such as printer driver or whatever, between success and failure?

  • Problem with User Defined Second Selection Screen

    Hi Gurus,
                       I have a problem with the selection  screen selections. My requirement is that , User when he selects a check box on the main selection screen ( which is 1000) then at the at-selection event, another screen (whose number is 2000) will be called and it has some parameters to enter values. My problem is that how to get the values from this second screen and use them in the in my program. There is an execute button on the second selection screen and when i click that, nothing is happening.
                       Can anybody suggest me how to get the values from this screen which we called, and entered values in that screen. How to use these values and is there any way that we can do this.
    Thanks in advance for helping me out.
    Regards,
    Srinivas.

    Use <b>DYNP_VALUES_READ</b> FM to read the values from your dynpro screen...
    Like this...
    DATA: ls_dyname     TYPE d020s-prog,
            ls_dynumb     TYPE d020s-dnum.
    gt_dynpfields TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.
        ls_dynumb = '0112'.
        gt_dynpfields-fieldname = 'RF05A-NEWKO'.
        APPEND gt_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = ls_dyname
          dynumb               = ls_dynumb
        TABLES
          dynpfields           = gt_dynpfields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
    Greetings,
    Blag.

  • Multiple NI-Switch problems with PXI-2566 including blue screen

    We've been having intermittent problems with our PXI-2566 for months now.
    It seems like at some point the device and/or driver gets in a state where the open of the device causes a "blue screen." It traps in niswdk.dll (addr: ae9db759, base: ae9b7000, datestamp: 488e1ebe). The NI_Switch version on this system is 3.8.0f1. We now have the system configured to do a full kernel dump (as suggested in another thread).
    We've seen some bad viStatus'es (that we've haven't been able to decode) returned from NI-Switch:
    niSwitch_InitWithTopology - 0xBFFA6767 
    niSwitch_Connect - 0xBFFA4B50 -- I think this is the error that starts the downward spiral...
    niSwitch_Disconnect & niSwitch_Connect  - 0xBFFA495D (after 0xBFFA4B50 error)
    We get a blue screen the next time we start our app -- best guess is on the niSwitch_InitWithTopology ("foo", NISWITCH_TOPOLOGY_2566_16_SPDT, VI_FALSE, VI_TRUE, ) call. 
    We'd seen these kind of problems several months back & switched out to a different PXI-2566 & they went away, but now they've come back. Not sure how much the relays have been stressed, but even if they were don't see why we'd get these types of failures. The card passes self-test (from Max), but I get errors running the soft front panel & can't get to the relay counts:
    The system is running XP. The application uses MSVC, VISA, etc. This doesn't have anything to do with powering on/off the PXI chassis (another reason for blue screens).
     Ideas for fixes or debugging ???

    OK, 1 easy answer: the device name was set to "PXI1-NI2566" MAX allows this & we have no trouble using this name from our application, but apparently the "-" is invalid from the soft front panel app. So at least I can get to the switch counts now (and they're all <2000).
    We did get another 0xBFFA6767 this morning, follow shortly by a blue screen & have a kernel dump. Does that help in tracking this down?
    We've been running this application for many months. It's use of the 2566 is pretty simple and has not changed. It fails intermittently & we haven't been able to correlate the failure with any other events. The system in general has been pretty stable in terms of hardware & software changes. 
    There are a lot of devices in this system -- this is the only one we're having problems with. We have a rack-mounted PC interfacing to separate PXI & VXI chassis. Here are summaries from MAX & Device Manager: 
    Is this enough detail? The MXI interface card (MXI-4?) is currently PCIe, but had this same problem with the PCI version of the card 
    Can you be more specific about resetting after a 0xBFFA6767 to get closer to the fault?
    The "other blue screen" events I was referring to were in a different thread on the NI forums. Those problems had to do power cycling the PXI (or powering it on after the PC) -- we know from experience not do that.

  • Problem with my mac freezing and screen glitching?

    I have the 2013 15 inch retina Macbook Pro and I have been having a problem with it lately. Whenever I use safari, my browser is freezing constantly. Its is only when I use safari, not any other applications, such as Microsoft word. Normally, I wouldn't consider this a big issue, but it gets worse. When I don't navigate on my computer and let it rest for a minute or so (while running safari and sometimes other applications) this screen pops up:
    I have not dropped my computer, nor done anything to cause any damage to it. It hasn't moved from my desk and I am clueless as to what the problem could be.

    Hi patrickk9,
    Welcome to the Apple Support Communities!
    If you are continuing to see this type of display distortion on your MacBook, I would suggest working through the troubleshooting steps outlined in the attached article. 
    Apple computers: Troubleshooting issues with video on internal or external displays - Apple Support
    Best regards,
    Joe 

  • Problem with black vertical strip on screen

    I have a problem with a MB (oct2006): A black vertical band or strip is sitting on top of the screen keeping me from seeing about 20% of the screen. Along the left side of the strip there is a smaller strip that sometimes flickers. Also the wide black area sometimes turns to the color of the desktop. I would like to know if anybody have had this problem - am I looking at a software or hardware issue? And what can I do about it? Need help urgently!

    Hi Berit,
    There are two ways to tell if the band is software related:
    1.) Hook up an external display to the machine, does the problem exist on that screen as well?
    2.) When you first start up the computer, at the gray screen, does the band exist?
    It more than likely is a hardware/display issue and will need to be serviced by an Authorized Service Center. Do you have an Apple Store near you? I'd recommend having someone trained to identify problems like this take a look at it and advise you on what happened, how it can be fixed, what it might cost, etc.

  • Java API, problem with secondary keys using multi key creator

    Hi,
    I'm developing an application that inserts a few 100k or so records into a Queue DB, then access them using one of four Hash SecondaryDatabases. Three of these secondary dbs use a SecondaryMultiKeyCreator to generate the keys, and one uses a SecondaryKeyCreator. As a test, I'm trying to iterate through each secondary key. When trying to iterate through the keys of any of the secondary databases that use a SecondaryMultiKeyCreator, I have problems. I'm attempting to iterate through the keys by:
    1: creating a StoredMap of the SecondaryDatabase
    2: getting a StoredKeySet from said map
    3: getting a StoredIterator on said StoredKeySet
    4: iterate
    The first call to StoredIterator.next() fails at my key binding (TupleBinding) because it is only receiving 2 bytes of data for the key, when it should be getting more, so an Exception is thrown. I suspected a problem with my SecondaryMultiKeyCreator, so I added some debug code to check the size of the DatabaseEntries it creates immediately before adding them to the results key Set. It checks out right. I also checked my key binding like so:
    1: use binding to convert the key object to a DatabaseEntry
    2: use binding to convert the created DatabaseEntry back to a key object
    3: check to see if the old object contains the same data as the new one
    Everything checked out ok.
    What it boils down to is this: my key creator is adding DatabaseEntries of the correct size to the results set, but when the keys are being read back later on, my key binding is only receiving 2 bytes of data. For the one SecondaryDatabase that doesn't use a SecondaryMultiKeyCreator, but just a SecondaryKeyCreator, there are no issues and I am able to iterate through its secondary keys as expected.
    EDIT: New discovery: if I only add ONE DatabaseEntry to the results set in my SecondaryMultiKeyCreator, I am able to iterate through the keys as I would like to.
    Any ideas or suggestions?
    Thank you for your attention,
    -Justin
    Message was edited by:
    Steamroller

    Hi Justin,
    Sorry about the delayed response here. I have created a patch that resolves the problem.
    If you apply the patch to your 4.6.21 source tree, and then rebuild Berkeley DB, the improper behavior should be resolved.
    Regards,
    Alex
    diff -rc db/db_am.c db/db_am.c
    *** db/db_am.c     Thu Jun 14 04:21:30 2007
    --- db/db_am.c     Fri Jun 13 11:20:28 2008
    *** 331,338 ****
           F_SET(dbc, DBC_TRANSIENT);
    !      switch (flags) {
    !      case DB_APPEND:
                 * If there is an append callback, the value stored in
                 * data->data may be replaced and then freed.  To avoid
    --- 331,337 ----
           F_SET(dbc, DBC_TRANSIENT);
    !       if (flags == DB_APPEND && LIST_FIRST(&dbp->s_secondaries) == NULL) {
                 * If there is an append callback, the value stored in
                 * data->data may be replaced and then freed.  To avoid
    *** 367,388 ****
    -            * Secondary indices:  since we've returned zero from an append
    -            * function, we've just put a record, and done so outside
    -            * __dbc_put.  We know we're not a secondary-- the interface
    -            * prevents puts on them--but we may be a primary.  If so,
    -            * update our secondary indices appropriately.
    -            * If the application is managing this key's data, we need a
    -            * copy of it here.  It will be freed in __db_put_pp.
    -           DB_ASSERT(dbenv, !F_ISSET(dbp, DB_AM_SECONDARY));
    -           if (LIST_FIRST(&dbp->s_secondaries) != NULL &&
    -               (ret = __dbt_usercopy(dbenv, key)) == 0)
    -                ret = __db_append_primary(dbc, key, &tdata);
                 * The append callback, if one exists, may have allocated
                 * a new tdata.data buffer.  If so, free it.
    --- 366,371 ----
    *** 390,401 ****
                /* No need for a cursor put;  we're done. */
                goto done;
    !      default:
    !           /* Fall through to normal cursor put. */
    !           break;
    !      if (ret == 0)
                ret = __dbc_put(dbc,
                    key, data, flags == 0 ? DB_KEYLAST : flags);
    --- 373,379 ----
                /* No need for a cursor put;  we're done. */
                goto done;
    !      } else
                ret = __dbc_put(dbc,
                    key, data, flags == 0 ? DB_KEYLAST : flags);
    diff -rc db/db_cam.c db/db_cam.c
    *** db/db_cam.c     Tue Jun  5 21:46:24 2007
    --- db/db_cam.c     Thu Jun 12 16:41:29 2008
    *** 899,905 ****
           DB_ENV *dbenv;
           DB dbp, sdbp;
           DBC dbc_n, oldopd, opd, sdbc, *pdbc;
    !      DBT olddata, oldpkey, newdata, pkey, temppkey, tempskey;
           DBT all_skeys, skeyp, *tskeyp;
           db_pgno_t pgno;
           int cmp, have_oldrec, ispartial, nodel, re_pad, ret, s_count, t_ret;
    --- 899,905 ----
           DB_ENV *dbenv;
           DB dbp, sdbp;
           DBC dbc_n, oldopd, opd, sdbc, *pdbc;
    !      DBT olddata, oldpkey, newdata, pkey, temppkey, tempskey, tdata;
           DBT all_skeys, skeyp, *tskeyp;
           db_pgno_t pgno;
           int cmp, have_oldrec, ispartial, nodel, re_pad, ret, s_count, t_ret;
    *** 1019,1026 ****
            * should have been caught by the checking routine, but
            * add a sprinkling of paranoia.
    !      DB_ASSERT(dbenv, flags == DB_CURRENT || flags == DB_KEYFIRST ||
    !            flags == DB_KEYLAST || flags == DB_NOOVERWRITE);
            * We'll want to use DB_RMW in a few places, but it's only legal
    --- 1019,1027 ----
            * should have been caught by the checking routine, but
            * add a sprinkling of paranoia.
    !       DB_ASSERT(dbenv, flags == DB_APPEND || flags == DB_CURRENT ||
    !             flags == DB_KEYFIRST || flags == DB_KEYLAST ||
    !             flags == DB_NOOVERWRITE);
            * We'll want to use DB_RMW in a few places, but it's only legal
    *** 1048,1053 ****
    --- 1049,1107 ----
                     goto err;
                have_oldrec = 1; /* We've looked for the old record. */
    +      } else if (flags == DB_APPEND) {
    +           /*
    +            * With DB_APPEND, we need to do the insert to populate the
    +            * key value. So we swap the 'normal' order of updating
    +            * secondary / verifying foreign databases and inserting.
    +            *
    +            * If there is an append callback, the value stored in
    +            * data->data may be replaced and then freed.  To avoid
    +            * passing a freed pointer back to the user, just operate
    +            * on a copy of the data DBT.
    +            */
    +           tdata = *data;
    +           /*
    +            * If this cursor is going to be closed immediately, we don't
    +            * need to take precautions to clean it up on error.
    +            */
    +           if (F_ISSET(dbc_arg, DBC_TRANSIENT))
    +                dbc_n = dbc_arg;
    +           else if ((ret = __dbc_idup(dbc_arg, &dbc_n, 0)) != 0)
    +                goto err;
    +
    +           pgno = PGNO_INVALID;
    +
    +           /*
    +            * Append isn't a normal put operation;  call the appropriate
    +            * access method's append function.
    +            */
    +           switch (dbp->type) {
    +           case DB_QUEUE:
    +                if ((ret = __qam_append(dbc_n, key, &tdata)) != 0)
    +                     goto err;
    +                break;
    +           case DB_RECNO:
    +                if ((ret = __ram_append(dbc_n, key, &tdata)) != 0)
    +                     goto err;
    +                break;
    +           default:
    +                /* The interface should prevent this. */
    +                DB_ASSERT(dbenv,
    +                    dbp->type == DB_QUEUE || dbp->type == DB_RECNO);
    +
    +                ret = __db_ferr(dbenv, "DBC->put", 0);
    +                goto err;
    +           }
    +           /*
    +            * The append callback, if one exists, may have allocated
    +            * a new tdata.data buffer.  If so, free it.
    +            */
    +           FREE_IF_NEEDED(dbenv, &tdata);
    +           pkey.data = key->data;
    +           pkey.size = key->size;
    +           /* An append cannot be replacing an existing item. */
    +           nodel = 1;
           } else {
                /* Set pkey so we can use &pkey everywhere instead of key.  */
                pkey.data = key->data;
    *** 1400,1405 ****
    --- 1454,1465 ----
      skip_s_update:
    +       * If this is an append operation, the insert was done prior to the
    +       * secondary updates, so we are finished.
    +       */
    +      if (flags == DB_APPEND)
    +           goto done;
    +      /*
            * If we have an off-page duplicates cursor, and the operation applies
            * to it, perform the operation.  Duplicate the cursor and call the
            * underlying function.

  • Problem with printing graph larger than screen size in labview6 (plots are shopped).

    I have attached with my message the report I try to print. It is a Labview 6 vi.
    I had no problem with Labview 5. But with Labview 6, the plots are shopped (all the rest of the report is correct). What is printed is not what I see.
    The graph is intentionnaly built very large, then rescale to fit page, in order to improve the print quality of the plots. I repeat it, it worked fine with Labview 5.
    Thanks if you can help.
    Lionel.
    Attachments:
    Print_of_large_scale_graph.vi ‏284 KB

    Hi Lionel,
    I experienced a similar problem days ago: re-compiling a vi from LV 5.1 to LV 6.0.2 its front panel could not be printed anymore; no error, just a blank sheet.( The mass compile procedure did not reported any error).
    The only way to get out from this headache was to re-build the vi in LV 6.0.2, I simply selected all its diagram and copied it in a new vi, saved it and I got print-outs!
    Try it.
    Good luck,
    Alberto

  • Problems with iMac 21.5 inch screen

    Dear all,
    As you can see on the pictures I have the following problems with my iMac. I get spots if I have to drag folder for example or when I open a picture in Preview. It is a normal background picture but if I open it in preview I get dots and since Maveriks it has become more worse. I get real weird lines. 
    I have the following iMac 21.5 inch:
    - 21.5-inch, Mid 2010
    - 3.6GHz Intel Core i5
    - 8 GB 1333 MHz DDR3
    - ATI Radeon HD 5670 512 MB
    I have already tried:
    - New internal memory;
    - Reinstall OS X;
    Apple can not really help. They also do not know what is problem. I also have no apple warranty.
    Would anyone help me with this? You are my last attempt.
    Thanks in advance.

    My guess is your GPU (graphics processing unit) is failing. Take the machine to your local Apple Store and have a Genius examine it or take it to an Apple Authorized Service Provider (AASP). Please click https://locate.apple.com/country  to begin looking for an AASP in your area.

  • Problem with X -config (freeze + black screen)

    Hi, everyone. I'm a newbie in linux, so dont punch me .
    I was following the beginners guide & after X -config /root/xorg.conf.new got freeze + blackscreen (alt + ctrl + bckspc or alt + Fn dont works).
    I have created /X11/xorg.conf & can start X server, but X -config /root/xorg.conf.new or /etc/X11/xorg.conf gives black screen (with signal).
    My VGA is HD3850.
    Any ideas how i can fix it?
    Here is my xorg.conf
    Section "ServerFlags"
    Option "AllowEmptyInput" "off"
    EndSection
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Razer" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    EndSection
    Section "InputDevice"
    Identifier "Razer"
    Driver "mouse"
    Option "Name" "Razer Lachesis Optical Mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "Buttons" "9"
    Option "Resolution" "1250"
    Option "ZAxisMapping" "4 5"
    Option "ButtonMapping" "1 2 3 6 7 8 9"
    Option "Emulate3Buttons" "true"
    Option "SampleRate" "1000"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "microsoftmult"
    Option "Xkblayout" "us,ru"
    EndSection
    Section "Module"
    Load "glx"
    Load "dri"
    Load "drm"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    HorizSync 31.0 - 81.0
    VertRefresh 56.0 - 75.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "radeonhd"
    VendorName "ATI Technologies Inc"
    BoardName "RV670PRO [Radeon HD 3850]"
    Option "AccelMethod" "exa"
    Option "DRI" "on"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1280x1024" "1024x768" "800x600"
    EndSubSection
    EndSection
    Section "Extensions"
    Option "RENDER" "enable"
    Option "DAMAGE" "enable"
    Option "Composite" "enable"
    EndSection
    /var/log/Xorg.0.log contain no errors or warnings (except ACPI & font paths)
    Thx 4 help.
    P.S Can add log if it helps
    P.P.S Its one of my xorg.conf files, also i've used variant 4 xf86-video-ati
    Last edited by InsaneDevice (2010-02-27 06:32:32)

    My english is fine (i read well at least)  .
    At first message i said
    I have created /X11/xorg.conf & can start X server...
    I =can= start x server --- its mean that startx works fine & i can see 3 windows with clock . And if you mean that i dont want use x -config, then for what all this manipulations with reinstalling was?
    Besides "Xorg -configure" & "x -config /etc/xorg.conf" are different things for me, because one create the basic config, while second test this config. So i thought you mean that i have to create it from scratch without using any commands
    ... Damn.. i just have read english & russian beginner guides. Russian says: "after installing xorg u have to create conf file, using Xorg -configure, then test it with command X -config /root/xorg.conf.new & IF IT WORK - copy to /etc/X11/xorg.conf. I didnt find that in english version .
    Well, thank you for your patient & help . I think, that problem is solved (i think - say me if i wrong)
    But i still want to know, why x -config /etc/xorg.conf give me that black screen + freeze, so if anybody knows - plz, message me.
    Last edited by InsaneDevice (2010-03-01 07:36:42)

Maybe you are looking for