How do you disable "Run with Multiple Threads" in a standalone EXE

I have a program written in Labview 6.1.  After moving to a different hardware platform, my program has started crashing at the same point every time it is run.  I eventually found out that the cause of the crash is the fact that the new hardware has a dual core processor.  I confirmed this by disabling "Run with multiple threads" and now the program works fine.  What I need to know now is how to disable the same setting in a built EXE file, since as far as I know the "Run with multple threads" setting only affects execution in the Labview Dev environment.
Thanks for any help,
Dave

Greg McKaskle once posted that using a non-reentrant (VI is NOT re-entrant) wrapper VI to make the calls to the dll will prevent simultaneous execution of the dll.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How do you center dialogs with multiple monitors. code, best practices

    My existing code will take the pixel size of the java app, and using the size of the dialog, it will center dialogs perfectly in the center of the application. This is great for single monitors, but when multiple monitors are introduced it is a problem. With dual monitor, the dialog is split in half between the two monitors.
    I should be able to determine which pixel/frame initiated the user's action; and then i am hoping to get some code or direction on:
    1. how to determine which monitor the user initiated the action on (knowing the px or frame location, how would i do this)
    2. how to center dialog on that monitor
    if possible, it would be appreciated if you can provide some code; i cant find anything on determing pixel size of monitors and this seems to be a little bit of a project to do from scratch. open source, 3rd party, insight, guidance, all is appreciated. thanks !

    This code may help:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class OptionPaneDemo {
        ActionListener al = new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                Component comp = (Component) evt.getSource();
                JFrame f = (JFrame) SwingUtilities.windowForComponent(comp);
                showDialogInUpperRightCorner(f);
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    new OptionPaneDemo().go();
        void go() {
            GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
            for(GraphicsDevice gd: ge.getScreenDevices()) {
                JButton showDialogButton = new JButton("show the dialog");
                showDialogButton.addActionListener(al);
                JFrame f = new JFrame(gd.getDefaultConfiguration());
                f.getContentPane().add(showDialogButton, BorderLayout.NORTH);
                f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                f.pack();
                centerWindow(f);
                f.setVisible(true);
        void centerWindow(Window w) {
            Rectangle windowBounds = w.getBounds();
            GraphicsConfiguration gc = w.getGraphicsConfiguration();
            Rectangle screenBounds = gc.getBounds();
            int x = screenBounds.x + (screenBounds.width - windowBounds.width)/2;
            int y = screenBounds.y + (screenBounds.height - windowBounds.height)/2;
            w.setLocation(x, y);
        void showDialogInUpperRightCorner(JFrame f) {
            JOptionPane pane = new JOptionPane("Hello, world!");
            JDialog dialog = pane.createDialog(f, "title");
            Rectangle dialogBounds = dialog.getBounds();
            GraphicsConfiguration gc = dialog.getGraphicsConfiguration();
            Rectangle screenBounds = gc.getBounds();
            //int x = screenBounds.x + screenBounds.width - dialogBounds.width;
            //int y = screenBounds.y == 0 ? 1 : screenBounds.y;
            int x = screenBounds.x;
            int y = screenBounds.y + screenBounds.height - dialogBounds.height-1;
            System.out.format("(%d,%d)%n", x, y);
            dialog.setLocation(x, y);
            dialog.setVisible(true);
    }

  • How do you disable the feature to 'keep iMessage conversations running between two devices'?

    I have 2 apple devices- an iPhone 4 and an iPad 2. When I set my iPad up and set iMessage up set it offered me the option to keep iMessage conversations running between the two devices, and i pressed yes. I now cannot stand this feature because every time I recieve an iMessage, I get two alerts, one on each device. How do you disable it?

    Hi DeltaNomad,
    Welcome to the Support Communities!
    You can disable the Substitutions feature completely, or add words you frequently use to the substitutions list.  See this information from the Pages User Guide:
    Replace text automatically - Pages Help for Mac
    http://help.apple.com/pages/mac/5.1/#/tanca15d8a79
    When Text Replacement is turned on for the document, a checkmark appears next to Text Replacement in the Substitutions menu. You can deselect Text Replacement to turn it off, but existing text won’t change unless you select the text, and then follow the steps above.
    Choose Edit > Substitutions > Show Substitutions (from the Edit menu at the top of your computer screen).
    In the Substitutions window, select the Text Replacement checkbox, then click Text Preferences.
    Click Text, click the plus sign, then type the text you want to replace (such as “teh”) in the Replace column.
    Type the word you want to replace it with (such as “the”) in the With column.
    Close the window when you’re done editing substitutions.
    Click a button to replace all occurrences of the replacement text in the document, or only in the selected text.
    Cheers,
    - Judy

  • How do you disable promt "Click to run an ActiveX control on page"

    Hello,
    How do you disable the prompt :
    "Click to run an ActiveX control on this Page"
    I started getting this all of a sudden when looking at Quicktime VR Movies.
    I am using Internet Explorer 6.0

    Actually I found this:
    http://discussions.apple.com/thread.jspa?messageID=1916644&#1916644
    and I uninstalled my update and now everything is fine.

  • How do you disable iPod Auto Update with iTunes?

    How do you disable iPod Auto Update with iTunes? I know there is a key press combo that will do it but I forget which keys. Anyone?
    Intel Piii   Windows XP Pro  

    Keep iTunes from automatically updating your iPod
    Another Easier Alternative:
    While connecting the iPod to the computer, hold down the Shift + Ctrl keys in Windows (CMD + Option keys on a Mac). This will stop the iPod from auto-syncing with iTunes. The iPod will then appear in the iTunes source list. Wait until you are sure the iPod has mounted, and that it will not auto-sync and then you can release the keys. This action may take between 3 and 25 seconds depending on your computer.
    You can then ‘right-click‘ on the iPod icon in iTunes’ source column and select iPod Options, then check the box that says “Manually manage songs and playlists”. You can now manage your library without losing any songs on the iPod.
    Note: If connecting to a different computer than the ‘iPod’s Home Computer’, iTunes will ask you if you want to update your iPod and give you an opportunity to opt out. This will not happen if you connect to the ‘Home’ computer – iTunes will auto-sync without warning!. Best to know the difference.

  • How do you disable a restrictions code with out resetting your iPhone and the password

    How do you disable your restrictions code without resetting your phone and without putting in the code?

    No, there isn't. But you can restore your stuff if you have a current backup to restore. Otherwise, you are S.O.L.

  • How does create a server with multiple Clients ?

    Any people can lead me .
    How does create a server with multiple Clients ?
    Thanks

    For a multithreaded server you will need a thread to listen and at least one thread per client. If the conversation is half duplex, one thread per client works very well, if it's full duplex you will find one thread to send and one to receive much easier to program.
    I posted a Simple Socket Server that uses 1+2*clients threads.

  • How do you disable the "Touch to return to call" banner on the top of the screen?

    How do you disable the "Touch to return to call" banner on an iPhone 4s and it is factory unlocked?
    Thank you.

    If your trying to just simply have it not show while navigating the OS during a call, then there is no option to disable it. If it's a problem where it's continuing to show after you disconnect a call it could be a fault in code that fails to run the script to terminate the banner need upon disconnect. I would restore the phone using itunes as a first troubleshooting step. Another avenue might be an issue with the phone failing to recognize the end of call signal from the carrier. In which case I would have the SIM card changed. Easy thing to do at your local carrier store.

  • How do you disable - hotsync manager window's fade out on close?

    For the newer version of Palm Desktop and Hotsync Manager, how do you make the hotsync manager window stop fading out when closed or "done".
    It stops me from being able to access ANYTHING until the fade is completed, and that is a complete waste of my time, also when I have much more important things going on (alarms/alerts) that can't be silenced during the fade.
    And ... how do you disable the splash screen startup for the Palm Desktop, and how do you get the palm desktop to conform to standard windows start practices, so that when you open the program it comes up on the screen at the same windowed size I closed it at?
    Thanks!!
    Post relates to: Centro (Sprint)

    Thank you ... however it was already set for "normal window".  I deleted the icon and recreated and that seemed to fix it though, not sure why.
    As for the splash ... its a waste of time ... the application loads faster than "they" would expect so all it does is extra advertizing for Access without having a purpose.  And again, its not just a second or so, its 3 to 5 seconds depending on what else I'm doing.. and if I'm reading an email while double clicking the icon to have it start on my second monitor.. the spash covers my email till the program's running.
    The worse delay is the fade.  You already admit that it can vary depending on a number of things.. well that programmer may have thought it were very cool on a quad core intel @ 3 GHz .... try it on a 1 G p3, with an older video card.  Or try it on an older laptop .... the delay is 6 to 10 seconds while it fades it self to the nethers, it certainly didn't "CLOSE" when I told it to.. it took its dear sweet time.
    The programmer probably thought "hey this is really cool mahn.. watch it fade away..."  by the third time of being into or out of the settings that re-triggers the closing fade, I was ready to kill that programmer.  Make him suffer for the stupidity of his vision.  Its one thing to make it "cool" and give people the option to live with that plain jane every day FASTER response... and quite the other to force people to relive your "cool" idea every f**king day, every time they go into settings, or need to see the log for what failed on backup.. etc.
    Ever go upto a windows XP pc when someone says it seems slow and *de-select* the "FADE" option for their menus??  (Display Properties -> Appearance -> Effects -> deselect "use the following transition") I have ... and its amazing how perception changes because the menus are there NOW, not taking their time to pull off some grandious entrance ... the first time it may have been cool.. but by the 500 th time you've been into your start menu a year into the game.. that slow fade crap is working on your every nerve.
    Poor impulse control would have had me killing the programmer that put that fade in there.. now I just want to put him in for an hour or two of waterboarding.
    It was bad programming to force some idiots idea of a "cool" view on people, and the programmer should be shot down for it.  It shouldn't be... and it wasn't there before, so some mornon actually went out of their way to put something in because the program just wasn't "cool" enough for them.. and then they decided to F the rest of us by making it so we couldn't DEselect that slice of programmers heaven.
    It may sound like I'm blowing things out of proportion... but really, it was fine the way it was, now they've gone and F'd it up.  Moves for the better get little publicity, you have to live with the knowledge no one is bitching, but when you screw something up ... you need to fix it and need to hear how badly your lack of vision made things for others.
    and.. if they wont' fix it.. its coming off the pc.. I'll go back to the old "uncool" version.
    Post relates to: Centro (Sprint)

  • How do you disable voice announcements on the Gusto 3 ?

    How do you disable Voice Announcements on the Gusto 3 >

        Thanks for reaching out to us, tobrien459! May I ask what readouts you are getting in order for me to make sure I provide you with the most accurate information?
    I'm thinking you are looking for this:
    From the Home screen, press the Left Soft Key
    Menu > Settings > Accessibility > Easy Set-up.
    2. Follow the screen prompts to choose settings for
    Full Readout, Menu Readout, Digit Dial Readout,
    Alert Readout, TXT Message Readout, Browser
    Readout, and Flip Open & Talk
    Let me know if this is what you need.
    TamaraH_VZW
    Follow us on Twitter @VZWSupport

  • How do I share iTunes with multiple users on Mac mini?

    How do I share iTunes with multiple users on Mac mini?

    You have to turn on Sharing and then Authenticate Sharing on the other devices. You can have up to 5.

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • How to design a form with multiple lang(Arabic and Eng) in a page

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to design a form with multiple lang(Arabic and Eng) in a pge

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to write a applet with multiple menu

    Hi all,
    How to write a applet with multiple menu or please tell me where can I get a examples
    thanks

    i'm writing a project and it seem not work with browser. If anyone can help please leave me a e-mail so that i can send my source to you.
    Thanks so much

Maybe you are looking for