Can I create more than one instance of a native library?

Hello all,
I am using Java to access a Win32 DLL with JNI. Everything is working fine, but I have several threads using the same instance of the native library because it is loaded "statically" in the Java class which uses it, and I suspect I am getting a bottle-neck at the native library.
Does anyone know if there is any way to load more than one "instance" of a native library?
The use of System.loadLibrary() would indicate not, and my (limited) knowledge of the Windows environment would tell me that a "shared" library only has on instance. (confirm anyone?)
I need to find a way around this bottle-neck issue... (and "no", before anyone suggests it, I can't ditch Windows!)
Thanks.

I am not sure about the behaviour of the dll as it's not mine. It's a COM DLL which I have "wrapped" in a standard windows DLL so I can expose the JNI methods. I assume because it's COM that it IS reentrant, but I am a bit of a novice when it comes to Windows and COM. I didn't install the COMponent either, it was installed as part of another application. (It's an antivirus COM dll that is part of an AV application)
Thanks for your help though, I think I will just have to live with it.

Similar Messages

  • Can i create more than one instance for single database?

    HI
    anybody can tell me how to create more than one instance for single database(without using RAC)?
    thanks
    Kalanidhi

    Anandji,
    I sometimes think differently. I also think like what this person is asking..(although I have installed and administering 5 different RAC databases)
    The main doubt of mine is that we create multiple instances accessing the same storage area.
    Anyway the controlfiles of all instances will have the same information except the instance_names and instance id's.
    Hence I always think , why can't it be possible to to create another instance in the same system and point it to a controlfile which is copied from the other instance.
    Why can't the same files be shared between the two instances in a same system ?
    I know I am thinking a little bit confusing...
    Anyway I need to test that also...
    Mahesh.

  • Can I launch more than one instance?

    Can I launch more than one instance of the same AIR
    application?

    Check out page 309 of the AIR Dev Guide "Only one instance of
    an AIR application is started. When an already running application
    is invoked again, AIR dispatches a new invoke event to the running
    instance. It is the responsibility of an AIR application to respond
    to an invoke event and take the appropriate action (such as opening
    a new document window)."
    It looks like we have to handle this InvokeEvent.INVOKE event
    and programatically create a new instance of the application.
    If anyone's done this already an example would be a big help
    as this will be a VERY common use case.

  • Can I create more than one bookmarks toolbar?

    I'd like to set up several toolbars -- one for myself & my favorite sites .. one for my kids for their school needs ... and one for my husband. Can this be done? Will all three show up at the top?

    pajagsfan wrote:
    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)
    I know it's Valentine's Day, but before you get your wife fixed up the first thing you need to do is recover the deleted albums for your own library.  See if the files are elsewhere on your hard drive, or in the Recycle Bin.  When you find them, get them back into your own library.  Now you are ready to help your wife.
    As noted above, you can have two libraries in one Windows user account via the Shift-Start approach, but if you both use your libraries regularly, that becomes annoying quickly.  It is better to set her up with her own Windows user account. She can have her own iTunes library there.
    Get a copy of your entire iTunes folder to start her off.  She can delete stuff she doesn't want without messing you up.

  • How can I create more than one main window in a page of SAP SCRIPT?

    How can I create more than one main window in a page of SAP SCRIPT? If anybody helps me I will be obliged.
    Regards,
    Subhasish

    Hi Ganguly,
    It is possible to have more than one main window in a same page.
    You create a main window and simply you copy and past it in the same page.. it will create first main window name as MAIN and other main windows as MAIN01,MAIN02.... up to MAIN99.
    Contets flow from MAIN , MAIN01, MAIN02.......................MAIN99. contents after filling the current window it flows to next window(by default, you skip as well with some keyword not sure could be NEW-WINDOW)
    you want print the main window data twice? or you want to create two main window in the same page ?
    1. give two copies in the no of copies in the output type screen ( Which pop up is coming after excute the program ).
    2. create two page with the same script form.
    3. you can write the coding inside the program to print twice the same page.
    Hope this information use full to you..

  • Can i create more than one library on the same computer?

    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)

    pajagsfan wrote:
    Can I create more than one library on the same computer?  Just got an ipod for my wife but didn't want her to have to use my library to sync to, so I thought I created another library for her.  When I deleted my albums from her library the disappeared from mine. (I think?)
    I know it's Valentine's Day, but before you get your wife fixed up the first thing you need to do is recover the deleted albums for your own library.  See if the files are elsewhere on your hard drive, or in the Recycle Bin.  When you find them, get them back into your own library.  Now you are ready to help your wife.
    As noted above, you can have two libraries in one Windows user account via the Shift-Start approach, but if you both use your libraries regularly, that becomes annoying quickly.  It is better to set her up with her own Windows user account. She can have her own iTunes library there.
    Get a copy of your entire iTunes folder to start her off.  She can delete stuff she doesn't want without messing you up.

  • In smart form, can i create more than one main window,

    In smart form, can i create more than one main window,
    if no, then why?

    Hi,
    As for main window a page can have only one.
    You may have number of Variable windows
    Main window can only be one. One it can be copied to next page.
    but secondary window as many as u want.
    Reward if it helps..
    Regards,
    Omkar.

  • Can I open more than one instance of CC5.2?

    In my experience, I have not been able to find a way to open more than one instance of CC5.2.  If I want to run an SOD user analysis and an SOD role analysis, for example, I have to run one and wait for the results to return before I can run the next analysis.  
    If I open a new instance of Internet Explorer and type in the url for CC5.2 while CC5.2 is already running in a separate instance, it overwrites whatever is running and reopens CC5.2 all over again.
    In CC4.0 I was able to open multiple SAP sessions and run multiple SOD reports.  I understand 5.2 is a web app, but it seems the code should be smart enough to allow me to open multiple IE instances to run multiple analyses. 
    Am I missing something?
    Thanks,
    Sandy

    Hi Sandy,
      What about option to run your analysis jobs on the background ?
      You can still be in your IE session, but schedule several analysis to run on the background. On completion of the jobs, you'll be able to check output results for each of them.
      Advantage of this is that it also doesn't depend on your link between your machine and CC server which could be an issue for the foreground jobs.
    Best regards,
    Laziz

  • Can i create more than one db in a machine?

    can i use "create database" to create more than one db in a single machine?

    I understand what you're saying and it's sound advice. When you said crash I took it as meaning at the database level
    and not the server level. As I said before, one database crashing will not effect another on the same server. If the server
    crashes both databases will crash too. I think we both agree on that.
    then you will have more than one job in hand.... And to get things up-and-running, will take that much longer.....True, but there's other things to consider in the real world. For example one of our servers contains our development/test
    database and our production database. I hate to sound like management here(which I'm not) but why should we buy another
    server for 5-8 people to use for development/testing? The cost of a few developers not working for a while and DBA restoring
    the database in the rare case of a server crash is less expensive than buying a second server. Maybe if we had more
    developers for this system a second server would be justified. Another reason for not having a second server may be that some
    people can't afford a second server.
    So can you install more than one database on a server? Yes
    Is it better to have one database per server? Yes
    Is it always justified to have one database on a server? No

  • Can not create more than one model on one table

    My table and tablespace, and semnetwork have been created successfully, with following SQL:
    CREATE TABLESPACE MYONTOLOGY_TBS
    DATAFILE 'C:\Oracle\oradata\odb1\myontology_tbs.dat' SIZE 1024M REUSE
    AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED
    SEGMENT SPACE MANAGEMENT AUTO;
    EXECUTE SEM_APIS.CREATE_SEM_NETWORK('MYONTOLOGY_TBS');
    CREATE TABLE MYASSERTIONS
    ID NUMBER NOT NULL,
    ASSERTION MDSYS.SDO_RDF_TRIPLE_S NOT NULL
    TABLESPACE "MYONTOLOGY_TBS";
    Then, I tried to create two models on that table, as following:
    EXECUTE sem_apis.create_sem_model('amodel', 'MYASSERTIONS', 'ASSERTION');
    EXECUTE sem_apis.create_sem_model('bmodel', 'MYASSERTIONS', 'ASSERTION');
    The result was:
    anonymous block completed
    anonymous block completed
    Error starting at line 2 in command:
    EXECUTE sem_apis.create_sem_model('bmodel', 'MYASSERTIONS', 'ASSERTION');
    Error report:
    ORA-13199: Internal error in SDO_RDF.CREATE_RDF_MODEL: SQLERRM=ORA-55300: model bmodel does not exist dss=
    SELECT count("ASSERTION") FROM "MYASSERTIONS"
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF", line 937
    ORA-06512: at "MDSYS.SDO_RDF", line 972
    ORA-06512: at "MDSYS.RDF_APIS", line 726
    ORA-06512: at line 1
    13199. 00000 - "%s"
    *Cause:    This is an internal error.
    *Action:   Contact Oracle Support Services.
    It seems that more than one model can not coexist on one single table, is that right? And is it means that, if I wanna manage a large number of models, I must create and manage the same large number of table? On my case, I have hundreds of models to handle and thousands of predicates in each on average, I don't think managing hundreds of tables is a good approach, is there another way?

    Oracle may think manage metadata of their database is a simple and interesting task, but I don't think so. I believe that manage database metadata should only be oracle's duty, I would never involve even one single line of DDL in my software. So if I can not store multiple model in a single table, or at least a certain number of tables, I have to discard oracle's solution, and build one of myself.

  • Can't select more than one instance

    Hi All,
    wonder if anyone can help,
    I'm trying to get Qmaster to use more than one core(instance). but the options for selected service is greyed out for compressor, and its stuck on 1 instance, "Rendering" service is allowing me to change instances, but not compressor. Ive done a search, and as a result have reset background processing. I dont have mobile me so Back to my mac doesn't apply either.
    I have a mac pro 2.93 eight core running OS 10.6.2 on 16gig of ram - compressor is v3.5.1
    many thanks in advance
    Andy

    The 50% rule is for the first round of MacPros which could run one instance per core. The current models can run two instances per core. Check Barefeets.com for current processor testing and qmaster configuration recommendations
    One of the time limiting issues with running more and more instances is that your output file is cut into more and more segments. If all the cores are fully loaded you will not find faster encodes with more cores specified in the Qmaster but you may have slower overall project completion times. This is due to the overhead in recombining all the smaller clips back into the final file. Fewer but larger clips seem to recombine faster than more but smaller.
    again, ymmv.
    x

  • How can I create more than one printer queue for a printer

    I would like to have more than one "default" setting for my printer.  This is so I can use a 3rd party print utility (fingerprint) to print to a non-airprint printer from my ipad.  The utility prints using the default configuration.  I don't need to get fancy here.  Just "draft B&W' , "normal", and "Color best quality".  If I need something else, I can always email the document to my MacBook.  The utility has something about a virtual printer, but all I could find about that is that it is used for PDF printing and maybe a workflow.
    My technology level:  Used to be a programmer,  after a decade of retirement, I can't even program an applescript today.

    Take a look at this add-on.
    https://addons.mozilla.org/en-US/thunderbird/addon/signature-switch/

  • Can I create more than one URL link in a single Flash (SWF) file?

    I created a simple SWF slideshow in Flash with 5 slides. I was able to link one URL to the whole file by adding an alpha button.
    What I can't figure out is how to add a URL link to each slide. The SWF file i sused on a website and I would like to be able to click on a particular slide as it is playing to go the a site or page that applies to that slide.
    Is there a way or code I can use to do this??
    This is the code I am currently using for the button now.
    ja_btn.addEventListener(MouseEvent.CLICK,mouseClick);
    function mouseClick(event:MouseEvent):void
                   var request = new URLRequest("http://www.jakeandamos.com/");
                    navigateToURL (request,"_blank");
    I am just learning this stuff so I can use your help, Thanks!

    You cannot duplicate instance names or function names, so you'll need to create unique names for each one that behaves differently.  So you can only have one function named "mouseClick"... if you want to have another function to link somewhere else you need to create a new name for that function ("mouseClick2" would work)
    There are alternate approaches, but for now this will be the easiest for you to deal with.

  • How can I create more than one program shortcuts in LabView Installer?

    I have builded 3 executable files in LabView Application Builder. I want to create an installer (using the same application builder) that can copy the 3 files to the same destiny directory, install the Runtime Engine and create (in the same program group) 3 shortcuts for the executables. Is it possible with LabView Installer?

    The Application Builder does not offer this option. It is really intended as a basic installer builder. However, you can use other software packages to enhance your isntaller. There are many third party installer builders that you can use to modify the msi file which the application builder create for you. You might want to check one of those out and use it for your application.
    J.R. Allen

  • Can i create more than one attributes for the custom class created using java API

    Hello everyone,
    I have been creating class and its attributes programatically using java APIs, I want to know that is there any way to create multipal attributs for the same class in just one call of API with all the options for each attributes,
    thanks

    You can create a new class and define all of the Attributes at the time the class is created - this is the preferred way of creating classes. Use the addAttributeDefinition() method on ClassObjectDefinition. If you need to add attributes to existing classes, you can only add them one at a time (using the addAttribute() method on ClassObject).
    (dave)

Maybe you are looking for

  • My Custom Converter Doesn't Work With DataModel

    Hi, I have this simple object with its custom converter taken from the Core JSF Book. It works fine, but when I put it in DataModel, somehow it didn't get updated. I don't put the whole codes here, only the important parts. Any1 knows what is the rea

  • Direct Shipment of Subcontract stock to customer

    Dear Gurus, Does anyone know if there is a way to direct ship material to a customer from a subcontractor where the sub-contract stock does not need to be manually received back into the plant (MIGO 101) and then shipped out to the customer.  I would

  • Business Catalyst Sandpile meeting 10 July

    Partner Call 10th July US, UK, 11th July AUST TIme: 8.00 PM, 10th July, NEW YORK Time - check your timezone here... http://www.timeanddate.com/worldclock/meetingtime.html?day=10&month=7&year=2012&p1=179&p2= 5&p3=196&p4=240&p5=226&p6=80&iv=1800 Please

  • Iphone 5 flash

    I have a problem with my flashlight on my Iphone 5. When I turn on my flashlight (in this case with IOS7) via its own flashlight app. It will turn on once, but after I turn off the flashlight it won´t turn on again. But if i wait for a while it can b

  • Iwork...not working

    Hi, folks need some help. I have read through a lot of the posts but cannot find the same symptoms to my problem. Basically the whole of iWork doesn't seem to be working. In pages I cannot open any templates or existing documents from new or the temp