Dragged attachment appears on wrong monitor

I have two monitors attached to my new 2012 Mac Pro running Mountain Lion (10.8.1).  For the first time that I can recall in years of using a multiple monitor setup, I have a very odd little problem.
When I open Mail or Safari and drag something from the window to the desktop of the 2nd monitor, it appears on the desktop of the 1st monitor.  If I drag an item to the desktop of the 1st monitor, it just appears there fine.  Even weirder, it appears that the position is preserved relative to the screen.  If I drag to the lower left of the second monitor, the item appears on the lower left of the first monitor! 
In any case, this behavior is irritating since I usually have mail open in a large window, so dragging to the desktop on the second monitor gave me a way of having things visible and on the desktop.
Any ideas what could cause something dragged to the second monitor to appear on the first monitor's desktop?

This from an older post:
I wrestled with that a while ago, did some experiments, and came up with this definition:
The Dock will be displayed on the specified edge of the Main (MenuBar) Display EXCEPT when a secondary display extends that edge.
In the previous discussion, the display that extended the desktop and caused the trouble was used in a fixed way, and the poster did not often drag things to it or split windows across the screens there. (As you seem to be doing.)
In that case, you can LIE to the arrange pane, and tell it the left display is up and to the left, or down and to the left, and it will no longer properly extend that edge of the main display.Then the Dock will go back to the left edge of the main display. The side effect is that you will not be able to drag things to the left display in a straight line.

Similar Messages

  • Camera Raw window appears in wrong monitor

    About a week ago, the camera raw window started appearing in the secondary monitor of my pair and I cannot stop it from starting there. It appears with the title bar up off the top of the screen and I can just barely grab the top corner of it from the edge of the primary monitor and drag it out where I can move it.
    Prior to this, if I opened a raw file directly into CS3, it would start in the primary where CS3 is placed or if I right clicked a raw file in Bridge and chose open in CR, then it would open in the secondary monitor where Bridge is located. Now I don't get the choice. This was happening before the latest updates which all appear okay. System is a PC by the way.
    I would appreciate any assistance.
    Col

    Okay, here's a lesson for us all. I had accidentally hit the F key (Full screen mode toggle) whilst in there and it fills the screen with no hope of getting to the edges. Once back in normal mode all is well again!!!!! Embarassed
    Thanks for the help
    Col

  • Login screen appears on wrong monitor

    This problem started when I upgraded from Mavericks to Yosemite 10.10.2. It persists on 10.10.3
    I have two monitors; the main one is 26", the other is 17". Both are NEC. The main monitor connects with a DVI-to-Mini display port adapter. The 2nd with a VGA to DVI adapter. Video card is the stock AMD 5770 with one DVI two mini display port connectors.
    On startup, the Apple logo appears on my main monitor, as expected. Then the login screen comes up on the 2nd monitor. Once I'm logged in, the main monitor becomes the primary display again (according to my user account display preferences).
    I've checked all the preferences, reset the NVram and the SMC, and tried plugging the the main monitor into the other display port. Nothing changes this.
    It's not a big problem, but it's annoying.
    Any thoughts?

    You can change the arrangement of the displays, and assign a primary one in the Displays system preferences (done by dragging the menu bar to the preferred primary display). However, this will not change what display is identified first by your hardware. If you have FileVault enabled, then the login screen you see will be loaded before the operating system is loaded. This login screen simply mimics the OS X login screen, but is in fact stored elsewhere on your disk and used to unlock it. As a result, this login screen will be shown on the display that is identified as the primary one in hardware, and then when OS X loads this may switch depending on your settings in the Displays preferences. Your options here are to either move your monitors on your desk, swap their connections to your Mac, or adjust the primary one along with the arrangement of them in the Displays system preferences (or a combination of these three) to find a setup that works as you want.
    1. When you initially boot and see the login screen, note the connection of this monitor to your Mac. This port is the primary one.
    2. Connect this port to the display you want to be the primary one (to show your login window, etc.)
    3. Once booted to OS X, go to the displays system preferences and ensure the menu bar icon is dragged to this monitor so OS X identifies it as the primary one.
    4. Adjust your display's arrangement accordingly in these system preferences.

  • Now I can start my Mac Pro only in "secure mode." I'm still appears on all monitors a series of bands such as seen in the attached file. Someone can give me a diagnosis? Thank you.

    Now I can start my Mac Pro only in "secure mode."
    I'm still appears on all monitors a series of bands such as seen in the attached file.
    Someone can give me a diagnosis?
    Thank you.

    The attached file is not showing.
    In Safe/Secure Mode many Drivers are not loaded. When your computer works in Safe Mode, but not regular mode, two types of problems are implicated:
    1) Third-party kernel extensions. a conflict with some part of Mac OS X means that when those extensions load, your Mac can not run.
    2) Failed graphics card. Since the Driver for the display is not loaded, the display in Safe Mode uses a very simple built-in Driver. In regular mode, once the driver is loaded, all parts of the graphics card must be working, or you could get bands of color on the display (which is just what you reported).
    Which Model Mac Pro Tower or MacBook Pro is this?

  • FileSelectPopup window on wrong monitor

    Hello all,
    My application is used for display testing and calibration purposes. On the PC where my application is running, the second DVI output is attached to the display to be tested. The second display is driven by enabeling the "Extend my Windows desktop onto this monitor" option in the Display Properties window.
    Problem: at some systems, popup windows, like a FileSelectPopup window appear on the second monitor. Since this display is not always visible to the operator, it looks like the application hangs and has to be terminated the hard way (Ctrl-Alt-Del).
    How can I make sure that popup windows ALWAYS appear on the monitor where my application is running?
    Thanks,
    Wim
    GEMIDIS - Innovating Display Technology
    HQ Ghent, Belgium

    Rich, 
    I'm not entirely sure what your current problem is, so I'll explain the current behavior in 2010 and earlier, and then hopefully give you some tips. In 2010 and earlier when you launch a FileSelectPopup the location and current monitor of the dialog is stored in the registry by Windows. Windows handles this positioning for a certain number of recently launched applications. As long as that information is stored in the registry the file/directory popups will appear in the last location and monitor that you dragged them to, regardless of what monitor is actually launching them. This seems to be the problem you're running into. Unfortunately CVI has no control over where this dialog will appear as it's a dialog that Windows owns.
    If you've tried the CVI 2012 beta you'd have seen that the behavior has changed. Now what happens is that when File/Directory Popups are launched they will always appear on the monitor of the panel that launched them. If you drag the popup to a new location, Windows will remember that location and continue to display the popup in that location, so long as the dialog is always launched from the same panel and that panel has not moved. If you move the panel which is calling the popup, then the next time the popup is displayed it will appear on the monitor of the panel that launched it. This should fix the issue you are having.
    Unfortunately there's no good workaround for this in CVI 2010 or earlier because CVI doesn't technically "own" those dialogs. I looked into whether you could just delete the settings from the registry, but Windows doesn't make that easy.  Those values are stored on my machine under:
    [HKEY_USERS\S-1-5-21-4170831575-233351449-3708798867-15220\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{CEBFF5CD-ACE2-4F4F-9178-9926F41749EA}\Count]
    Every individual process name has it's own entry so theoretically, you could search for the name of your executable and delete that key, but it seems that Windows scrambles the names using a ROT13. My guess is that they're doing this so that users don't edit these entries themselves, and bad things might occur if you try.
    I'm sorry we don't have a better solution for you currently, but at least the problem has already been fixed going forward.
    Kevin B.
    National Instruments

  • Pages always opens a new window on the wrong monitor

    Is there anyway to fix this I don't understand why always open on the wrong monitor I can't seem to open on the correct one

    OS X 10.8.4:
    Drag the window back to the correct monitor and position it where you want it to open. Make certain that you actively save and close your documents before quitting Pages.
    In System Preferences > General, check the box adjacent to Close windows when quitting an application.
    Your Shutdown, Restart, and Logout dialogs should have the “Reopen windows when logging back in” unchecked.
    If this does not correct the problem, select all contents (command+A) of the following folder only, and then use the right button to select the menu item, “Move to Trash.”
    /Users/yourlogin-name/Library/Caches/
    Also, drag the following file to the Trash as well:
    /Users/yourlogin-name/Library/Preferences/com.apple.iWork.Pages.plist
    Empty the Trash. (You may have to reboot to fully empty the Trash.)
    The next time you launch Pages, the application window will open where you want it.

  • HT3235 MacBook Air is connected to an external monitor via Apple Mini DisplayPort to VGA Adapter.  At one time it worked just fine, now when I plug the monitor into the Mac, the mac screen goes blue and nothing appears on the monitor.

    This monitor works, on a PC.  Could the connector be bad or the port on the Mac Air?  Any ideas?

    You have the display set in Extended Desktop mode with the MacBook as the main screen. In System Preferences>Display on the MacBook screen there should be an Arrangement tab when you have the MacBook hooked up to the TV and both screens working. When you click the Arrangement tab do you see two monitors side by side? One of them will have a Menu Bar at the top. Just click on the Menu Bar and drag it to the second monitor. That will make the second monitor your main screen.
    You can now use your MacBook in Clamshell Mode with a wired or Bluetooth keyboard and mouse.  http://support.apple.com/kb/HT3131 When you disconnect from the TV your Menu Bar will automatically change back to the MacBook.
    Or if you want to use the MacBook’s keyboard and trackpad to work on the MacBook screen while showing it on a TV you can check the Mirror Display box on the lower left hand side of the Arrangement tab under the two monitors box.
    If you can’t see your MacBook screen because it’s broken or the backlight is off use the F7 key to switch between Extended Desktop and Mirror Display.
    (From the MacBook User Guide: F7 (video mode toggle key) Switch between dual-display mode (extending the desktop across the built-in display and an external display) and video-mirroring mode (presenting the same information on both displays).

  • How to make dock appear in all monitors, and keep new windows to same monit

    I've got an unusual setup: two screens at my desk, and another one in front of a recliner nearby so that it is not physically adjacent to the other two. This means that when the cursor moves off the side of two of the monitors and goes to the third one, I can't see it. I don't want to mirror all the displays because half the time I use the two adjacent ones from the desk, and sometimes I just want to use the one separate one. Can someone tell me if it's possible to
    1) make the same dock appear in all monitors? I want access to the dock no matter which monitor I'm looking at. Is there a utility or hack that will give me a dock in each screen?
    2) any way to have apps open and create new windows in whatever monitor I'm currently working? it's very annoying that sometimes I run a app and it throws up a window in the monitor I'm not looking at. Any way to keep it to the set of two or to the 3rd one, depending on which I'm using at the time?
    thank you!
    Mike

    Hi Mike, Might have a look at the bottom of this page for Dock-It 2.6.1 for Mac OS X 10.5.x and earlier...
    http://www.macupdate.com/info.php/id/8288/dock-it
    As far as the other problems, I'd try Mirroring #1 & #3.
    Move Off-Screen Windows to the Main Screen...
    http://zach.in.tu-clausthal.de/software/
    http://www.macosxhints.com/article.php?story=2007102012424539
    http://www.jonathanlaliberte.com/2007/10/19/move-all-windows-to-your-main-screen /

  • Photos keep appearing the wrong way round in slideshow!

    Photos which I imported from my old macbook (running 10.4) onto my new imac (10.5.8) keep appearing the wrong way round or stretched out when I play them as part of a slideshow even though in the library they appear fine. Can anyone tell me how to fix this please?
    Thanks

    Yes the plist file is important, but next time you start iPhoto it will create a brand new one.
    This file records various user settings - like the background colour, for instance. If you trash it then when iPhoto re-creates it it simply returns things to the factory default settings.
    Trashing the plist file is troubleshooting 101.
    Also don't understand what you mean by "If you've moved your library you'll need to point iPhoto at it again"
    By default, your iPhoto Library lives in your Pictures Folder. That's where iPhoto looks for it. If you've moved the Library - and I'm guessing you haven't - then you need to tell iphoto where you moved it to. Why? Because that's a setting recorded in the plist file.
    Regards
    TD

  • Iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?

    iphone ios5..I upgraded to ios5 on my iphone 4 and in the demo video on the Apple website it shows a cute animation screen with the user dragging what appears to be balloons on a string how do you access this screen?
    Not sure if this is a game or app or not...it shows nothing about it and explains nothing about it...but it is there on the demo video on the apple website for the add to upgrade to ios 5...it shows the user dragging threads and the little icon monster at the bottom of the screen catches them

    Yea thats a game called "Cut the Rope" and it can be found in the App Store for $0.99 or you can buy the Lite version for free.

  • I have two monitors on my Mac. Running FF3.6.16 new windows now want to open on the wrong monitor. How do I get FF to open on the main display?

    I have an eMac with a second display. I am running OS X 10.4.11 (Tiger) and Firefox 3.6.16. Everything was working fine until the other day I opened a second window in Firefox and dragged it to my secnd monitor. I later closed it. Since then all New Window requests, including when starting Firefox always open on the second monitor. How do I tell Firefox I want my main monitor has the primary monitor?

    It has nothing to do with the Mac, but more with the software exporting the displays on the PC.  A typical VNC server will generally only export the primary monitor.
    What PC software are you using to export the display(s), and what Mac software are you using to view the PC displays?  That may help someone come up with a workable solution for you (or not ).

  • JMS Adapter not appearing in Adapter Monitor, How to Fix ?

    JMS Adapter not appearing in Adapter Monitor screen when choosing "Only Installed and Started Adapters" option. What need to do to install and start the JMS adapter.
    Thanks in advance

    Hi,
    Only JMS adapter is not seen in the adapter monitor or other adapters are not listed in the same.
    Have you checked whether the JMS drivers are installed on XI or not?
    First would be to deploy drivers for JMS scenarios - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Thnx
    Chirag

  • Email sent...but attachment appears in body

    Hi,
    I am trying to send emails with attachments in pl/sql.
    I heard it can be done.
    I tried it, the code runs wiithout erros.
    But i cannot see the actual attachment.
    The content of the attachment appears in the body of the email.
    In the email i see this:
    This is an automated email. Please do not reply!
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="-----AABCDEFBBCCC0123456789DE"
    This is a multi-part message in MIME format.
    -------AABCDEFBBCCC0123456789DE
    Content-Type: text/html;US-ASCII
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="your_file_name.csv"
    SYS,ICOL$,TABLE,2009-06-19 15:35:34
    SYS,I_USER1,INDEX,2009-06-19 15:35:34
    SYS,CON$,TABLE,2009-06-19 15:35:34
    SYS,UNDO$,TABLE,2009-06-19 15:35:34
    SYS,C_COBJ#,CLUSTER,2009-06-19 15:35:34
    SYS,I_OBJ#,INDEX,2009-06-19 15:35:34
    SYS,PROXY_ROLE_DATA$,TABLE,2009-06-19 15:35:34
    SYS,I_IND1,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF2,INDEX,2009-06-19 15:35:34
    SYS,I_PROXY_ROLE_DATA$_1,INDEX,2009-06-19 15:35:34
    SYS,FILE$,TABLE,2009-06-19 15:35:34
    SYS,UET$,TABLE,2009-06-19 15:35:34
    SYS,I_FILE#_BLOCK#,INDEX,2009-06-19 15:35:34
    SYS,I_FILE1,INDEX,2009-06-19 15:35:34
    SYS,I_CON1,INDEX,2009-06-19 15:35:34
    SYS,I_OBJ3,INDEX,2009-06-19 15:35:34
    SYS,I_TS#,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF4,INDEX,2009-06-19 15:35:34
    SYS,IND$,TABLE,2009-06-19 15:35:34
    -------AABCDEFBBCCC0123456789DE--
    The part between the boundry
    (-------AABCDEFBBCCC0123456789DE--) should come as an attachment.
    Code for attachment:
    PROCEDURE R040_attach
    IS
    v_clob clob := empty_clob();
    c_mime_boundary VARCHAR2(256) := '-----AABCDEFBBCCC0123456789DE';
    v_len INTEGER;
    v_index INTEGER;
    BEGIN
    FOR x IN (SELECT *
    FROM all_objects
    WHERE ROWNUM < 20)
    LOOP
    v_clob :=
    v_clob
    || x.owner
    || ','
    || x.object_name
    || ','
    || x.object_type
    || ','
    || TO_CHAR(x.created, 'yyyy-mm-dd hh24:mi:ss')
    || UTL_TCP.crlf;
    END LOOP;
    UTL_SMTP.write_data(c, 'MIME-Version: 1.0' || UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'Content-Type: multipart/mixed; boundary="' || c_mime_boundary || '"' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'This is a multi-part message in MIME format.' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || UTL_TCP.crlf);
    --UTL_SMTP.write_data(c, 'Content-Type: text/html;US-ASCII' || UTL_TCP.crlf);
    --Content-Type: image/jpeg
    UTL_SMTP.write_data(
    c,
    'Content-Type: text/html;US-ASCII'
    || UTL_TCP.crlf
    || 'Content-Transfer-Encoding: base64'
    || UTL_TCP.crlf
    -- Set up attachment header
    UTL_SMTP.write_data(
    c,
    'Content-Disposition: attachment; filename="'
    || 'your_file_name.csv'
    || '"'
    || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    -- Write attachment contents
    v_len := DBMS_LOB.getlength(v_clob);
    v_index := 1;
    WHILE v_index <= v_len
    LOOP
    UTL_SMTP.write_data(c, DBMS_LOB.SUBSTR(v_clob, 32000, v_index));
    v_index := v_index + 32000;
    END LOOP;
    -- End attachment
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || '--' || UTL_TCP.crlf);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR( -20110, 'Dwx0110 - R030 - ' || SQLERRM );
    END R040_attach;
    Any help would be appreciated.
    Thank you.

    Hi,
    there are some threads you may find interesting:
    UTL_SMTP mail with attachment( Problem in attaching zip file)
    UTL_SMTP or UTL_MAIL
    Regards.
    Al

  • Email is sent correctly, but attachment appears in the body

    Hi,
    I am trying to send emails with attachments in pl/sql.
    I heard it can be done.
    I tried it, the code runs wiithout erros.
    But i cannot see the actual attachment.
    The content of the attachment appears in the body of the email.
    In the email i see this:
    This is an automated email. Please do not reply!
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="-----AABCDEFBBCCC0123456789DE"
    This is a multi-part message in MIME format.
    -------AABCDEFBBCCC0123456789DE
    Content-Type: text/html;US-ASCII
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="your_file_name.csv"
    SYS,ICOL$,TABLE,2009-06-19 15:35:34
    SYS,I_USER1,INDEX,2009-06-19 15:35:34
    SYS,CON$,TABLE,2009-06-19 15:35:34
    SYS,UNDO$,TABLE,2009-06-19 15:35:34
    SYS,C_COBJ#,CLUSTER,2009-06-19 15:35:34
    SYS,I_OBJ#,INDEX,2009-06-19 15:35:34
    SYS,PROXY_ROLE_DATA$,TABLE,2009-06-19 15:35:34
    SYS,I_IND1,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF2,INDEX,2009-06-19 15:35:34
    SYS,I_PROXY_ROLE_DATA$_1,INDEX,2009-06-19 15:35:34
    SYS,FILE$,TABLE,2009-06-19 15:35:34
    SYS,UET$,TABLE,2009-06-19 15:35:34
    SYS,I_FILE#_BLOCK#,INDEX,2009-06-19 15:35:34
    SYS,I_FILE1,INDEX,2009-06-19 15:35:34
    SYS,I_CON1,INDEX,2009-06-19 15:35:34
    SYS,I_OBJ3,INDEX,2009-06-19 15:35:34
    SYS,I_TS#,INDEX,2009-06-19 15:35:34
    SYS,I_CDEF4,INDEX,2009-06-19 15:35:34
    SYS,IND$,TABLE,2009-06-19 15:35:34
    -------AABCDEFBBCCC0123456789DE--
    The part between the boundry
    (-------AABCDEFBBCCC0123456789DE--) should come as an attachment.
    Code for attachment:
    PROCEDURE R040_attach
    IS
    v_clob clob := empty_clob();
    c_mime_boundary VARCHAR2(256) := '-----AABCDEFBBCCC0123456789DE';
    v_len INTEGER;
    v_index INTEGER;
    BEGIN
    FOR x IN (SELECT *
    FROM all_objects
    WHERE ROWNUM < 20)
    LOOP
    v_clob :=
    v_clob
    || x.owner
    || ','
    || x.object_name
    || ','
    || x.object_type
    || ','
    || TO_CHAR(x.created, 'yyyy-mm-dd hh24:mi:ss')
    || UTL_TCP.crlf;
    END LOOP;
    UTL_SMTP.write_data(c, 'MIME-Version: 1.0' || UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'Content-Type: multipart/mixed; boundary="' || c_mime_boundary || '"' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(
    c,
    'This is a multi-part message in MIME format.' || UTL_TCP.crlf
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || UTL_TCP.crlf);
    --UTL_SMTP.write_data(c, 'Content-Type: text/html;US-ASCII' || UTL_TCP.crlf);
    --Content-Type: image/jpeg
    UTL_SMTP.write_data(
    c,
    'Content-Type: text/html;US-ASCII'
    || UTL_TCP.crlf
    || 'Content-Transfer-Encoding: base64'
    || UTL_TCP.crlf
    -- Set up attachment header
    UTL_SMTP.write_data(
    c,
    'Content-Disposition: attachment; filename="'
    || 'your_file_name.csv'
    || '"'
    || UTL_TCP.crlf
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    -- Write attachment contents
    v_len := DBMS_LOB.getlength(v_clob);
    v_index := 1;
    WHILE v_index <= v_len
    LOOP
    UTL_SMTP.write_data(c, DBMS_LOB.SUBSTR(v_clob, 32000, v_index));
    v_index := v_index + 32000;
    END LOOP;
    -- End attachment
    UTL_SMTP.write_data(c, UTL_TCP.crlf);
    UTL_SMTP.write_data(c, '--' || c_mime_boundary || '--' || UTL_TCP.crlf);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR( -20110, 'Dwx0110 - R030 - ' || SQLERRM );
    END R040_attach;
    Any help would be appreciated.
    Thank you.

    This is the forum for Oracle's SQL Developer tool, not for general SQL and PL/SQL questions.
    Questions like this will get a better response in the PL/SQL forum.
    Here is some code I have used to send emails with attachments.
      utl_smtp.open_data(conn);
      utl_smtp.write_data(conn,'Subject:'||subject);
       utl_smtp.write_data( conn, utl_tcp.crlf );
      utl_smtp.write_data( conn, 'Content-Disposition: attachment; filename="attachment"' || utl_tcp.crlf);
        utl_smtp.write_data( conn, 'Content-Transfer-Encoding: base64' || utl_tcp.crlf );
        utl_smtp.write_data( conn, utl_tcp.crlf );
        v_length := dbms_lob.getlength(attachment);
        <<while_loop>>
        while v_offset < v_length loop
          dbms_lob.read( attachment, v_buffer_size, v_offset, v_raw );
          utl_smtp.write_raw_data( conn, utl_encode.base64_encode(v_raw) );
          utl_smtp.write_data( conn, utl_tcp.crlf );
          v_offset := v_offset + v_buffer_size;
        end loop while_loop;
        utl_smtp.write_data( conn, utl_tcp.crlf );
      utl_smtp.write_data(conn,utl_tcp.crlf||utl_tcp.crlf);
      utl_smtp.write_data(conn,content);
      utl_smtp.write_data(conn,utl_tcp.crlf||utl_tcp.crlf);
      utl_smtp.close_data(conn);
    content is a varchar holding the body of the email.
    attachment is a blob holding the attachment.
    Edited by: Jim Smith on Nov 2, 2012 9:24 AM

  • Java swing popupmenu / context menu does not appear in secondary monitor

    Main screen left
    second screen right
    swing portal application is visible on two screens.
    If you open a context menu (right mouse) on the right screen, the context menu open on the left (Main) screen instead of the right.

    Thank you very much for the replying.
    The below are my use cases :
    1. JDK 7 used.
    2. OS - Ubuntu/windows XP/2008
    3. Tested with extending more than 1 monitors, i.e. Laptop / primary monitors are attached with other secondary monitors attached and then running swing portal        application.
    4. This happens when you use "Extended Desktop" with two screens.
        Main screen left
        Second screen right
        Portal is visible on two screens.
        Open a context menu (right mouse) on the right screen, the context menu open on the left (Main) screen instead of the right
    The below is the sample of code of the file that actually open up the popups. The bold italics methods are the call hierarchy that are responsible to finally call the showPopupMenu().
    private synchronized void handleMouseEvent( final IDirNodeMouseEvent e ) {
            if ( e.getMEvent().isPopupTrigger() ) {
                Thread thread = new Thread(
                        new Runnable() {
                            public void run() {
                                JNDITreeNode node = (JNDITreeNode) e.getNodeAtEventLocation();
                                System.out.println(" --- handleMouseEvent ---");
                                createPopupMenu(e.getMEvent().getPoint(), e.getMEvent().getComponent(), node);
                thread.start();
    private synchronized void createPopupMenu(final Point point, final Component c, JNDITreeNode node) {
            contextMenuDN = node.getDn();
            CursorHelper cursorHelper = CursorHelper.showWaitCursor(c);
            com.marconi.platform.cvb.bcmp.security.AbstractDNPanel.registerJndiTreeNode(node);
            ContextMenuFactory contextMenuFactory = new ContextMenuFactory ( context );
            contextMenuFactory.setAttributeViewDisplayText(node.getDisplayText());
            TreeNodeDescriptor treeNodeDescriptor = new TreeNodeDescriptor(
                    node.getDn(),
                    node.getDirData()
            boolean searchContextAvailable = true;
            JNDIData data = node.getDirData();
            Attributes attrs = data.getAttributes();
            Attribute a = attrs.get("mSearchContextAvailable");
            try
              if (a != null)
                    String value = (String)a.get();
                    if (value.equalsIgnoreCase("FALSE"))
                        searchContextAvailable = false;
            catch (NamingException ne)
            jMenuItemSearch.setEnabled(searchContextAvailable);
            JPopupMenu menu = contextMenuFactory.getPopupContextMenu( treeNodeDescriptor );
            menu.addSeparator();
            menu.add( jMenuItemCollapseAll );
            menu.add( jMenuItemSearch );
            if ( contextMenuDN != null ) {
                menu.add(jMenuItemUpdate);
            MUtils.showPopupMenu(menu, point, c);
            cursorHelper.showDefaultCursor();
       * MUtils ensures that the whole popup menu is visible, performs a cleanup before showing.
       * @param popupMenu the menu to be shown
       * @param mouseClickPoint where the mouse has been clicked
       * @param c the component on which to show the popup menu
       * @see cleanupMenu
        public static void showPopupMenu( final JPopupMenu popupMenu, final Point mouseClickPoint, final Component c) {
        if ( popupMenu.getComponentCount() == 0 ) return;
        cleanupMenu( popupMenu );
        if ( autoAssigningMnemonics ) {
          assignMnemonics( popupMenu );
        final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        final Point result = new Point(mouseClickPoint);
        SwingUtilities.convertPointToScreen( result, c);
        Dimension popupSize = popupMenu.getPreferredSize();
        popupSize.height = popupSize.height + 30; // as Windows TaskBar is overlapping always
          if ( popupSize != null ) {
          if ( result.getX() + popupSize.getWidth() > screenSize.getWidth() ) {
            result.setLocation( screenSize.getWidth() - popupSize.getWidth() , result.getY() );
          if ( result.getY() + popupSize.getHeight() > screenSize.getHeight() ) {
            result.setLocation( result.getX(), screenSize.getHeight() - popupSize.getHeight() );
        result.x = Math.max( 0, result.x );
        result.y = Math.max( 0, result.y );
        SwingUtilities.convertPointFromScreen( result, c );
        javax.swing.SwingUtilities.invokeLater(
          new Runnable() {
            public void run() {
                popupMenu.show( c, (int) result.getX(), (int) result.getY());
    Please let me know your feedback. Need to confirm whether this issue is really exists or not.

Maybe you are looking for

  • STORAGE_PARAMETERS_WRONG_SET Dump on BW

    Hello experts, We are receiving several DUMPS with the following error in our BW  system: STORAGE_PARAMETERS_WRONG_SET ShrtText   &INCLUDE INCL_INSTALLATION_ERROR When the program was running, it was established that more                    memory wa

  • Custom Workflow generates a thousand of Workflow Instances and EREs

    Hi everyone, I developed a Custom Workflow that complete user attributes information when a user select a value from a drop down list. I tested this workflow with a Request MPR  with an Action Type "Create" and the workflow Works perfectly. But now, 

  • Firefox stops working when I use the password manager on certain pages

    Hey. When I visit certain pages, Firefox will consistently crash. One of these pages for example is: betabrand.com The moment the password manager window jumps up, the window hangs and Firefox stops. It also happens randomly on other pages including

  • Enterprise Manager listening ports?

    Hi all, Which are the TCP/IP ports an intelligent agent uses to communicate with an OEM console? From the docs, it seems that the only port it uses is 7770/tcp, but I saw 7771, 7772, 7773, 7778 also. I need this info to setup a (um, rather complicate

  • Early Warning System directory

    Usually the EWS directory for the week is posted by end of day on Thursdays. It is now Friday afternoon (West Coast US), and the weekly directory does not appear to have been posted. Will it be posted soon?