Is it possible to create the memory for a Java object in C/C++?

Is it possible to have a C/C++ program allocate some memory, then have JNI use that memory for primitive java objects (such an array of bytes) that are passed to Java objects ?
I would like to allocate a region of memory in C++, then give that memory to a Java object (via some kind of JNI type) and have that Java object fill the memory region with data.
My impression from reading the JNI API and the few examples I've looked at is "No", there is a strict boundary between C++ and JNI as regards memory management. There may be serious implications as to why what I'm suggesting is not feasible, I am not enough of a JNI expert to know yet, and would greatly appreciate any input/comment.
Many thanks,
Colm.

No, you cannot. However, writing your JNI code you should not use memory of Local Heap (if it possible). Because Local Heap Memory used also by JVM. I have developed tools that generate C++ wrappers for JNI code. In these wrappers I use mainly Global/Virtual Memory. I also reduce to minimum creation of local/global references, as it is affects to JVM memory use. If you are writing JNI code under MS Windows then you can try my tools that automate JNI code writing:
http://simtel.net/product.php[id]93174[SiteID]simtel.net
http://simtel.net/product.php[id]94368[SiteID]simtel.net
Now I am developing this tool for .Net. In two weeks it will be finished.

Similar Messages

  • LSMW :Is it possible to create F4 Help for File path selection

    Hi All .,
    Please let me know is it possible to create F4 help for file path creation in LSMW .
    thanks
    Sreenivas

    Hi,
    I don't get it.
    In the step " Specify files" you will have the option to pick your flat file which is on the desktop by pressing F4 .
    What is that you exactly want??
    Warm regards,
    Hari Kiran

  • Is it possible to creat Shoppping cart for Blocked vendor in R/3

    Hello all,
    is it possible to create shopping cart for blocked vendor in R/3. we are using extended classic scenario with SRM 5.0. when i am trying to do this vendor is not visible in vendor list. Am i missing somthing???
    if it is not possible in standard set up...what exactly i need to do.
    my requirement is that i should create shopping cart and then PO for posting block vendor in R/3 ( i know that we can do it in R/3)
    how to achieve this in SRM 5.0 please guide.
    Thanks
    Rupesh Mundhada

    There are possibly three types of blocks for a vendor in R3
    1. All company code are blocked for vendor
    2. Selected company code is blocked for vendor
    3. Vendor if blocked for the purchasing organization
    But SRM allows only Central Locking and Purchasing Organizations level locking to be replicated from R3 - MM. So If the vendor is only blocked for a selected company code it will be still possible to create the shopping cart successfully, followed by purchase order; and PO will be issued to Vendor also; but it will not be replicated until and unless the block at the selected company code level is removed.
    This is not wrong; though you will be able to change them as per your business need. The reason is Selected Company Code level block is only used by finance people to stop payment to vendors because of some reasons like exceeding the limit or anything else.
    Please reward points if you find it useful.

  • Is it possible to create a BOM  for ROH material for Subcontracting

    Dear Guru's
    As per my knowledge BOM is needed only for HALB & FERT material even if for subcontracting purpose. So is it possible to create a BOM for ROH material for Subcontracting?. Pls help me to get a soln ?
    Regards
    Ragesh

    Ragesh,
    When you are subcontracting the material, the Std SAP says that the material type should be HALB and not ROH.
    But if client requires for any reason that the material should be ROH only, there is no problem in chaning the settings.
    Sumeet

  • Possible to check  the memory allocation with out given new keyword in java

    hi sir !
    if it is possible to check the memory allocation. before given the NEW.. and after given the NEW....
    and plz suggest me..
    thanks

    If you can't read and understand the API docs, you have no use for the information.
    And most likely, you don't need this information anyway, even though you think you do.

  • Is it possible to create  inspection plan for "Inprocess Inspection"

    Hi,
    Is it possible to create  inspection plans for "Inprocess Inspection".
    If yes , what would be the "task List Usage".Is it "1"?
    If no ,then how to map this requirment?
    Regards
    Vemula

    Hi
    Vemula
    Generally as Per SAP std Routing is used for inspection of 03 type of inspection.
    but you can also customize the Inspection task list Usage for Inprocess Inspection.
    This is possible through
    QCC0>Quality Inspection>Insp lot creation>Assign Insp type to origine>
    here informt of 03 inspection type you can assign
    Task list type:Q
    Usage:either 1(Production) or 3(Universal)
    save
    Regards
    Poonam

  • The Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.   I'm looking for a possibility to use the iPad for photography while traveling, without

    the Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.
    I'm looking for a possibility to use the iPad for photography while traveling, without the access to a computer.
    Shooting photo's in RAW format crates pretty big files that will fill up the iPad's memory pretty fast if you shoot a lot during a (let's say) month long trip.
    my idea was to use load the photo's to the iPad so i could view them and sort out any bad ones. then copy them over to the storage device so i can continue using my CF cards for shooting. I have an image thank for copying the photo's directly to the HDD but it would be so sweet to be able to check them on the iPad before hand.
    any suggestions?

    Check out pogo plug device, it allows you to upload camera roll via wifi.

  • How to create the recovery for windows 8

    Hello,
    I have windows 8 in my T430....I just wanted to know the detailed procedure for creating the recovery for it...
    Thanks 
    Harsh
    Solved!
    Go to Solution.

    Methodology to create Recovery Media and reload a Lenovo system with Microsoft Windows 8 preload
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Is it possible to create the template Server 2012 R2 in Azure?

    For RemoteApp, I know that I need to create a template of Server 2012 R2.
    I don't want to create it locally.
    Is it possible to create the template Server 2012 R2 in Azure?
    And then upload from Azure to Azure?
    Thanks!!!
    Regards Todd Booth

    Currently, that's not possible. It is however a feature request that has been asked for a lot. There also is a feedback page here
    http://feedback.azure.com/forums/247748-azure-remoteapp where you can vote for features, including the feature you are asking for.
    Kind regards,
    Freek Berson
    The Microsoft Platform
    Twitter
    Linked-in
    Wortell company website

  • I have photoshop elements 10 for PC is possible to convert the license for MAC?

    I have photoshop elements 10 for PC is possible to convert the license for MAC?

    Good evening I do not have disc version, I by in Internet and attached I send the license number can I use?
    I have downloaded the version 10 but when I insert the license number the program say that is wrong.
    May I resolve the problem??
    byby
    Thanks
    Leandro Duranti
    [email protected]
    Il giorno 08/feb/2015, alle ore 01:15, Barbara B. <[email protected]> ha scritto:
    I have photoshop elements 10 for PC is possible to convert the license for MAC?
    created by Barbara B. <https://forums.adobe.com/people/Barbara+B.> in Photoshop Elements - View the full discussion <https://forums.adobe.com/message/7173380#7173380>
    That depends. If you bought the disc version, you're good to go, since your serial number works on both platforms, so just install the mac version. If you lost the discs or your mac doesn't have a disc drive, you can download it here:
    Download Photoshop Elements products | 13, 12, 11, 10 <https://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html>
    However, if you bought the windows version as a download, you're out of luck. Adobe does do a crossgrade, but for older versions you have to pay to upgrade to current version on the new platform, and that's more expensive than just buying it, if you search around for a good price.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7173380#7173380 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7173380#7173380
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Photoshop Elements by email <mailto:[email protected]ware.com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=33 47>
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624 <https://forums.adobe.com/thread/1516624>.

  • Is it possible to create the adhoc network and get it work with WLAN APIs (WlanConnect) instead of netsh commands...?

    Hi All,
    I am facing issues in creating  adhoc network in Windows 8.1. After searching in internet, I found that adhoc works with 
    netsh commands.
    1. I have tried neths commands and able to get it work on windows 8.1, 
     but I want to do it through the WLAN APIs ie. WlanConnect ,
    2. I am able to initiate the adhoc network(on Windows 8.1) by using WlanConnect API and other device are also able to connect to the Windows8.1 initiated adhoc  network  but the DHCP is not working.
    -> clients are not able to get the IP address.
    Is it possible to create the adhoc network and get it work with WLAN APIs (WlanConnect) instead of netsh commands...?
    Thanks
    akhil

    Hi,
    Did you mean to write a program to implement that creating adhoc via UI? This should be development issue.
    But this is Windows 8.1 client forum and there is no professional on develop.
    To help you better, I suggest you submit a new case on MSDN forum to help to check your code as they will be more professional on your issue:
    This is the MSDN forum link.
    http://social.msdn.microsoft.com/Forums/ 
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    Kate Li
    TechNet Community Support

  • I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put

    I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put for my ipod touch and itunes?

    Try these previous discusssions:
    recover answers to security questions: Apple Support Communities
    how do i change apple ID security...: Apple Support Communities

  • HT204053 the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    Isa Garduño wrote:
    the only way to creat an icloud account is with a ipad, iphone or imac Apple computer.
    As you already knew, no, you cannot create a new iCloud account from anything but the above devices.
    http://support.apple.com/kb/HT4436

  • How to increase the memory for my weblogic server in Jdeveloper 12.1.2.0.0 ?

    Hey everyone,
    So as my title says, i'm trying to increase the memory for my weblogic server in my windows 7 64 bit machine, with 8GB ram.
    The values appear to be: JAVA Memory arguments: -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
    I've done some search from this forum and i've added this to my jdev.conf:
    AddVMOption  -XX:MaxPermSize=1536M (in this one i've only changed the value)
    AddVMOption -Xmx1536M
    AddVMOption -Xms1536M
    And i've changed this: MEM_ARGS="-Xms1024m -Xmx1024m" in my startNodeManager.sh file
    I'm still getting the same line in my server but i need to change the values since i'm not getting the server to run my application very well (it gets stucked in loading my databases and graphs) and i think it will continue untill i get a heap exception error.
    Any ideas of how to change this?
    Regards,
    Frederico.

    Thanks Alejandro .
    I'm going to ask you another question and this one is quite important.
    Whenever i run my project a couple of times, i'm not able to retrieve the page, it just gets stuck on loading.
    It just stops the loading, like its a really really slow page. I'm not using a lot of rows in my database so i don't take to much memory but it doesn't load and i know everything is fine but i just added some graphs after testing it.
    Do you know why?
    In the console it says that everything is fine and shows the link for the page but it never loads completely until it gives a error because it does not respond in 600 seconds.
    Strange right?

  • Is it possible to create a program for embedded system

    Is it possible to create a program for embedded system?

    Yes. Many solutions.
    1 = http://jcx.systronix.com/
    2 = http://www.harbaum.org/till/nanovm/index.shtml (see links to Asuro)
    And many more but I'm too lazy too look them for you ...
    Dan

Maybe you are looking for

  • Multiple Windows in Different Spaces

    Hello, I'm wondering if there is a way to have multiple windows from the same program open in different spaces. For example, I'm working on my dissertation and I'd like to have my primary Word file open in one space and research Word files open in di

  • LDAP (OID) integration with java appilcation( Urgent imp.)

    Currently we are using the OID-LDAP as the repository for storing username, passwds and other attributes. All applications that need authentication will essentially be using the OID. In our effort to do the same we are encountering the following prob

  • When charging iPhone, cannot get calls

    Hi there, I realized as I am charging my iPhone after installing Snow Leopard, my phone won't take calls and is unavailable, thus flies straight to my voice messages. Also I tested SMS to my own phone using my wife's phone, still no messages until I

  • Partner function AG (Sold-to-party) - read the partner code

    Hi All! I tried to write an ABAP code to get the alphanumeric key, which clearly identifies the partner with partner function AG (Sold-to-party) and RE (Bill-to-party) for the Outbound delivery. I want to compare this two values and output an message

  • How to detect data errors?

    In applications such as healthcare, errors in data stored in a database could lead to so called Adverse Events even death of a patient. Clearly, if erroneous data could be detected then the user could be warned not to trust what is displayed. So, wha