Third-party C++ Driver : Static object

Hello,
I'm writting a C++ driver for Labview RT.
I'm using Visual C++ to compile and link this driver.
I have some initialisation problem on the target.
It seems that static object are not created correctly. All members are not created correctly and it crashes as soon as I use these objects.
Could someone confirm this problem ?
Is there someone develop a C++ driver (based on VISA) for Labview RT ? Thanks for your responses !
David Chuet

David:
For starters, note that NI does not officially support MSVC-built DLLs on LabVIEW RT. I believe we only officially support DLLs built with LabVIEW or CVI. However, in most cases MSVC-built DLLs will work fine.
As to your specific question, you are correct. C++ static objects don't get initialized. Realize that the LabVIEW RT OS (Phar Lap ETS) is Win32-like. In other words, it is not 100% compatible with Win32 and MSVC, but it is extremely compatible with a large subset of the two. This is probably the biggest difference I can think of.
My suggestion is to have static pointers to objects, then initialize them in your DLLmain. That does work and that's how we do it in NI-VISA.
Dan Mondrik
National Instruments

Similar Messages

  • How can I install OSX on a new third-party hard drive in my Macbook Pro?

    I'll start off by saying that I bought my MBP (Mid 2009, 13 inch) used two years ago, and the seller never thought to mention that he had installed a third party hard drive not long before selling it to me... First problem.
    Anyway, the hard drive crashed. I'm installing a new hard drive, but I'm worried about getting back to having Mountain Lion. I'm confused by the process - Some say I can start by ordering a retail copy of Snow Leopard on Amazon, some say I need the OS disc that originally came with the computer (which obviously I don't have), and some make it seem as if there's a special version of Snow Leopard I need to order from the Apple store?
    Help.

    There is no special version of Snow Leopard (other than what ships with a Mac of that vintage). There is a regular retail version. It is a good idea to have a copy.
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    After you install the new hard drive boot the computer from the OS disk, and install OS 10.6.
    If you want a more recent OS, sign in to the App Store - use the same ID and password you have used here.
    There you can download Yosemite, it's free.
    I assume your MBP meets the requirements for Yosemite. If it does not, or if you want an earlier OS than 10.10, you should be able to find it at the App store.

  • NI UMI-7772 and third party Stepper Drives

    Dear all
    Now we want to control a stepper motor with voltage ratings up to 110 V and 0.5 A at 110 V 
    we have the 2 Axis PCI-7342 motion controller and the NI UMI-7772 Terminal block for third party motor drives
    please advice , what is the suitable third-party stepper drive that can fullfill the above ratings and compatible with the UMI-7772 ??
    i have found only one link for a company called ParkerMotion (check this link : http://www.parkermotion.com/literature/pdf/aries.pdf ) but I'm not sure if it is compatible with the UMI-7772 or not
    waiting your replies and thanks in advance
    Eng. Mohammed Ashraf
    Certified LabVIEW Associated Developer
    InnoVision Systems Founder, RF Test Development Engineer
    www.ivsystems-eg.com

    Almost any standard stepper or servo drive would be compatable with a UMI.  The Parker Aries you have a link to is a servo drive, not a stepper drive.  You motor ratings are unusual for a stepper motor.  What is the brand and model?  I have had good luck with Applied Motion stepper products.  www.applied-motion.com

  • Where to add Third Party JDBC Driver in SQL Developer 4.1 EA2

    In SQL Developer 4.0.3 under Tools - Preferences - Database there was an option to add a  Third Party JDBC Driver so we could use the same tool for a PostgresSQL database.  I cannot find in in SQL Developer 4.1.0.18

    I think it happened because I imported settings and connections from a previous installation. 
    I removed the C:\Users\username\appdata\SQL Developer\system4.1.0.18.37\ folder.
    I've run it now without that and the option is back.
    Thanks! 

  • Third Party DVD Drive to Install Tiger

    Can a third party DVD drive be used to install Tiger? I have an iBook G3 with a CD ROM drive I would like to install Tiger on.

    I can't tell you, as my D2 DVD burnt out quicker than a candle burning at both ends, but of these...
    http://www.lacie.com/products/range.htm?id=10014
    It'd have to be the one with Firewire at least... just don't know what's happened to LaCie in the last couple of years.
    I'd ask OWC about these...
    http://eshop.macsales.com/item/Other%20World%20Computing/MRBFWU2D115/
    http://eshop.macsales.com/item/Other%20World%20Computing/MRFWU2D115/
    http://eshop.macsales.com/item/EZ%20Quest/K18560/

  • Crazy JNDI Problem... (Third Party DB Driver Effects Lookup???) (OAS 10g)

    Ok folks, I need some help here...
    The scenario is this...
    I have a simple web app (one jsp) which is used as a "status checker" to ensure that all the session beans we expected to be deployed are actually deployed and that they can be looked up with JNDI and run some small status routine... That war file for that app is included in the ear file with all of the session ejb jar deployments...
    Now, the collection of session beans references three different datasources at one time or another... 2 of which are oracle databases and 1 is a DB2 database...
    Lets name them as follows...
    OracleDataSource1
    OracleDataSource2
    DB2DataSource
    Now, if I configure the three datasources in the oracle standalone OC4J 10g datasource file and deploy the ear file to standalone OC4J 10g, all of the lookups work, and it successfully uses the datasources... no problems at all...
    Ok, so now I try to deploy the ear on OAS 10g using the enterprise manager console, and deployment works fine...
    If I run the app before configuring the datasources, of course the lookups work, but the status routines of certains beans fail because they are not able to look up the datasources... no big deal, just start adding the datasources...
    I configure OracleDataSource1 and rerun... now things still work, the lookups for all the beans works fine, and some pass now, but others still want the other datasources...
    Now configure OracleDataSource2 and rerun... as before, things all work great but there are still complaints looking for the DB2DataSource from a couple of the routines...
    Herein lies the problem...
    I configure DB2DataSource and rerun, and boom, my program crashes claiming that the lookup of the bean failed...
    Now mind you, these beans have all been looked up numerous times during previous runs, and absolutely nothing has been changed with the application... in fact, even the beans that wanted the DB2DataSource were looked up successfully and then just complained of no datasource during their status routine execution...
    It's just that once I configure the DB2DataSource, all of a sudden my lookups don't work... I have tried commenting out a couple of the beans, and regardless of which lookups are commented out, it still fails saying it can't find any of the beans, even if the beans i'm trying to look up don't use the DB2DataSource, it doesn't seem to matter...
    The InitialContext used for the lookup uses the default "new InitialContext()" constructor and the lookups work fine when the DB2DataSource is not configured, but once it is, the lookups fail saying the objects are not found...
    I have consulted with a few other developers here, and noone can seem to understand why this behavior is happening... I have added debugging statements to print the contents of the context's environment, and it is always empty regardless of whether the lookups pass or fail...
    The ONLY difference I can see with this DB2DataSource is that it uses an external 3rd party driver... The oracle connections use a driver which was packaged with the OAS installation... I feel pretty strongly that it has to do with the driver because if I have the DB2DataSource configured (causing the failure) and then I edit that datasource to say that it should us the oracle driver, miraculously it causes the lookups to work again, except now I get the error saying the oracle driver doesn't like my DB2 jdbc url...
    I'm sorry for the long post, but I'm hoping that at least one person has encountered this before... I cannot think of any reason why the configuration of that datasource with the third party driver would cause these problems, especially when the exact same configuration and setup DOES work with standalone OC4J 10g, even with the DB2DataSource configured... ????? And the fact that the lookups work fine until that datasource is configured really blows my mind... i wouldn't think the datasource configuration should have anything to do with whether the lookups of the session beans succeed or not... hahaha...
    Any help would be great... I'm pullin my hair out here... :)
    Thanks,
    -Garrett

    No, I have not asked on the oracle forums yet... :)
    It seems that the cause is the driver itself... if I set a different driver for the datasource configuation, the lookups work but it just complains about the driver not being correct for the individual beans...
    I have found some documentation claiming that there is an OAS version of the DB2 driver, as well as a Merant version, but I can't seem to find jar files for either...
    Does anyone know where I can download the "YMdb2.jar" file? Supposedly this contains the DB2 DataDirect driver that I need...
    Thanks,
    -Garrett

  • Using a Third Party JDBC Driver that has dependencies [Version 2.1.1.64]

    I am trying to connect to a TRIP database (a product from Tietoenator). They offer a JDBC driver which I have already used in java applications. So I can confirm that it works. What makes that driver perhaps a bit special is that it needs 3 other jars to operate.
    So I need these jar files
    <li> tripjdbc.jar (this is the actual jdbc driver)
    <li> tripjtk.jar
    <li> triputil.jar
    <li> xercesImpl.jar
    I have tried to place all of those jars into the Tools > Preferences > Database > Third Party Drivers dialogue [as suggested here|http://www.oracle.com/technology/products/database/sql_developer/files/thirdparty.htm]. But that does not help.
    Following the docs of Tietoenator I need those 3 libraries in the path of the java app the JDBC driver shall be used from. This is where I currently fail. How can I add those to the classpath of the SQL Developer? I assume it is a *.conf file somewhere in the SQL Developer home directory ... ?
    Thank you for any suggestion.
    EDIT: I am using SQL Developer on a windows box. May be of interest.
    Edited by: user7368833 on 17.05.2010 05:05

    I'm using java web to create website,the database use trip , have some problem, could you give me some answer, thankyou very much.
    the question: how to use java connect trip to add some record by webpage,and other mothod,such as modify\search\delete record,could you give some sample code about these,such as book entity.thankyou very much.
    email:[email protected] or [email protected]

  • Third-party hard drive replacement

    I want to upgrade the hard drive in my ca. March 2006 MacBook Pro (2.0 GHz) with something bigger than the original 100 GB Seagate that came in it. I have looked online at the various places that offer directions for doing this yourself and, frankly, don't feel comfortable trying this myself. Because I live in a rural area, I am not close to any Apple Authorized Repair Centers, and so I would like to send it off to have the hard drive replaced. I had good luck in the past with iResQ (they fixed a dead Titanium PowerBook that I used before I got this MBP) and I have seen a few other places online.
    I would appreciate hearing from anyone with first-hand experience with any of these third-party places doing hard drive replacement. Any and all comments (or suggestions - except telling me that I can do it myself) will be appreciated.
    Thanks in advance.

    Quite true--I should have phrased that more along the lines that you risk voiding your warranty if a non- Apple authorized person does the repair. I believe that if an Apple authorized repair person inflicts damage while in the computer, Apple will still honor the warranty because the damage was done by someone that they authorized to do the work. If someone unauthorized does the work, there is always the possibility that some future problem may be blamed on the unauthorized work and won't be covered. And if the unauthorized person causes actual damage, you're on your own, for that damage anyway. Applecare should still cover something totally unrelated.
    The one thing that does change is that the new drive itself will not be covered by Applecare any more. However, it will be covered by the manufacturer's own warranty, which is usually 3-5 years. Everything else in the machine should still be covered by Applecare.

  • Third party JDBC Driver and Domain Extension

    Hi everyone, I'm using a third party driver to acess some of the legacy databases in my company. I'm adding them to Weblogic's (v. 10.3.3.0) Classpath by setting the EXT_PRE_CLASSPATH in the setWLEnv.sh file. Everything worked fine so far, until I had to extend my domain to acomodate new settings. The Configuration Wizard crashes in the middle by saying "A fatal error Has Occurred. This Application will terminate". By inspecting the logs I saw that the Wizard tried to search my Data Source which used the third party driver and couldn't find the Driver Class. I would like to know if there is a better way to add the library to the Weblogic's Classpath or someway to workaround this issue during the extension. In my current situation I'm having to erase the data source, extend the domain and reconfigure the data source, which is big trouble !
    Any help will be appretiated ! Thanks
    PS: I've also tried to add the third party driver's JAR in the CLASSPATH inside config.sh file but unfortunately the error was the same !

    You can place your jar files in the domain lib directory.
    WebLogic uses a separate classloader to load classes from the domain lib directory. This classloader
    is a child of the system classloader, and a parent of the application classloaders. The classes and
    resources in any .jar file placed in the directory is automatically available to all applications.
    Note, however, that the domain lib classloader does not support redeployment, dynamic reloading, or FastSwap, and cannot
    refer directly to code in the application classloaders. But i think that this is not a problem, you just want your
    thrid party JDBC driver to be availlable for your applications.

  • Adding third-party SSD drives to Xserve

    Has anyone tried this? I would like to buy a new Xserve and migrate to 10.6, but since my application would benefit greatly from SSDs, I would like to buy build an Xserve with a SSD boot drive, and two SSD drives in RAID1. Since Apple doesn't offer SSDs as a drive bay option, has anyone here successfully done it on their own?
    ...Rene

    Yes, I can't see a reason either why a third-party drive (e.g., http://www.plianttechnology.com/lightning_ls.php ) be used. I would just like to hear from someone who has actually done it on a the newer Nehalem Xserves. My application is very database bound (many small, random reads and writes), and I think it would benefit greatly from an SSD.
    ...Rene

  • Third Party SSD Drive Modul

    Hi Community,
    is it possible to install a third party SSD (512GB; 3,5") drive modul in a new Mac Pro (build 2011) as system drive?
    Thx & Bye Tom

    The hatter wrote:
    There are lots of fud and misconceptions when it comes to SSDs in particular. 
    There are also more than enough problems with S3 mode (sleep, and hibernation), with firmware, with shipping products too soon to know. Rush to recoup investments and to sell to bleeding edge customers only too happy to beta test for them. 
    Doesn't excuse the lack of TRIM in OS X after more than two years though.  And no,  BGC isn't TRIM and isn't a substitute.  But constantly stirring the pot to add salt to the wounds doesn't help either.
    If I had investment in SSDs and was using OS X I'd want to have SoftRAID 4 as well.
    Sorry I have read your post a few times but I will not be wiser. Maybe you can explain it a bit easier for a none english native speaker ;-)
    But what I understood is your hint for the missing TRIM support in Mac OSX 10.6.x. I had the biggest doubt in the loss of performance when the disc running out of empty space. Yes I know the problem that the disc have to delete marked free segments explicitly before it can use them again and yes I didn't know also, that Mac OSX doesn't support the TRIM command but I spoke to a lot of people who are using SSD modules for a longer period of time and none of them could confirm a decline in performance.
    But the post of Grant Bennet-Alder concerns me more than a loss of performance. Why it is dangerous to clone a normal disk to a SSD module?
    Thx & Bye Tom

  • Third-party optical drives

    I had a Mad Dog CD/DVD burner sitting around, so I decided to throw it into the second bay. It worked at first, but it quickly stopped responding, and any program that tries to access the optical drives freezes up. Is the Mac Pro just not compatible with third-party drives?
    Both drives are set to Cable Select. I'll try setting the first one to master, and the second one to slave and see if that makes the problem disappear.

    When you say programs freeze when they try to access the drives do you mean both drives? And do you mean even to use them to read? If it's both drives that does sound like a problem with how the drives are jumpered, although cable select should work. Maybe the problem is with the Mad Dog drive not liking to be set that way.
    Any drive you put in the system should work as a reader under 10.4.10, Patchburn is generally used to allow a newer drive to work with an older version of the OS and with the I-Apps to burn. But you are already running 10.4.10, which should see that drive - and we know it did see the drive. Under System Profiler, what does it say for the drive About this mac > more info >hardware >disc burning. It may not say Mad Dog, since they put their name on other people's drives, but I'd be curious as to what it says under burn support. That will give us a good idea to what degree the system is going to work with the drive.
    There is always the possibility that the Mad Dog is dying. If symptoms return in the master/slave configuration that may have been the problem all along.
    Let's hope that's not the case.

  • Upconvert Third Party Instrument Driver

    Attached is a 3rd party instrument driver contained within a .llb that has multiple VIs used to control a GPIB device.  I have attached the .llb below.
    Source Version: 5.0.1
    Target Version: 2011 SP1 (or 8.2 and above would be fine)
    Thanks for your time.
    Solved!
    Go to Solution.
    Attachments:
    wcl488v1.llb ‏863 KB

    attached as 8.2
    Attachments:
    wcl488v1.llb ‏432 KB

  • ADF Bc third party JDBC Driver java.sql.SQLException: No suitable driver

    Hello all
    I am using JT400.jar file to connect to AS/400 data base in my JSF/ADF Application.
    We are using shared library for all non oracle jar files . and my application fails with error message
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
    During runtime. even though i am importing the required jar files from shared library settings in server.xml / application.xml
    When i don't have the entry in shared library for this jar file it will fail during deployment time it self, but with shared library link it works during deployment but fails during runtime
    it will work during runtime if i add my jar file to BC4J/lib folder. but team responsible for mintaining application server don't accept adding non oracle jar files to oracle installation folders
    i have also posted this in jdev forum
    Please Advise
    Thanks

    Thanks for reply
    i am using Sqlserver 2000 as back end
    import java.sql.*;
    import java.net.*;
    public class MysqlConnect{
         public static void main(String[] args) {
              System.out.println("MySQL Connect Example.");
              Connection conn = null;
    // String url = "jdbc:mysql:/localhost:3306/";
    String url = "jdbc:microsoft:sqlserver/GTEXC/";
    String dbName = "java";
    // String driver = "Sun.Jdbc.Odbc.JdbcOdbcdriver";
    String userName = "root";
              String password = "root";
              try {
    Driver d=(Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                   conn = DriverManager.getConnection(url+dbName,userName,password);
                   System.out.println("Connected to the database");
                   conn.close();
                   System.out.println("Disconnected from database");
              } catch (Exception e) {
                   e.printStackTrace();
    }

  • IDVD 08 third party DVD drives

    Hi all
    Is anyone aware of a 3rd party USB powered DVD drive to use with iDVD '08?
    I know i can upgrade the drive but i was hoping to find an external option....and hopefully cheaper!
    Thanks
    Nick

    Hi Nick
    Take a look here:
    http://discussions.apple.com/thread.jspa?messageID=6322304&#6322304
    http://discussions.apple.com/thread.jspa?messageID=6346673&#6346673
    http://discussions.apple.com/thread.jspa?messageID=5175030&#5175030
    Hope this helps but if not just come on back.

Maybe you are looking for

  • Approval Status report

    Dear All, One of user not able to remove the rejected report from Approval  status report. Regards Aarati Kollur

  • In ME22n though error msg popping out - not able to stop PO posting

    hi all, My requirement is to give error message in ME22n when values entered manually in item overview, ie., EKES-ebtyp = 'LA' and EKES-vbeln = space as ' NO MANUAL LA ENTRY IS ALLOWED' and PO should not be posted. i found the badi for this  'ME_PRUC

  • I ordered a Gold Iphone 6 Plus 128 GB, when should I get it?

    Like, when i ordered it, it said i'd recieve it on October 21st, But now it says the 28th. Are these dates like tentative? like whats the likelihood that they'll change? It suck waiting 2 months for a phone!!!!!

  • Components font embedding

    Hi everyone, I created a flash component with two embedded fonts. The problem is, when I export this component as SWC file and use it in a new flash document the component doesn't show any text, unless I add the fonts to the library of this new docum

  • I use waveform chart VI to plot the setpoint as a g

    reen line, process variable value in a white line, maximum and minimum in red lines.Is there a way that I can change the process variable color only for those points when the values are out of max and min range and leave the in range points still in