Is there anyway to open multiple instances of a dll?

I have a dll in which controls an instrument. I need to communicate to multiple instruments with this dll. This dll only supports 1 instrument at a time. Is there anyway to load multiple instances of this dll and call same functions from each dll instance for different instrument.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1

The idea as I understand it is something like this:
HANDLE MyLoadLibrary(LPSTR dllname)
// check in a global list if the DLL is already loaded
// if it is
// copy it to the temp directory with a different name and load it from there with LoadLibrary()
// else
// LoadLibrary() the requested DLL
// store the DLL name and handle in our global list
// return the handle
void MyFreeLibrary(HANDLE handle)
// search the handle in our global list and remove the entry
// FreeLibrary(handle);
That all said it may work for a particular driver but more likely the driver will stumble somewhere over the fact that its functions expect to have exclusive control over certain lower level resources. It's definitely a sure way into maintenance nightmare and you should consider to use or create a different driver almost at all costs if possible at all.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Is there any version of Indesign that allows to open multiple instance at the same time

    I am using Indesign CS3 to generate the bulk reports automatically(programmatically) using Adobe indesign library . One of the key limitation to this tool is it allows to open only one instance at a time unlike word where multiple instances can be opened at the same time. Is there any adobe indesign too version desktop/server which allows to open multiple instances at the same time. Any help on is appreciated. Thanks.

    @PeterG
    You said "You might want to examine the End User Licensing Agreement (EULA) for  any prohibition against using these two instances at the same time with  the same license; the license does permit two installs for the same user  that are not used simultaneously." I thought that meant you had read the EULA. It's pretty unambiguous on that point.
    For everyone's edification about multiple installations and server use with a standard license here's the relevant text:
    2. Software License.
    If you obtained the Software and any required serial number(s) from Adobe or one of its authorized
    licensees and as long as you comply with the terms of this agreement, Adobe grants you a non-exclusive
    license to install and use the Software in a manner consistent with its design and Documentation and as
    further set forth below. See Section 16 for specific provisions related to the use of certain products and
    components, for example font software, Acrobat, After Effects, Adobe Presenter, Contribute, Adobe
    Device Central, Flash Player, Flash Builder, and Adobe Runtimes.
    2.1 Limited Use. The Software, or portions of the Software, may allow installation and use without a serial
    number. If so, you may install but not use such non-serialized Software on any number of Computers as
    part of an organizational deployment plan. Further, you may install and use such non-serialized Software
    on any number of Computers for demonstration, evaluation and training purposes only and only if any
    Output Files or other materials produced through such use are used only for internal, non-commercial and
    non-production purposes. You may not use such non-serialized Software after any applicable time-out
    period has ended, unless you input a valid serial number under Section 2.2. ACCESS TO AND USE OF
    ANY OUTPUT FILES CREATED WITH SUCH NON-SERIALIZED SOFTWARE IS ENTIRELY AT
    YOUR OWN RISK.
    2.2 General Use. You may install and use one copy of the Software only on the Permitted Number of your
    compatible Computers into which you enter a valid serial number.
    2.3 Distribution from Server. You may copy an image of the Software onto Computer file server(s) within
    your Internal Network for the purpose of downloading and installing the Software onto Computers within
    the same Internal Network for use as permitted by Section 2.1 and 2.2.
    2.4 Server Use. You may install the Software on Computer file server(s) within your Internal Network only
    for use of the Software initiated by an individual from a Computer within the same Internal Network only
    as permitted by Section 2.2. The total number of users (not the concurrent number of users) able to use the
    Software on such Computer file server(s) may not exceed the Permitted Number.
    By way of example, the foregoing does not permit you to install or access (either directly or through
    commands, data or instructions) the Software: (a) from or to a Computer not part of your Internal Network,
    (b) for enabling Web hosted workgroups or services available to the public, (c) by any individual or entity
    to use, download, copy or otherwise benefit from the functionality of the Software unless licensed to do so
    by Adobe, (d) as a component of a system, workflow or service accessible by more than the Permitted
    Number of users, or (e) for operations not initiated by an individual user (e.g., automated server
    processing).
    2.5 Portable or Home Computer Use. Subject to the important restrictions set forth in Section 2.6, the
    primary user of the Computer on which the Software is installed under Section 2.2 (“Primary User”) may
    install a second copy of the Software for his or her exclusive use on either a portable Computer or a
    Computer located at his or her home, provided that the Software on the portable or home Computer is not
    used at the same time as the Software on the primary Computer.
    2.6 Restrictions on Secondary Use by Volume Licensees. If the Software was obtained under an Adobe
    volume license program (currently known as Adobe Open Options) by any licensee other than an
    educational volume licensee, the second copy of the Software made under Section 2.5 must be used solely
    for the benefit and business of that volume licensee. For more information about secondary use by volume
    licensees, please visit our Web Site at http://www.adobe.com/go/open_options.
    There is also language stating that if you have a dual boot or other system capable of running more than one OS you will need a separate license for each platform if you want to run the software on more than one.

  • How do I prevent a user from opening multiple instances on the same computer?

    On the site oldnavyweekly.com there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this?
    From my analysis it is NOT:
    1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.
    2. Flash Cookies - The block still takes place if I disable flash cookies.
    3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all.
    It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
    Thanks!

    you're welcome.
    actually, unless you take an extra step, the first opened swf will close.  if you want the 2nd to close, the initial receiving lc will send a message to sender that causes the sender to close.

  • Opening multiple instances of the same vi

    Hi,
    I am having trouble opening multiple instances of the same vi.
    This vi that I am trying to create can be used like a message display window to display numbers, strings etc (just like labVIEW's display message control except that this vi will update the displayed controls every scan). So for example, I will like to have a subvi, lets call it popup.vi, where I wire in three inputs from my main vi (2 strings and 1 number). Now in my main.vi I have 2 numeric controls Num1 and Num2 with their KeyFocus property nodes.
    The intention is that when I select Num1 or Num2 numeric control with my mouse the KeyFocus boolean becomes true and the popup.vi logic kicks in. Meaning that the popup.vi runs and opens its front pane
    l displaying the two strings and one numeric value from the main.vi.
    The problem arises when I want to open and run multiple instances of the popup.vi.
    So when I click on Num1 with my mouse I want the popup.vi to open its front panel with a set of strings and number displayed. At the same time I would want to click on Num2 control and open another instance of the popup.vi with another set of strings and numeric value.
    Also, I saved the popup.vi as popup.vit but for some reason vi server will not open the popup.vit. I get a message that popup.vit is already in memory - cannot load.
    I have attached a sample of the main.vi and popup.vi program.
    Please let me know if you need further clarifications.
    I appreciate your help in this matter.
    Thanks
    Nish
    Attachments:
    popupVI.zip ‏37 KB

    You have to clone the VI. You say you have tried to use the .vit way of cloning...but in the example there is no use of VIT and the VI is called statically. If you want to open multiple instances of the same VI and the VI has a user interface (or needs to be a unique instance of the VI every time even though it's called the same place in the diagram, not the case here though) you need to do it dynamically, i.e. with an invoke node.
    There is actually a problem doing just that, it causes a memory leak...but that won't be a problem unless the VI is called frequently / the software will be running over very long periods of time. You can see an example of it here (attached to my reply to the question):
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&
    RPAGEID=135&HOID=506500000008000000A07D0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
    About the memory leak problem:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000B7A40000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=VI+cloning&USEARCHCONTEXT_QUESTION_S=0
    MTO

  • Open Multiple Instance of Profile in Outlook 2013

    I don't believe ExtraOutlook is compatible with Outlook 2013. I'm not sure if there are any other 3rd party options either.
    Outlook 2013 can connect to multiple accounts including exchange in the same profile. What's the reason you need to run two profiles at the same time?

    Hi guys,
    Im trying to sort out an option where i can open multiple instances of Outlook profile in Outlook 2013.
    We are using ExtraOutlook at the moment for Outlook 2007 and it works perfectly, can anyone help me with an option for Outlook 2013
    Appreciate your help
    thx
    raj
    This topic first appeared in the Spiceworks Community

  • Open multiple instances for a VI

    Dear all,
      I created an application to open multiple instances(RecipeEditor.vi as attached)works fine in debug mode. But, after I build it to an exe, it gives me error 1003.
    Can you please show me some pointer what is wrong?
    Please find attached zipped package
    Thank you in advance.
    Regards,
    Vincent
    Attachments:
    New folder.zip ‏1742 KB

    my apology, Norbert.
    I attached the wrong file. This attachment is password removed.
    Thank you in advance
    Attachments:
    Recipe Editor.vi ‏286 KB

  • Stop opening multiple instances of the same application

    I am used to having graphic files on my desktop, when editing one I would simply right-click and pick "open with" > Photoshop (which is always open in its own desktop in my computer). Now out of the blue, if I do that, it loads another instance of Photoshop, which is certainly what I don't want. I can have 2, 3, 4 Photoshops running at the same time and editing the same image!
    Any idea how to solve this? I searched but all I could find is people wanting the opposite i.e. opening multiple instances of the same app.

    Your best bet to prevent this is to detach or unmount this drive; however, you can also try resetting your Mac's launch services, to have it re-scan only the Applications folders on your boot drive for programs to associate with documents and services you are using. Running the following command in the OS X Terminal will kill the current launch services database (its long, but copy and paste the entire line):
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill
    Following this, run the following command to seed the database with the apps you currently have installed:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -seed
    Note that these changes will only apply when opening documents that have not been specifically assigned to a program. If you find a specific document continues to open the program on the external drive, then you can get info on it and change the associated program in the "Open With" section of the info window. After doing this, you might need to re-run these commands above, as opening the program will register it with OS X's launch services and have it now be available for automatically handling other documents.

  • How to open multiple instance of Adobe Live Cycle Designer ES 8.2

    Hi,
      How do I open multiple instance of Adobe Live Cycle Designer ES 8.2. I have two forms and I need to compare them. Another situation is I want to correct/copy the contents by keeping the old and new one under the view simultaneously. I also want to take advantage of multiple monitors
    The MDI style windows with Ctl+Tab to switch between documents is not helping me in the context explained above
       adobe Acrobat work on multi instance if I type acrobat.exe /n;
    but if I type "C:\Program Files\Adobe\Acrobat 9.0\Designer 8.2\FormDesigner.exe" /n;, its just opening the existing livecycle instance
    please help

    I don't think you can run two instances.
    But you can stretch the main application window across both monitors and tile the two documents inside the main window.

  • Is there anyway to open a mobi format book on ipad without installing the kindle app but any other app

    Is there anyway to open a mobi format book on ipad without installing the kindle app but any other app

    Have you tried GoodReader? It claims to handle very large file sizes and it's very good for annotations. It's my PDF reader of choice on the iPad
    From the GoodReader manual:
    File types to view in GoodReader
    There are two types of viewing engines - the ones that we've written ourselves, and the built-in device's standard viewing engine. Our own engines provide great flexibility and many additional features not found in the built-in engine (for example, opening very large files). The built-in engine is very powerful and knows many file formats, but has many limitations and no additional features.
    Files of very big size (our own viewing engine):
    very large PDF files (including password-protected). File size is not the limit. Revolutionary PDF Reflow (Extract Pure Text) mode. See Viewing PDF Files for details.
    very large TXT files. See Viewing TXT Files for details.
    high-resolution pictures and other graphic files (including slideshow viewing mode). See Viewing Pictures for details.
    And as a free bonus - files of normal size (iOS standard viewing engine):
    all file formats supported by Safari engine: Microsoft Office files - Word, Excel, PowerPoint, HTML files and Safariwebarchives
    iWork'08/09 files - Pages, Numbers, Keynote (files must be saved with Include Preview option)
    .ai files saved with PDF Compatible option
    audio files (natively supported by iOS)
    video files (natively supported by iOS)

  • Error 1127 occurred when open multiple instances of the same LabVIEW top level VI?

    I try to open multiple instances of the same LabVIEW top level VI, After search some messages in the forum,I know it should use vi template, But error 1127 still occurred when i used template(In my program, Click menu file->new). The information about error 1127 is  "Cannot instantiate template VI because it is already in memory".
    Here is my code. can any one help me? Thanks.
    Attachments:
    test.zip ‏13 KB

    Hi,
    You are trying to obtain a path from the VI location but the VI has no location because its an instance of the VIT and therefore the path is <not a path>.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Re: Open Multiple Instance of Profile in Outlook 2013

    Hi Aaron,
    Thx for your reply, its for users who want to have 2  primary mailboxes, cos they want to send emails from it.
    Its more to avoid the "send on behalf " option coming for the end user , also to have the sent emails populate up in the respective mailboxe " sent item " folder
    hope im making sense
    appreciate your help
    cheers
    raj

    Hi guys,
    Im trying to sort out an option where i can open multiple instances of Outlook profile in Outlook 2013.
    We are using ExtraOutlook at the moment for Outlook 2007 and it works perfectly, can anyone help me with an option for Outlook 2013
    Appreciate your help
    thx
    raj
    This topic first appeared in the Spiceworks Community

  • Is there anyway to have multiple signature blocks without using an app?  Will IOS 5 have that functionality?

    Is there anyway to have multiple signature blocks without using an app?  Will IOS 5 have that function?

    "No" and "We don't know yet"

  • How to open multiple instances of same form thru menu items

    i'm not able to open another instance of the form.....if i want to open multiple instances of same form ...what should i do???

    Hi Shenaz,
    To open multiple instances of the same form you need to set a different FormUID to each form you open.
    So lets say your FormType is MyFormXPTO. You need can set the FormUID as MyFormXPTO_1, MyFormXPTO_2, and so on.
    If you need a code samples, take a look at this post.
    Regards,
    Vítor Vieira

  • Can you open multiple instances of Photoshop?

    I'd like to separate jobs by opening multiple instances of photoshop so I can keep them apart for organizational purposes. I work on many projects at once, so this action would be useful to me. Any advice?

    Unfortumately running multiple PS's won't work. Photoshop will simply
    front the first copy of Photoshop if you try to start two copies.
    You can run Elements and Photoshop at the same time, if that's of any use
    to you.

  • Is there any way to open multiple instances

    Hi,
    we have integrated the tool with FLEX PLM and we prepares images and uploads to Flex PLM from AI using custom scripts.
    when user uploads the first ,it will take more time as AI files will be bit more size.Shows progress bar how much content is uploaded to server.
    user cannot work on other image until the first one finishes.
    There are three solutions in my mind.
    1 : If i can open new instance then i can continue working on new one.
    2 : Reducing the AI file.Is there any best way to reduce the AI file size.
    3 : Uploading the large file to some location to upload quickly and from there to server.
    Can any one help the possibilities in option 1 and 2.
    it would be greatly helpful to me if any other idea helps.
    Thanks in advance.
    Regards,
    VEnkat

    I've moved your question to the Illustrator forum because it appears you're referring to Illustrator instead of InDesign where you originally posted.

Maybe you are looking for

  • Offline Address Book and GAL corrupted.

    I have and Exchange 2013 cluster with 3 servers all performing both CAS and MB roles. This environment was originally a 2003 server, then 2007, then 2010, and now 2013 so it has been migrated many times in the past. It seems at some point something w

  • JSF datatable - any difference with JSF 1.1 and JSF 1.2

    Hi All, In my project there are lot of Datatables, which retrieve data from the database and display it to the user. For each datatable, the columns are not fixed. I want to create some kind of component that can be reusable. It is basically a JSF po

  • Imovie 9.0.4 update...impossible

    I've just update my Mac OS from Snowleopard to Mavericks. Then I have installed iMovie 10.0 (before I had 9.0.4) that didn't convince to me. So I want to update version 9.0.4 to 9.0.9 (after uninstalling 10.0 of course) but the updating package says

  • AE CS4 Will not open after Snow Leopard Upgrade

    Ok, i posted this earlier but I don't think I was clear enough to get an answer. I recently did a clean install of Snow Leopard and a fresh install of my Production Studio CS4. Upon getting it all installed, I realized that After Effects will NOT ope

  • PE12 freezes when adding media

    I haven't used PE12 since about April, and now that I have something to do, the program will not let me add media by any means. I have already had issues with audio problems (here Re: Video Quality dropped and Audio out of sync (APE 12)) and went thr