Stealing memory from JVM with ByteBuffer.allocateDirect

Hi,
I am stealing many megabytes of memory for permanent JNI use via ByteBuffer.allocateDirect when my java app boots.
Does the JVM account for this relative to the total memory that the maxmem property
has indicated when the JVM is launched?
Thanks,
Andy

JNI has nothing to do with it.
It would of course be easy to test that.
With a standard VM the limit is 64m. So just allocate that much.
Myself I seriously doubt that it wouldn't impact the heap.

Similar Messages

  • ByteBuffer.allocateDirect vs. NewDirectByteBuffer and freeing memory

    Hi all, I have a very basic question that I'm afraid I couldn't find in any documentation. My question is, when a ByteBuffer in my JVM wraps a direct memory buffer does it try to free that native memory when it gets GC'd? It seems like it would have to do this when I (the user) create it via ByteBuffer.allocateDirect; but if I use a JNI call into NewDirectByteBuffer, I understand that I'm taking responsibility for freeing that memory when I'm finished with it. Both will return true for isDirect(), but in the case where I created the buffer myself and passed it to NewDirectByteBuffer, then free'd that memory myself, will the ByteBuffer object know that it's not supposed to free that memory?
    Thanks in advance.

    koverton wrote:
    Hi all, I have a very basic question that I'm afraid I couldn't find in any documentation. My question is, when a ByteBuffer in my JVM wraps a direct memory buffer does it try to free that native memory when it gets GC'd? Yes, but I have found it does this very slowly. i.e. When the JVM runs low on heap space it will GC before it throws an OutOfMeoryError However for non-heap space this doesn't happen so reliably.
    It seems like it would have to do this when I (the user) create it via ByteBuffer.allocateDirect; but if I use a JNI call into NewDirectByteBuffer, I understand that I'm taking responsibility for freeing that memory when I'm finished with it. Both will return true for isDirect(), but in the case where I created the buffer myself and passed it to NewDirectByteBuffer, then free'd that memory myself, will the ByteBuffer object know that it's not supposed to free that memory?Your best bet is to check the finialize() code. You may be able to break point it to see what it does in your case.
    If you are not sure, why not call ByteBuffer.allocateDirect().

  • MIXING ORIGINAL APPLE MEMORY WITH MEMORY FROM ANOTHER MANUFACTURER

    Hi everyone,
    I'm about to hop on the mac train and buy a macbook 2.16GHz( the recent previous black model)
    It's coming with 1GB of memory and I wanted to buy 2GB to add to it. I found a good deal for a OWC 2GB DDR2 PC2-5300 667MHz DIMM(it's one stick of 2GB).
    Is it compatible to mix different memory makes and if so, is it also optimal? Would the optimizing power be the same if I used all the memory from one manufacturer or it makes no difference? Thanks.

    bdkjones wrote:
    As long as the memory is by a major manufacturer (Samsung, Hynix, Micron, etc) it should not matter.
    You do get a slight advantage by using 2 of the same capacity RAM modules. (i.e. 2x1GB chips or 2x2GB chips). In practice, however, this performance gain really isn't noticeable. You have to run a memory benchmark test to see the difference.
    I remember there was this supposed IT guy who claimed that different brands of memory "fight it out". Some of the answers were absolutely hilarious. Seriously, there's nothing that consistent about a single brand of memory. There are always variations, but I wouldn't worry about a thing provided the memory actually meets its published specs. You get variation quality with memory modules that aren't fully-branded by one of the major memory IC manufacturers, but there are some reputable brands out there (OCZ, PNY, Patriot, etc).
    I have an iBook G4 1.42. For two+ years I've been running the permanent Samsung memory with a 1 GB Micron PC2700 module. I've never encountered anything that suggests that there is a problem with it.
    I've also read the Intel specs on what the chipset does with memory sized identically. Apparently it can do that very same thing (memory interleaving) even if the sizes aren't matched. However - it'll only do that for up to the size of the smaller module, and the remainder of the larger module isn't interleaved.

  • Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizon

    Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizonstore they will upgrade your data plan to cover the overage and credit the upgrade.  You will then have to remember to downgrade your plan or continue to pay for more data.  Verizon, how would you feel if I walked into one of your stores and started filling my pockets with merchandise?  If cought can I just give the product back and say "oops, sorry"

    Today, my FCC complaint hit the same person working on the BBB complaint.  Jimmie has been very nice and seems willing to work with this problem.  We have been able to come to an agreement.  I paid the purchase price for the phone and he returned my upgrade and unlimited data plan.  This is what would have occurred if Verizon had given me correct information to begin with.  I am happy with this result.  He also brought quite a few instances concerning the handling of my transfer and upgrade that did not follow proper procedure.  I am also confident that I would not have resolved this without complaining to BBB and or FCC.  Verizon had no interest in solving the problem nor did they show any propensity to keeping a 20 year client.  Even though this last CSR was very polite and helpful, his sole job is to respond to formal Federal and State complaints.  He is required by law to address every complaint and report the reporting agency the agreed upon results - good or bad.  Again, I suggest - If you are not getting the proper customer service, complain to someone outside of Verizon.  Jimmie had not received any complaints registered with Verizon directly and I still have not had any contact with any other management representative that I was told would call.

  • Been trying to use an external memory card reader with my macbook air- connecting via usb port, air does not recognize device nor the microSD card from my gopro - help

    Been trying to use an external memory card reader with my macbook air… connecting via usb port, air does not recognize device nor the microSD card from my gopro … help

    Some external ones do not work with the Mac's although most do. There are some driver compadibility issues with Mavericks, so I would wait for an update.

  • Something is stealing focus from my active window

    Hi,
    Something frequently steals focus from my Mail, Keynote and other active windows. I'm having trouble figuring out what it is as the focus doesn't 'go' anywhere. It's quite annoying as I frequently get the error-ding, and have to go to the mouse to return focus to the window I was working in.
    Does anyone know how to resolve this issue? Below please find the system informaiton.
    Hardware Information:
              MacBook Pro (15-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2 GHz Intel Core i7 CPU: 4 cores
              16 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 512 MB
              AMD Radeon HD 6490M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 6:23:0
    Disk Information:
              ST1000LM014-1EJ164 disk0 : (1 TB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macbook SSD (disk0s2) /: 999.35 GB (578.21 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple, Inc. Keyboard Hub
                        Apple Inc. Apple Keyboard
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              com.symantec.kext.internetSecurity          (5.2f2 - SDK 10.6)
              com.symantec.kext.ndcengine          (1.0f2 - SDK 10.6)
              com.symantec.kext.ips          (3.5f2 - SDK 10.6)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [System] com.adobe.SwitchBoard.plist 3rd-Party support link
              [System] com.frogdesign.ardon.daemon.plist 3rd-Party support link
              [System] com.frogdesign.disableautologin.daemon.plist 3rd-Party support link
              [invalid] com.frogdesign.renamecomputer.daemon.plist
              [invalid] com.frogdesign.renamehost.daemon.plist
              [invalid] com.frogdesign.renamelocalhost.daemon.plist
              [System] com.frogdesign.sshon.daemon.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.symantec.liveupdate.daemon.ondemand.plist 3rd-Party support link
              [System] com.symantec.liveupdate.daemon.plist 3rd-Party support link
              [System] com.symantec.sharedsettings.plist 3rd-Party support link
              [System] com.symantec.symdaemon.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.frogdesign.screenpwddelay-host.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwddelay.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwdon-host.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwdon.agent.plist 3rd-Party support link
              [System] com.symantec.uiagent.application.plist 3rd-Party support link
              [System] jp.co.canon.CUPSiPF.BackGrounder.plist 3rd-Party support link
              [System] jp.co.canon.CUPSiPF.PreviewDaemon.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Login Items:
              UNKNOWN
              iTunesHelper
              Dropbox
    Internet Plug-ins:
              QuickTime Plugin: Version: 7.7.3
              AdobePDFViewerNPAPI: Version: 10.1.9 3rd-Party support link
              AdobePDFViewer: Version: 10.1.9 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              MeetingJoinPlugin: Version: (null) - SDK 10.6 3rd-Party support link
              JavaAppletPlugin: Version: 14.8.0 - SDK 10.9 Outdated! Update
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              Symantec QuickMenu  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              Microsoft Language Register:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
              iPF Support:          Version: 2.36 - SDK 10.4 3rd-Party support link
                        /Library/Printers/Canon/GARO/Utilities/iPF Support.app
              Solver:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              Microsoft Lync:          Version: 14.0.7 - SDK 10.5 3rd-Party support link
              /Applications/Microsoft Office 2011
                        Microsoft PowerPoint:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Outlook:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Word:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Document Connection:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              dynamiclinkmanager:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclink/CS6/dynamiclinkmanager.app
              /Applications/Microsoft Office 2011/Office
                        Microsoft Graph:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Utility:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Office Reminders:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Upload Center:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        My Day:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        SyncServicesAgent:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Open XML for Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Alerts Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Chart Converter:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Clip Gallery:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              dynamiclinkmediaserver:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclinkmediaserver/1.0/dynamiclinkmediaserver.app
              SyLinkDrop:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Symantec/SMC/tools/SyLinkDrop.app
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                  24%          mds
                   3%          WindowServer
                   3%          EtreCheck
                   2%          iTunes
                   1%          coreaudiod
    Top Processes by Memory:
              721 MB          SymDaemon
              541 MB          Finder
              524 MB          Keynote
              410 MB          Mail
              311 MB          mds_stores
    Virtual Memory Information:
              3.60 GB          Free RAM
              6.10 GB          Active RAM
              4.55 GB          Inactive RAM
              1.75 GB          Wired RAM
              2.74 GB          Page-ins
              0 B          Page-outs

    Hello,
    I have the same problem (probably because we work for the same company )
    The problem is with Symantec Endpoint Protection. I ran a script and found out that's causing the problem. I don't have a fix yet though unfortunately.
    Kevin

  • Upload data from excel with vba by calling a function module

    Hello all,
    i have a problem with the function module "ALSM_EXCEL_TO_INTERNAL_TABLE". I will call this function module with vba to load data from excel to sap with a Buttonclick. I have copied this function module and set it remotable. But i can´t call it from excel.
    Can you give me some tips how can i
    upload data from excel with vba by click a button.
    The problem seems the function: call method cl_gui_frontend_services=>clipboard_import in the function module, because when i comment this function call the vba-call is true but no results. 
    How can I call the function module correct with vba?
    Thanks a lot for your tips!!!!
    Chris
    Message was edited by:
            Christoph Kirschner

    HI
    Uploading data directly from Excel file format
    * Upload data direct from excel.xls file to SAP
    REPORT ZEXCELUPLOAD.
    PARAMETERS: filename LIKE rlgrap-filename MEMORY ID M01,
                begcol TYPE i DEFAULT 1 NO-DISPLAY,
                begrow TYPE i DEFAULT 1 NO-DISPLAY,
                endcol TYPE i DEFAULT 100 NO-DISPLAY,
                endrow TYPE i DEFAULT 32000 NO-DISPLAY.
    * Tick don't append header
    PARAMETERS: kzheader AS CHECKBOX.
    DATA: BEGIN OF intern OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern.
    DATA: BEGIN OF intern1 OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern1.
    DATA: BEGIN OF t_col OCCURS 0,
           col LIKE alsmex_tabline-col,
           size TYPE i.
    DATA: END OF t_col.
    DATA: zwlen TYPE i,
          zwlines TYPE i.
    DATA: BEGIN OF fieldnames OCCURS 3,
            title(60),
            table(6),
            field(10),
            kz(1),
          END OF fieldnames.
    * No of columns
    DATA: BEGIN OF data_tab OCCURS 0,
           value_0001(50),
           value_0002(50),
           value_0003(50),
           value_0004(50),
           value_0005(50),
           value_0006(50),
           value_0007(50),
           value_0008(50),
           value_0009(50),
           value_0010(50),
           value_0011(50),
           value_0012(50),
           value_0013(50),
           value_0014(50),
           value_0015(50),
           value_0016(50),
           value_0017(50),
           value_0018(50),
           value_0019(50),
           value_0020(50),
           value_0021(50),
           value_0022(50),
           value_0023(50),
           value_0024(50),
           value_0025(50),
           value_0026(50),
           value_0027(50),
           value_0028(50),
           value_0029(50),
           value_0030(50),
           value_0031(50),
           value_0032(50),
           value_0033(50),
           value_0034(50),
           value_0035(50),
           value_0036(50),
           value_0037(50),
           value_0038(50),
           value_0039(50),
           value_0040(50),
           value_0041(50),
           value_0042(50),
           value_0043(50),
           value_0044(50),
           value_0045(50),
           value_0046(50),
           value_0047(50),
           value_0048(50),
           value_0049(50),
           value_0050(50),
           value_0051(50),
           value_0052(50),
           value_0053(50),
           value_0054(50),
           value_0055(50),
           value_0056(50),
           value_0057(50),
           value_0058(50),
           value_0059(50),
           value_0060(50),
           value_0061(50),
           value_0062(50),
           value_0063(50),
           value_0064(50),
           value_0065(50),
           value_0066(50),
           value_0067(50),
           value_0068(50),
           value_0069(50),
           value_0070(50),
           value_0071(50),
           value_0072(50),
           value_0073(50),
           value_0074(50),
           value_0075(50),
           value_0076(50),
           value_0077(50),
           value_0078(50),
           value_0079(50),
           value_0080(50),
           value_0081(50),
           value_0082(50),
           value_0083(50),
           value_0084(50),
           value_0085(50),
           value_0086(50),
           value_0087(50),
           value_0088(50),
           value_0089(50),
           value_0090(50),
           value_0091(50),
           value_0092(50),
           value_0093(50),
           value_0094(50),
           value_0095(50),
           value_0096(50),
           value_0097(50),
           value_0098(50),
           value_0099(50),
           value_0100(50).
    DATA: END OF data_tab.
    DATA: tind(4) TYPE n.
    DATA: zwfeld(19).
    FIELD-SYMBOLS: <fs1>.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                mask      = '*.xls'
                static    = 'X'
           CHANGING
                file_name = filename.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = filename
                i_begin_col             = begcol
                i_begin_row             = begrow
                i_end_col               = endcol
                i_end_row               = endrow
           TABLES
                intern                  = intern
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', SY-SUBRC.
      ENDIF.
    END-OF-SELECTION.
      LOOP AT intern.
        intern1 = intern.
        CLEAR intern1-row.
        APPEND intern1.
      ENDLOOP.
      SORT intern1 BY col.
      LOOP AT intern1.
        AT NEW col.
          t_col-col = intern1-col.
          APPEND t_col.
        ENDAT.
        zwlen = strlen( intern1-value ).
        READ TABLE t_col WITH KEY col = intern1-col.
        IF sy-subrc EQ 0.
          IF zwlen > t_col-size.
            t_col-size = zwlen.
    *                          Internal Table, Current Row Index
            MODIFY t_col INDEX sy-tabix.
          ENDIF.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE t_col LINES zwlines.
      SORT intern BY row col.
      IF kzheader = 'X'.
        LOOP AT intern.
          fieldnames-title = intern-value.
          APPEND fieldnames.
          AT END OF row.
            EXIT.
          ENDAT.
        ENDLOOP.
      ELSE.
        DO zwlines TIMES.
          WRITE sy-index TO fieldnames-title.
          APPEND fieldnames.
        ENDDO.
      ENDIF.
      SORT intern BY row col.
      LOOP AT intern.
        IF kzheader = 'X'
        AND intern-row = 1.
          CONTINUE.
        ENDIF.
        tind = intern-col.
        CONCATENATE 'DATA_TAB-VALUE_' tind INTO zwfeld.
        ASSIGN (zwfeld) TO <fs1>.
        <fs1> = intern-value.
        AT END OF row.
          APPEND data_tab.
          CLEAR data_tab.
        ENDAT.
      ENDLOOP.
      CALL FUNCTION 'DISPLAY_BASIC_LIST'
           EXPORTING
                file_name     = filename
           TABLES
                data_tab      = data_tab
                fieldname_tab = fieldnames.
    *-- End of Program
    <b>Excel Upload Alternative - KCD_EXCEL_OLE_TO_INT_CONVERT</b>
    *Title : Excel Uploading
    TYPES:   BEGIN OF t_datatab,
             col1(25)  TYPE c,
             col2(30)  TYPE c,
             col3(30)  TYPE c,
             col4(30)  TYPE c,
             col5(30)  TYPE c,
             col6(30)  TYPE c,
             col7(30) TYPE c,
             col8(30)  TYPE c,
             col9(30)  TYPE c,
             col10(30)  TYPE c,
             col11(30)    TYPE c,
           END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab INITIAL SIZE 0,
          wa_datatab TYPE t_datatab.
    Data : p_table type t_datatab occurs 0 with header line.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA: it_tab TYPE filetable,
          gd_subrc TYPE i.
    field-symbols : <fs>.
    *Selection screen definition
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename
                   DEFAULT 'c:test.xls' OBLIGATORY.   " File Name
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      REFRESH: it_tab.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select File'
          default_filename = '*.xls'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      LOOP AT it_tab INTO p_file.
    *    so_fpath-sign = 'I'.
    *    so_fpath-option = 'EQ'.
    *    append so_fpath.
      ENDLOOP.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    * END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3,
                wa_datatab-col4,
                wa_datatab-col5,
                wa_datatab-col6,
                wa_datatab-col7,
                wa_datatab-col8,
                wa_datatab-col9,
                wa_datatab-col10,
                wa_datatab-col11.
      ENDLOOP.
    *&      Form  UPLOAD_EXCEL_FILE
    *       upload excel spreadsheet into internal table
    *      -->P_TABLE    Table to return excel data into
    *      -->P_FILE     file name and path
    *      -->P_SCOL     start column
    *      -->P_SROW     start row
    *      -->P_ECOL     end column
    *      -->P_EROW     end row
    FORM upload_excel_file TABLES   p_table
                           USING    p_file
                                    p_scol
                                    p_srow
                                    p_ecol
                                    p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    * Has the following format:
    *             Row number   | Colum Number   |   Value
    *      i.e.     1                 1             Name1
    *               2                 1             Joe
      DATA : ld_index TYPE i.
    * Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = LT_INTERN
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
         MOVE lt_intern-col TO ld_index.
         assign component ld_index of structure
         p_table to <fs>.
    move : lt_intern-value to <fs>.
    *     MOVE lt_intern-value TO p_table.
          AT END OF row.
            APPEND p_table.
            CLEAR p_table.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "UPLOAD_EXCEL_FILE
    Regards
    Pavan

  • Memory install problems with my iMac. Can someone help me?

    I read several post before leave it my question here—like having similar RAM memory problems—but looks like nobody has the right answer. This is my dilemma.
    I have an iMac/Intel Core 2 Duo/2.8 GHz/RAM 2 GB/800 MHz,(Anodized Aluminum) 1st Generation - Summer 2007 Family, and has many others here I bought an extra 2GB module in hope to boost the memory from 2GB to 3GB (the new 2GB memory module and the old 1GB).
    I did the installation, making sure they fully seat into their sockets, turn on the computer, checking if the computer recognize the new memory module... and everything went right until I started working with the computer.
    The first indication of a problem happen 15 min. after I installed the memory. The computer crash and I follow the normal procedures to restart the Mac. No problems for about one hour.
    The second time the computer crash I was working an InDesign file, I did turn off and on the computer but this time it didn't work. There was no beep or other sound, nothing was shown on the screen. I took the new memory module out and replace it for the old 1GB.
    Now is working just fine. Is this an Apple scam to make us buy expensive Apple memory modules? The module in question, the one that I bought brand new from memory.com for just $26—instead of the outrageous price of $100 from Apple Store—in as follow:
    2GB DDR2-800 non ECC SO-DIM
    This is the recommended module for iMac 2.8GHz Intel Core 2 Duo 24-inch at memory.com
    http://www.memory.com/net/System.aspx?model=37204
    I wondering if my problem could be the use of two different configurations (2GB+1GB modules) or is just a "conspiracy theory" that Apple want to make us buy expensive RAM memory.
    If I bought a "wrong module", why the computer recognize the upgrade and I was able to work, at least for 2 hrs?

    sergei63,
    It seems you did not purchase the correct memory! The memory for mid 2007 iMac (first generation Aluminum machines) is:
    667 MHz, PC2-5300, DDR2 compliant (also referred to as DDR2 667)
    Look in your owners manual and you will find this information. As you are finding out your machine will not run if it has incorrect memory in it.
    My suggestion is return the RAM you received and purchase the specification listed above.
    Regards,
    Roger

  • Please explain me, how to remove an usb stick or memory chip? With experiences only in pc:s, I do not find on my first apple e.g. MacBook Air a solution. Until now I have succeeded to destroy one chip full of photos and - there's no life more in the port.

    Please explain me, how to remove an usb stick or memory chip? With experiences only in pc:s, I do not find on my first apple e.g. MacBook Air a solution. Until now I have succeeded to destroy one chip full of photos and - there's no life more in the port...
    Someone told me just to remove the chip in clicking it to the trash can and voilá - it would be done. But as I did so, on the screen appeared a text which let me know, that that way had been the wrong one...
    I should have clicked Finder plus something.... which I do not now remember but which was then not found behind the Finder.
    So please would someone be so kind and tell me, where I can find explanations for the most simple functions. The manual I got does not include a clue.
    Thank you!

    First make sure that no application is using or has open any files on the disk. Then:
    Click and drag the disk icon on the desktop to the trash. Wait for the system to recognize the action, and the icon should disappear from the desktop. It is then safe to remove the device.
    Alternatively, you can secondary click on the disk icon, and then primary click "Eject (name of disk)". Wait for the icon to disappear off the desktop, and then it is safe to remove the drive.
    Here is a detailed help document on the subject.
    http://docs.info.apple.com/article.html?path=Mac/10.7/en/mchlp1056.html

  • Low Memory Footprint JVM needed, Please suggest.

    Hi guys,
    I want a light weight (low memory footprint) Java Virtual Machine compatible with Java 1.5. It should be open source. Can anybody suggest me please. I've googled and tried to use some JVMs like Kaffe and SableVM. But I want some reliable VM.
    Thanks,
    Dhaval.

    Dhaval.Yoganandi wrote:
    can you flash more light on it ?
    Dhaval.Yoganandi wrote:I'm currently using Sun JVM with Java 1.5 its taking 35-40 MB of RAM and 333 MB in VRAM. I need to make very low. how can I do that ? I've tried many options to start sun JVM but no luck.. Virtual Memory is reduced to 280MB nothing else.. I want it to consume Virtual Ram only 64MB and RAM only 30MB..
    You need to tell us what tool you are using to arrive at those numbers.

  • How to remove a certificate from JVM keystore ?

    I want to remove a certificate from JVM cacerts.
    I know its alias is quacert and password is quadra
    How do I remove this cert from JVM cacerts ?
    Whats the correct flag need to use with keytool to remove a certificate by its alias name ?

    sabre150 wrote:
    Err ... does 'keytool -h' not tell you how to do this?There is no "keytool -h"
    I find this though ..
    user@box1:~$ keytool -h
    Illegal option: -h
    Try keytool -help
    user@box1:~$ keytool -help
    keytool usage:
    -delete [-v] [-protected] -alias <alias>
    [-keystore <keystore>] [-storepass <storepass>]
    [-storetype <storetype>] [-providername <name>]
    [-providerclass <provider_class_name> [-providerarg <arg>]] ...
    [-providerpath <pathlist>]
    I think I need these ...
    [-storepass <storepass>]
    and
    [-keystore <keystore>]
    What is square bracket and nested angular bracket doing here ? I dont understand this notation. How do I put values for this type of notation ?

  • Creating Multiple JVMS with JNI_CreateJavaVM

    Hey there
    I'm trying to create 2 JVMS in from within a C++ program - in order to start a couple of Java servers. I've been hunting around the discussion groups and the web and there are references to not being able to create more than a single JVM with JDK 1.1 but it's claimed you can do it with JDK 1.2 onwards. I just tried it and the second invocation of JNI_CreateJavaVM returns -1. I then found a page saying that the JNI_CreateJavaVM invocations have to be in separate threads so I created a couple of threads using AfxBeginThread (using Win NT) and called JNI_CreateJavaVM once within each thread. The thread which gets to the JNI call second still returns -1.
    Has anyone got this to work ???

    You can only create one Java VM per process. For additional threading into the VM, you will need to call the AttachCurrentThread method on any additional thread that you want to execute in the VM. This only works for Win32 in 1.1

  • WHY is BT stealing money from a disabled woman ???...

    Since 30th December 2011 I have been having massive trouble with BT.  Firstly my broadband just stopped and despite my trying to get this sorted it took BT over 11 days to finally get my broadband up and working.  I had to put up with no landline for up to 4 days (Im still waiting to be told why) and then I was told that i had "cancelled" by broadband - which I had not.  The customer service team were rude, unhelpful and told downright lies.  Very few of them would actually give thier names and one I made an official complaint about when she called me back and told me "BT will not help you any further" this after a very frustrating call with her that ended up by me ending the call.  I am a severely disabled woman of 57 years old who is totally dependant on my phone and broadband.  I am housebound and the major problem for me was the fact my electiricty top up is done online with British Gas.  I was actually down to less than £1 of electricity and had to leave my home overnight as I was extremly frightened i would be left in the dark and the cold.  Friends had to come and collect me.  I must have dealt with over 40 customer service people - all useless and liars. 
    I have been promised by Michelle that I will be compensated and my outstanding monies returned to me - this is not proving to be the case, she promised me a cheque had been sent out to me last Thursday 12th January 2012 but as this was a blatant lie of course the cheque has NOT arrived.  She then sent me an email telling me she has been off ill this week for 2 days by way of explanation for not calling me as she promised, she is back in work - why no call ?????
    No care has been shown whatsoever, despite me telling them all i was severely disabled and that the stress of this was making me very ill.  I was constantly reduced to tears, lets keep in mind i have had several heart attacks in the last 2 years and my heart condition (as was clearly explained to BT) is triggered by STRESS.  They just dont care. 
    I am now changing to another phone company and this is where BT have now got seriously nasty and they are actually stealing money from me.  I am being charged for the rental of the line and broadband service and other services despite the fact i have already paid these charges in advance on my October 2011 bill.  It is surely fraud.
    Nobody from BT will call me or reply to me.  I have this morning sent a final email to Michelle from the Direct Debit Team and if i get no reply then i have no option but to go to the Onbudsman. 
    What is being done to me is nothing short of deception, fraud and deceipt.
    I will take this as far as I can go - even legal action. 
    I would also add that BT have deleted thier customer service numbers that I called so i cannot prove the calls were made, I suppose thier "recorded calls" will also be deleted as well.  One of the calls deleted was made by thier own engineer from my landline, apparently he was not in my home nor was he ever on my landline - he must have been an apparition, he told BT on that phone call that i was indeed severely disabled and extremely vulnerable and he also was shocked at the way i was being treated.  I do however have access to this engineer. 
    Is there anybody at BT who will have the guts and the honesty to deal with this ?????? i doubt it.

    I spoke this morning with yet another Billing Operator her name is "Rabhikka" she told me to not pay the bill that was generated until BT sort out this problem, I asked her to email me this - and yep youve guessed - 3 hours later and no email.  Why wont BT staff back up in an email what they tell you on the phone????????  It appears they are now charging me line rentals and broadband charges up to April 2012 - i leave BT 1st February 2012.  What part of that do BT not get?????  Was also told if I pay the £50 outstanding because of these charges then at some point BT will re-imburse me, yep i got money to burn.  Tell you what lets get really radically thinking here WHY DONT BT JUST PAY ME BACK WHAT THEY OWE ME ?????????  Wierd concept but easier surely................ I have sent the guy who has answered below my telephone number - lets see if he calls.

  • Spotify are stealing money from me and I can't stop it!

    For 6-months now I've been trying to cancel a Spotify account that I didn't think I'd ever setup.  I once went part way through a setup process but never followed through and have hence never ever used the service. I have been unable to login or retrieve any user details and hence, cannot cancel thgis subscription myself.  I have had no response to help requests and have been left with no option but to get my bank to help Barclays.  They have sent a notice asking it to be stopped but to no avail and are hence now escalating legally. This is nothing short of theft.

    Thank you, but this happened last year. After 6 months (yes I filed my first request around March '14, and after continuous efforts I only stopped getting charged in October'14) my issue was resolved. Yes I CONSTANTLY replied to my support emails, I did everything I possibly could to get them to hear me, but I never heard from them, and of course nothing was ever done for me until months and months later. Never even got an apology. 
    I only posted here b/c I was reviewing my finances recently and was reminded of this travesty. I felt the need to tell that story so that its further reaffirmed that alot of people have experienced this sort of thing, and I can't express how messed up it is. You can't steal money from cusomers. It destroys our trust. I will never subscribe to Spotify again. I've had friends who expressed interest in doing so, but I had to warn them to only do it if they are 200% on board for it, because if they ever decide to cancel they can expect to lose more than $50 (yes that adds up for us recent graduates) Fortunately they listen, because yes, money doesn't grow on trees, and customers don't deserve to be treated like that. 

  • Memory leak problems with loading videos over and over.

    I'm having memory leak problems with loading videos into a VideoPlayer aswell as FLVPlayback.
    What the flash should do:
    - Should be running for 7 days without having to restart the projector.
    - Interface that shows people around a 360 3D model with 5 different parts and at the stops it makes during the rotation you can click to zoom in on a location which plays a movie for that aswell.
    - Shows a video out of 5 parts for a 360 rotation in 3D in mp4 video (added each time and cleaned up, see code below).
    - Still images are used when the video clips are done playing (MovieClip in stage).
    - Should run automatically when there is no user interaction for X minutes.
    What the problem is:
    - The flash (as a exe and swf i guess) starts to consume memory over time (say 10 hours) until the projector crashes. This usually at around 1.75 GB of memory.
    I cannot see why the Flash cannot garbage collect this and free up the memory. Mabye there is something I don't understand about the garbage collection in flash?
    Here is some code from the video loading and playing:
    var fVideo:VideoPlayer;
    VideoCreate();
    function VideoReady(pEvent:VideoEvent):void
    trace("VideoReady()");
         // start playing video
    fVideo.play();
    function VideoLoad(pUrl:String):void
         trace("VideoLoad(" + pUrl +
         VideoCreate();
         if (pUrl != "")
              if (fVideoFolder + pUrl == fVideo.source)
                   fVideo.seek(0);
    VideoReady(null);
              } else {
    trace(fVideo.state);
                   if (fVideo.state !=
    VideoState.DISCONNECTED) fVideo.stop();
    fVideo.close();                                
    fVideo.load(fVideoFolder + pUrl);
         } else {
    // error no url
    function VideoCreate():void
         trace("VideoCreate()");
         // remove old one
         if (getChildAt(0) == fVideo)
              removeChildAt(0);
         fVideo = new
    VideoPlayer(1024, 768);
         addChildAt(fVideo, 0);
         fVideo.autoRewind = false;
    fVideo.addEventListener(VideoEvent.COMPLETE, VideoDonePlaying);
    fVideo.addEventListener(VideoEvent.READY, VideoReady);

    Hmm. It's in connection with Dropbox. Så apparantly you can only use one of the two at the same time if you want the programs integrated in Finder.

Maybe you are looking for

  • Change the colour of a cell text depending on the value Web Reports (NW04s)

    Hi all, does anyone know how to change the color of the text of a cell depending on its value on Web Reports? For example red text for values smaller than zero and blue for values bigger than zero? I know you can create exceptions, but that changes t

  • Itunes remote on iphone 3g no longer finding my library

    After using past versions of itunes, my remote ap on my Iphone 3G keeps telling me it can't find my music library.  I'm using Itunes 10.5.2

  • Where is the GDM setup gone?

    Hi, I've just upgraded my system to Gnome 2.28 and basically it runs just fine. During the upgrade process pacman told me that the new GDM config file /etc/gdm/custom.conf is saved as /etc/gdm/custom.conf.pacnew. As I haven't written anything critica

  • Site collections, or sub-sites, in SharePoint Online?

    We have an established SharePoint 2010 intranet portal, which has many and various team sub-sites.  These sub-sites are created on request - sometimes it's because one of our locations wants their own little area to share documents, or it might be fo

  • Updating defaultTimeout in adf-config.xml through WLST

    Hello, I hope i have this in the right area. I'm cross posting because I think I put it in the wrong place originally. If I get an answer, I'll cross link the two. I'm trying to change the default, min and maximum timeouts for portlets that come from