GetDefaultJavaVMInitArgs(void *) structures?  which one do I use?

Environment:
Windows XP sp1
J2SDK 1.4.1_01
P4 - 512meg ram
Microsoft Visual C++ 6.0 sp5
Question:
I'm writing a program that creates a Java Virtual Machine and launches a static method from a class. It works good so far. Going through the limited documentation on the Invokation API and looking through the jni.h; I came accross two structures that can be passed to the GetDefaultJavaVMInitArgs() function (JDK1_1InitArgs and JavaVMInitArgs). I tried using both of them, and both seem to work just fine. What is the word on these two structures? Which one should is proper to use with today's JVMs?
My other question is that when I call the function GetDefaultJavaVMInitArgs() with the appropriate version set, it returns successfull. It does not however update any of the fields in the structure passed in? Is it supposed to do something? If I leave this function call out of my program, my program seemingly works exactly the same. Thanx for any advice in advance:
- Chris

>
Environment:
Windows XP sp1
J2SDK 1.4.1_01
P4 - 512meg ram
Microsoft Visual C++ 6.0 sp5My environment is exept from W2K the same
Going through the limited
d documentation on the Invokation API and looking
through the jni.h;So I am not the only one who can't find decent documentation
My other question is that when I call the function
GetDefaultJavaVMInitArgs() with the appropriate
version set, it returns successfull. It does not
however update any of the fields in the structure
passed in? Is it supposed to do something? If I
leave this function call out of my program, my program
seemingly works exactly the same. I have encountered the same thing: GetDefaultJavaVMInitArgs() doesn't do Jack shit with the structure !
In some examples I've seen that people initialize these structures themselves, but it seems that's not even necessairy. Somehow I get the feeling the our approach will have some consequences that we don't know about (yet)...
There must be some reason why you should call it, and why it failes in our case.
Can anyone please tell us what's going on ?
Appreciating all help,
Pieter.

Similar Messages

  • Two graphics card on macbook pro which one do I use?

    I have two graphics cards on my macbook pro. ADM random 6490m (256mb vram) and Intel HD graphics 3000 (512mb vram). My question is which one should I use? I don't do any hardcore gaming or photoshop. I guess that I am just looking for the best display and least buffering if that even has anything to do with the graphics card. I just want to get the most out of my macbook. I appreciate any advice. Thank you.

    Your MBP more or less chooses which graphics card to use automatically.  In System Preferences>Energy Saver, check Automatic graphics switching.  When it's checked on, it will use the higher power and higher quality dedicated AMD 6490 when you're plugged into the wall, and uses the Intel 3000HD when on battery.
    I have downloaded gfxCardStatus to give me more control over which graphics card to use.  There are times I might want the AMD while on battery, even though it runs hotter and uses more battery life. 
    Either card will do well with HD movies, though I notice a lot more artifacts with the Intel 3000 when the movie has a lot of action or explosions or sounds.  If you want to do hardcore gaming, you need the AMD of course.  Photoshop is more dependent on the central processor rather than the graphics card, so I'm not sure you'd have much issue using either one.

  • Difference between photoshop cc and photoshop cc 2014   how do i know which one I am using?

    difference between photoshop cc and photoshop cc 2014   how do i know which one I am using?

    Hi Petereas,
    Both are different version of Photoshop application.
    In Photoshop CC 2014 there are several new feature introduced than CC.
    Please refer the following page on whats new in Photoshop 2014.
    Photoshop Help | New features summary
    When you go to Help>About Photoshop then Photoshop 2014 shows version 2014.0.0 Release.
    Hope this helps.
    Thanks and Regards,
    Sumit Singh

  • 2 Graphic cards installed, which one I am using?

    Hi, I have a macbook pro with 2 graphic cards, an Intel HD graphics 3000 and a AMD Radeon HD 6750, I want to know which one am I using by default, and how can I get the best performance for use in graphics software, like photoshop cs5. Thanks

    Your system will automatically switch between the integrated GPU (HD 3000) or the AMD video card (more powerful) depending on the application you are using.  There is an excellent application (free) called gfxCardStatus.  This will put a little icon in your menubar showing you which card is in use.  It will also allow you to lock in either if you choose to do so:
    http://codykrieger.com/gfxCardStatus

  • AppleCare for Macbook - Which one can I use M8852LL   /A  or  /B ?

    AppleCare for Macbook -
    Which one can I use M8852LL /A or /B ?
    /A is older version /B newer version , I think both are good for Macbook, but can't get a definite answer from Apple. Anyone here know ?
    Macbook 1.83   Mac OS X (10.4.7)   Combo Drive, 2G, 120G HD

    more to say...
    Deciding factor should be price.I've found these folks have the best price on AppleCare.
    http://lacomputercompany.com
    Jim
    PowerBook G3 500 Mhz "Pismo"/ 2.0Ghz BlackBook 2GB OWC RAM   Mac OS X (10.4.7)  

  • Difference between PDS and PPM and which one should be used for SNP /ppds?

    Hi Gurus,
                 Just wanted to know what are the difference between PDS and PPM ?
    1. For what industrial products we use PDS and PPM in SNP and PPDS?
    2. which one can be refered to clients?
    Please let me know it will be really great if anyone let me know the answers
    Thanks & Regards,
    Raj

    Hi Rajkumar,
    I have given below the detailed comparative account of PDS Vs PPM. Please copy and put it in an excel sheet in different columns and then read which is easy to understand.
    PDS
    1. Production Data Structure (PDS) in APO 3.1 & Run Time Object (RTO) in 4.0 and above versions
    2. Master Data Object
    3. Useful for scenarios where the compoenent has got different validity periods
    4. Used as Master data Basis for Planning in SAP-APO
    5. Contains active Master data from iPPE (Integrated Product and Process Engineering) generated from a production version
    6. PPDS PDS & SNP PDS can be used as master data for planning
    7. Change Management, variant configuration & Phantom assemplies are supported in PDS
    8. Sub-contracting in SNP is fully integrated with R/3 is supported in PDS
    9. Direct transfer of SNP PDS from R/3 is possible
    10.Rapid Planning Matrix can be generated
    11. Not possible to maintain PDS directly in APO and can be used only in combination with R/3
    12. The transfer of data changes is simpler
    13. Not possible to create alternate SNP-PDS in std system for different mode combinations
    14. PDS can be automatically generated from two sources ie R/3 and iPPE
    PPM:-
    1. Production Process Model
    2. Master Data Object
    3. Cannot be used for scenarios where the component has got different validity period
    4. Used as Master data Basis for Planning in SAP-APO
    5. Contains active Master data generated from the combination of routing (BoM & receipe) and production versions
    6. PPDS PPM & SNP PPM's can be used as master data for planning
    7. Not supported by PPM
    8. Not supported by PPM
    9. Not possible here. SNP PPMs will be generated via PPDS PPMs
    10. Not possible
    11. PPMs can be directly created in APO and can be modified without R/3 also.
    12. Little Complex when compared to PDS
    13. Alternate SNP-PPMs can be easily created
    14. PPM can be generated automatically generated only from R/3
    PDS is used in industries wherein there are multiple components or assemblies having diffeent production versions whose validity periods are different.  PPM is being used typically in process industries, chemical industries.  PPM is very simple in its usage and very flexible in operations in terms of modifications at APO level and can be referred to client depending on the business requirement
    Regards
    R. Senthil Mareeswaran.

  • Which one better to use - jsp:useBean or import statement

    Hi,
    I just want to know that which one is better to use jsp:useBean or import statement .
    I can instantiate and call method of myclass -
    1) by importing the class through import tag in jsp as <%@page import="myclass"%. or
    2). by using <jsp:useBean tag....
    i have these two option to do the same thing. i know that basically useBean is used to call setter and getter method of bean class and but it can be used to call a normal java file that have some logic .
    so what should i used , which one is better and why?
    useBean provides scope and object instance so no need to create object by new operator. and with import you have to create an instance .
    but which tag should i use in my jsp?
    i am confused???

    ok, means i can use jsp:useBean tag for all my
    classes that are not actually bean. so it will be
    instantiated at run time and provide efficiency .No. Jsp:useBean is used for java bean components.
    >
    but when should i use import statement in my jsp and
    it happen at translation time so will it create any
    type of burden for my code if i import multiple
    classes.For non-java beans, you need to import the classes, period.
    It's not a burden, it's a necessity.

  • With multiple Oracle Clients how do you know which one ADO is using

    Currently using Oracle client 8.1.7 to connect to a 10g database with the following connection string.
    Driver={Microsoft ODBC for Oracle}; CONNECTSTRING=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=10001))(CONNECT_DATA=(SERVICE_NAME=Falcon2))); uid=Falcon;pwd=*******;"
    If I add a second, newer client, how do I tell ADO to use the newer client?
    Thanks,
    Dave

    Go to icloud.com, sign into each of your iCloud accounts and see which one(s) contain your data.

  • Touppercase vs tolowercase (which one do you use?)

    I was curious to know which one was more popular. I did some searching and found:
    tolowercase     onesearch: 1,118     google: 157,000
    touppercase     onesearch: 1,135     google: 45,700
    So, on these forums it seems that they are roughly equally used. But out in the real world (Google) tolowercase (case-insenstive) is 3 times more popular.
    My guess is that upper-case is the Internet way of yelling, so people would reduce the risk of offending someone by using lower-case. Any other ideas?

    the conversion to upper case for some characters like the german sz-ligature (&szlig;) is slightly more complicated than you'd think, so to make unsigned comparisons you should rather convert to lower case.
    But searching for something on google and claiming one thing is more "popular" than another basing solely on the results seems very strange to me...

  • VirtualBox vs VMware.. which one do you use?

    Which one do you all use here?
    Which one do you think is better?
    Before, when I was using Ubuntu, I always used VirtualBox, I guess I liked it.... But now thinking which one to pick.
    I heard in VMware you can run some games (which I can probably run in Wine, but still).

    I use VMware Workstation 7.
    While I love Free Software, the Free version of VirtualBox lacks USB support, which is a big loss for me.
    So, it's between two pieces of proprietary software, despite one being $0.
    Workstation unofficially supports OS X guests (questionable legally, use Google), seems to have better guest desktop speed, and has better SMP and video acceleration for me.
    Also, VirtualBox has been more buggy in my experience, especially with tiling WMs.
    The one thing VirtualBox can do that VMware can't, though, is perform low-level operations on crApple devices: http://ranguvar.wordpress.com/2009/11/2 … irtualbox/
    So, I keep it around to help out my friends who buy into those sorts of things.
    QEMU is nice and KISS, good for testing alternative OSes like Plan 9 and other *nixes, just suffers from horrendous disk speed.
    Last edited by Ranguvar (2009-12-18 03:58:58)

  • SharePoint Databases - How to determine which ones are being used and which ones aren't

    I am not sure where to exactly post this question.  On the SQL Server side or on a SharePoint side.
    I am a SQL Server Database Administrator who is monitoring some SharePoint databases.  On a daily basis it seems that they are creating new databases but don't delete the databases that they are no longer using.  For example, they might be testing
    on a development server and if things aren't working properly instead of asking that the databases be deleted they just go ahead and create new databases to do what ever they need to do.  Is there a way on the SQL Server side to determine which SharePoint
    databases are being used and which ones aren't being used?  Or does one determine this information through the SharePoint Central Administration console?
    lcerni

    Hello,
    The following query gives you the databases now in use.
    SELECT
    DISTINCT d.name
    FROM
    sys.dm_tran_locks
    tl INNER
    JOIN sys.databases
    d
    ON
    tl.resource_database_id
    = d.database_id
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Which one do you use?

    I recently started asking myself which stability and stress program to use.
    Theyre many, but i usually chose between those 3:
    1.Stress prime 2004 by Johnny Lee
    2.Super Pi by the japanese record breaking guys
    3.the well known prime95 (which i dont like to use to test my machines).
    prime 95 lacks information and details IMO but is reliable(at least thats what people say), and many people dont know how to use it at first sight(including me), asking themself what is s11t this for?
    super pi does not take much time to complete the 32million task, so im not sure about its reliability.
    and finally the one that i think is the best is the stress prime 2004 which i like the most, and the funcitons are there and it shows everything in details. the source is taken from prime95 but redone to give better results and details.
    so c'mon you o/cers, which one do you prefer ? maybe you can suggest another good one from the rest which you find interesting and reliable!!
    and pls no everest or sandra stress test suggestions.
    good day

    Quote from: HighTest on 20-September-06, 04:09:34
    I use the following:  http://www.7byte.com/index.php?page=hotcpu
    Hot CPU pro is available in an evaluation version that doesn't perform all the tests but still has an accurate diagnostic and burn in mode.
    I licensed for the full features and find it works fantastic.   Pressing the diagnostic performs tests of the chipset, cpu, memory, hard drive and more for 6 hours and then tells me the result.   Or I can run Burn in and test it much more extensively.
    LOL .. we had quite a discussion a few years back about this .
    Here's a post thats quite amusing :  https://forum-en.msi.com/index.php?topic=63480.0
    I have experienced full so called "prime stable" test over 8 hours just having HotCpuTest fail as it just doesn't do prime numbers calculations or Pi calculations but some more and it's one of the best progs to get you down to earth when you thought your system was overclocked stable.
    In addition back then there was some faults in prime95 build x.xx (don't remember) with certain setup with A64 page file size and amount of memory.
    Was like talkin' to certain stoneheads back then .
    Read the thread through and see why not only trust one cpu calculation/benchmark prog  :D
     

  • Why do I have three versions of illustrator and which one should I use?

    Hello,
    I have CC, CC 64 bit, and CC 2014 on my computer.  Is there a difference?  I originally downloaded both CC and CC 64 bit because I didn't know if it mattered or not which one I use.  Then the 2014 version was in creative cloud, and I figured it was an update, but now I have three versions. 
    I use Windows 7 Professional 64-bit
    Thanks,
    Caleb

    Caleb,
    CC2014 is a new version, which in some ways are closer to the CS versions because some features have been reintroduced.
    If you are happy with CC2014 you may uninstall the others.

  • Watch HULU on HDTV - iMac or MacBook Pro? Which one should I use?

    I have this dilemma which computer would perform better on streaming video from the net. I wanna drop the cable company so I have been looking to buy a converter to HDMI with AUDIO included like this: http://www.brilliantstore.com/hdmicables_dekcell_cpa1454.html
    or like this:
    http://www.kanexlive.com/products/item.aspx?id=3495
    but can't make up my mind if I should use the iMac or BMP and they have different video output (Mini-DVI/Mini Display Port). So I could use some feedback on which one you think would handle the project better (speed, resolution... etc.) or if it's make any difference at all, for specs please look below.
    Thank you!

    The Imac and you don't need any converter.

  • 2008 macbook. In need of a word program, which one do i use?

    I have recently purchased a used 2008 macbook. I do not have a word program yet, and am unable to install the new pages program at the app store.
    Which program can i use for this computer?
    Thanks!

    If you can't install Pages it is probably because the system on the computer isn't new enough. Either you find on the net iWork 09 dvd which can be installed on your computer  or find another word processing program. You already have TextEdit on your computer but there are many "out there" that you can try.
    iText express, Bean, LibreOffice, TextWrangler and many more

Maybe you are looking for

  • My "fix" to print problems in LR (using MS XP)

    Having had the same problems printing from LR as many others are complaining about, I thought that I might give my 2 cents to what I did to solve (?) the problem. I have to run with current setting in a while to be convinced that it is not just an in

  • Using Sql Functions in Crystal Reports

    Can SQL table-valued functions be used in Crystal Reports?  The only options I see in the Database Expert are Tables, Views, and Stored Procedures.

  • Unable to clear memory in C++ Managed application

    I have written a win32 project and it internally calls C# forms(using /clr) to do few tasks.  Once the task is completed, the form is closed. But the problem is what ever memory is allocated after loading C# form is not getting cleaned up. I tried GC

  • How to validate the number of characters in Text Entry box?

    Hi I have inserted a text entry box and assigned a variable (UserName) to it. Now, I need to limit the entry to a maxinum number of 20 characters. In other words, how do I validate the number of characters in the text entry box and provide feedback i

  • Windows Folder taking All Disk Space?

    Hello SharePoint Fam, I got alert today in CA saying that my APP Server was running low on disk space C drive.  C Drive is 80GB and Windows folder is taking almost 30GB of that data.  C drive only has 10GB of space left.  I know alot of important sys