Why does the DLL function executed by call library node fail when the Vi is re-opened?

Development System
OS: Windows XP
LabVIEW: version 10.0
DLL: Custom 
Compiler: Visual C++ 6.0
Function Prototype: __declspec(dllexport) const char * test(void)
We have developed a DLL for use.  The DLL compiles cleanly.  The DLL includes a function test.  The test function validates the functional capabilities of the DLL.  I have followed the examples online, and I have used the import shared library tool in LabVIEW.  The VIs created use the call library node. 
When I create a VI calling the test function from the custom DLL using the call library node the VI executes the DLL function test flawlessly.  I close the VI.  When I re-open the VI and run it, I get an error code from the DLL.  However, if I go to the block diagram and set the path for the DLL in the configure call library node again then the VI executes the DLL function test flawlessly again. 
I have to set the path for the DLL in the configure call library node every time I open the VI.  The examples I downloaded from the community do not require this.  What might the DLL be missing?  What am I missing? 
Solved!
Go to Solution.

I think it was rather unfair of me to ask for help with my DLL issue without disclosing more detailed information.  As a corrective action, I have attached a zipped file.  The zipped file contains the entire VC++ 6.0 project for compiling the DLL, the DLL, and the VI I have been using to test it. 
###NOTE####
 As a prerequisite to compilation and usage of the DLL you'll need to have installed Python 26 on your system.   
You may obtain the MSI for correct version of Python from the following location:
http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
###NOTE###
Thank you very kindly for any assistance offered!
Thanks,
Bill
Attachments:
C_DLL_PYTHON_AND_LABVIEW2010.zip ‏1685 KB

Similar Messages

  • Why does the same pdf sometimes open in Photoshop with a white bkgd and sometimes transparent?

    I am opening the same pdf file on two different computers with the same version of photoshop.  Why does it open with a transparent background on one computer and a white background on the other?  Is there any way to force it to open with a transparent background?  Thanks.
    Loni

    You have different versions of the shared PDF libraries on the different systems and/or different settings on PDF handling, most likely. This can affect transparency. The PDF libraries are shared between Adobe apps, so this may be dependent on anotehr program having changed something in that area...
    Mylenium

  • Why does the newest version not open to the homepage no matter which way you set it up?

    The latest version of Firefox recently installed on my PC. Now, no matter which way I set the home page it does not open to that. I simply get a blank tab. Yes, I have set the page correctly and even told Firefox to open to the home page. It does not work. It will accept the settings, and I have rebooted a few times too. When I click the home icon, it opens the page so I know it is set up correctly.

    Application Basics
    Name: Firefox
    Version: 29.0.1
    User Agent: Mozilla/5.0 (Windows NT 6.3; rv:29.0) Gecko/20100101 Firefox/29.0
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Garmin Communicator
    Version: 4.1.0
    Enabled: true
    ID: {195A3098-0BD5-4e90-AE22-BA1C540AFD1E}
    Name: Skype Click to Call
    Version: 7.2.15747.10003
    Enabled: true
    ID: {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
    Name: MixiDJ V30
    Version: 10.23.0.822
    Enabled: false
    ID: {1122b43d-30ee-403f-9bfa-3cc99b0caddd}
    Important Modified Preferences
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 6
    browser.sessionstore.enabled: true
    browser.sessionstore.restore_on_demand: false
    browser.sessionstore.upgradeBackup.latestBuildID: 20140314220517
    browser.startup.homepage: https://www.google.com
    browser.startup.homepage_override.buildID: 20140506152807
    browser.startup.homepage_override.mstone: 29.0.1
    browser.tabs.warnOnClose: false
    browser.urlbar.autocomplete.enabled: false
    dom.disable_open_during_load: false
    dom.mozApps.used: true
    dom.w3c_touch_events.expose: false
    extensions.lastAppVersion: 29.0.1
    font.internaluseonly.changed: false
    gfx.direct3d.last_used_feature_level_idx: 0
    keyword.URL: http://search.conduit.com/ResultsExt.aspx?ctid=CT3298566&SearchSource=2&CUI=UN18068277162162315&UM=2&q=
    network.cookie.lifetimePolicy: 2
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1399646086
    places.history.expiration.transient_current_max_pages: 80519
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    print.printer_Lexmark_640_Series.print_bgcolor: false
    print.printer_Lexmark_640_Series.print_bgimages: false
    print.printer_Lexmark_640_Series.print_colorspace:
    print.printer_Lexmark_640_Series.print_command:
    print.printer_Lexmark_640_Series.print_downloadfonts: false
    print.printer_Lexmark_640_Series.print_duplex: -63
    print.printer_Lexmark_640_Series.print_edge_bottom: 0
    print.printer_Lexmark_640_Series.print_edge_left: 0
    print.printer_Lexmark_640_Series.print_edge_right: 0
    print.printer_Lexmark_640_Series.print_edge_top: 0
    print.printer_Lexmark_640_Series.print_evenpages: true
    print.printer_Lexmark_640_Series.print_footercenter:
    print.printer_Lexmark_640_Series.print_footerleft: &PT
    print.printer_Lexmark_640_Series.print_footerright: &D
    print.printer_Lexmark_640_Series.print_headercenter:
    print.printer_Lexmark_640_Series.print_headerleft: &T
    print.printer_Lexmark_640_Series.print_headerright: &U
    print.printer_Lexmark_640_Series.print_in_color: true
    print.printer_Lexmark_640_Series.print_margin_bottom: 0.5
    print.printer_Lexmark_640_Series.print_margin_left: 0.5
    print.printer_Lexmark_640_Series.print_margin_right: 0.5
    print.printer_Lexmark_640_Series.print_margin_top: 0.5
    print.printer_Lexmark_640_Series.print_oddpages: true
    print.printer_Lexmark_640_Series.print_orientation: 0
    print.printer_Lexmark_640_Series.print_page_delay: 50
    print.printer_Lexmark_640_Series.print_paper_data: 1
    print.printer_Lexmark_640_Series.print_paper_height: 11.00
    print.printer_Lexmark_640_Series.print_paper_name:
    print.printer_Lexmark_640_Series.print_paper_size_type: 0
    print.printer_Lexmark_640_Series.print_paper_size_unit: 0
    print.printer_Lexmark_640_Series.print_paper_width: 8.50
    print.printer_Lexmark_640_Series.print_plex_name:
    print.printer_Lexmark_640_Series.print_resolution: 16777215
    print.printer_Lexmark_640_Series.print_resolution_name:
    print.printer_Lexmark_640_Series.print_reversed: false
    print.printer_Lexmark_640_Series.print_scaling: 1.00
    print.printer_Lexmark_640_Series.print_shrink_to_fit: true
    print.printer_Lexmark_640_Series.print_to_file: false
    print.printer_Lexmark_640_Series.print_unwriteable_margin_bottom: 0
    print.printer_Lexmark_640_Series.print_unwriteable_margin_left: 0
    print.printer_Lexmark_640_Series.print_unwriteable_margin_right: 0
    print.printer_Lexmark_640_Series.print_unwriteable_margin_top: 0
    print.printer_Microsoft_XPS_Document_Writer.print_bgcolor: false
    print.printer_Microsoft_XPS_Document_Writer.print_bgimages: false
    print.printer_Microsoft_XPS_Document_Writer.print_colorspace:
    print.printer_Microsoft_XPS_Document_Writer.print_command:
    print.printer_Microsoft_XPS_Document_Writer.print_downloadfonts: false
    print.printer_Microsoft_XPS_Document_Writer.print_duplex: -63
    print.printer_Microsoft_XPS_Document_Writer.print_edge_bottom: 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_left: 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_right: 0
    print.printer_Microsoft_XPS_Document_Writer.print_edge_top: 0
    print.printer_Microsoft_XPS_Document_Writer.print_evenpages: true
    print.printer_Microsoft_XPS_Document_Writer.print_footercenter:
    print.printer_Microsoft_XPS_Document_Writer.print_footerleft: &PT
    print.printer_Microsoft_XPS_Document_Writer.print_footerright: &D
    print.printer_Microsoft_XPS_Document_Writer.print_headercenter:
    print.printer_Microsoft_XPS_Document_Writer.print_headerleft: &T
    print.printer_Microsoft_XPS_Document_Writer.print_headerright: &U
    print.printer_Microsoft_XPS_Document_Writer.print_in_color: true
    print.printer_Microsoft_XPS_Document_Writer.print_margin_bottom: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_left: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_right: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_margin_top: 0.5
    print.printer_Microsoft_XPS_Document_Writer.print_oddpages: true
    print.printer_Microsoft_XPS_Document_Writer.print_orientation: 0
    print.printer_Microsoft_XPS_Document_Writer.print_page_delay: 50
    print.printer_Microsoft_XPS_Document_Writer.print_paper_data: 1
    print.printer_Microsoft_XPS_Document_Writer.print_paper_height: 11.00
    print.printer_Microsoft_XPS_Document_Writer.print_paper_name:
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_type: 0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_size_unit: 0
    print.printer_Microsoft_XPS_Document_Writer.print_paper_width: 8.50
    print.printer_Microsoft_XPS_Document_Writer.print_plex_name:
    print.printer_Microsoft_XPS_Document_Writer.print_resolution: 16777215
    print.printer_Microsoft_XPS_Document_Writer.print_resolution_name:
    print.printer_Microsoft_XPS_Document_Writer.print_reversed: false
    print.printer_Microsoft_XPS_Document_Writer.print_scaling: 1.00
    print.printer_Microsoft_XPS_Document_Writer.print_shrink_to_fit: true
    print.printer_Microsoft_XPS_Document_Writer.print_to_file: false
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_bottom: 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_left: 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_right: 0
    print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_top: 0
    privacy.sanitize.migrateFx3Prefs: true
    security.warn_viewing_mixed: false
    storage.vacuum.last.index: 0
    storage.vacuum.last.places.sqlite: 1400194130
    Graphics
    Adapter Description: AMD Radeon HD 5450
    Adapter Drivers: aticfx32 aticfx32 aticfx32 atiumdag atidxx32 atiumdva
    Adapter RAM: 512
    Device ID: 0x68f9
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.3.9600.16384)
    Driver Date: 12-6-2013
    Driver Version: 13.251.0.0
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 10
    Vendor ID: 0x1002
    WebGL Renderer: Google Inc. -- ANGLE (AMD Radeon HD 5450 Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.3
    Version in use: 4.10.3
    NSS
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSMIME
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSSL
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSUTIL
    Expected minimum version: 3.16
    Version in use: 3.16

  • HT2523 Why does the TextEdit window automatically open on my Mac whenever I log in?

    Why does a blank TextEdit box automatically open on my screen when I log on to my Mac?  It is also in my dock.  I didn't put it there, and this just started happening recently.

    Right-click or Control-click on the icon for TextEdit in the Dock. In the popup menu that appears, go to the Options submenu and if the item "Open at Login" is checkmarked, select it to uncheck that item.
    Then repeat, and if the item "Remove from Dock" is shown in the Options submenu, select it.

  • If I have two iTunes accounts, and only want one to update my apps why does the other account keep opening?

    Here's the issue-I have two iTunes accounts, yet account #1 always comes up when I want to update my apps. This occurs even when account #2 is logged in and has been synced from desktop to iPad. Additionally,Account #2 is logged in on the iPad and yet account #1 prompt appears when updating. Interestingly account #2 functions normal for iTunes purchases but not apps purchases. Any suggestions?

    Apps will ALWAYS be tied to the account from which they were purchased.  You will always have to update the apps from the account from which they were purchased.

  • Why does the Safari window sometimes open with a 1/4 inch gap along the bottom when the desktop shows through?

    I am using a 15 inch Macbook Pro i7 2.66 GHZ. 8 GB ram. 500 GB hard drive. OS 10.6.8. All updates are done on a regular basis.
    Sometimes when I open Safari the window leaves a small 1/4 inch gap along the bottom. In this gap you can see the desktop. This is instead of the Safari window taking up the entire screen. When you click on the green button on the top left then it will open in the entire screen and the 1/4 inch gap is gone. This does not happen all the time but is annoying and I don't feel it should be happening. Does anyone know the solution so this stops happening and has anyone else ran into this?

    it's the space for your dock. if your mouse enters that area, the dock will appear. if the window just went to the bottom, it would always initiate the dock whenever you had your mouse at the bottom of the conent window. This is un intuitive and I'm sure apple did this so you wouldn't initiate the dock.
    This has become more intuitive in Lion and the dock pops up when you're at the absolute bottom of the page. which is what Sig and myself are both using.
    I've also noticed it will adjust the window to the content. are the pages you're going to small in content and therefore wouldn't stretch all the way to the bottom of your screen? like a login page or a splash page? I have notice maximize will adjust the width of the window to ASC even after I had it taking up the whole screen before toggling the green button. Hope this helps!

  • Why does the Firefox application stay open in the background when I close it?

    I have a WN XP PRO desktop and a WN 7 Pro laptop. Every grade of Firefox has the same problen of staying open in the background at times. I have always had to restart my computers to clear it. Why can't this problem be fixed? I see that others are having the same problem. The only time that I know that it hasn't shut down is when I try opening it up. It may be running when I am using IE or Google. It has to be slowing my computers down.

    There's no way a 16GB model phone has more than than capacity.  I have no idea what you mean by AutoRun icon.  Is that an app you downloaded?  Did you jailbreak?
    The "advertised" capacity of all storage devices is based on a decimal definition of "Gigabytes" where 1 GB is defined as 1,000,000,000 bytes.  However computers see and calculate storage based on binary definitions where 1 GB = 1,073 742,824 bytes.  Thus a 16 GB "decimal" device is only 14.9 real, binary gigabytes.
    Also, there are additional loses due to formatting overhead and the iOS.  RAM memory is separate and not used from the supplied flash disk.

  • HT5113 Why does the course manager not open on my PC but does on my Mac?

    Cannot access the course manager from my PC running windows 7 and ie9.

    Right-click or Control-click on the icon for TextEdit in the Dock. In the popup menu that appears, go to the Options submenu and if the item "Open at Login" is checkmarked, select it to uncheck that item.
    Then repeat, and if the item "Remove from Dock" is shown in the Options submenu, select it.

  • Why does the Firefox wecome window open now every time I turn my computer on and start Firefox? It is annoying and I would like it to not do this. thank you. .

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/867496]]</blockquote>
    I upgraded to Firefox 6.0 on my desktop and now every time I turn my computer and start Firefox, it opens two windows one is my normal homepage and the other is the Firefox welcome page. I do not need to see the firfox welcome page in a separate window every time I start Firfox. Can you help me fix this? thank you.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/867496]]</blockquote>
    I upgraded to Firefox 6.0 on my desktop and now every time I turn my computer and start Firefox, it opens two windows one is my normal homepage and the other is the Firefox welcome page. I do not need to see the firfox welcome page in a separate window every time I start Firfox. Can you help me fix this? thank you.

  • Why does the Chat window not open for the Apple Store

    I was at the Apple Store and clicked on the "Chat Now" button and tried the other "Chat" link.  Both brought up a pop-up link but the window was blank.  I tried it several times to no avail.
    I thought I would send it back to Apple as feedback but I could not find a feedback option in the menu.
    I am using the latest version of Safari, 6.0.2 (8536.26.17)

    Hello am-i-will
    Move your mouse near the header and a menu should pop up and then you should have an option to download your attachments.
    Mail (Mavericks): View, save, and delete attachments
    http://support.apple.com/kb/PH14931
    Regards,
    -Norm G.

  • Why Does It Take So Long For iTunes Library To Load When I Launch iTunes?

    Hello,
    iTunes used to get up and running fast, but now it takes about 20-30 seconds for the Library to load before I can use it. Does anyone know why?
    Thanks!
    iMac G3 600mhz   Mac OS X (10.3.9)  

    have the same problem since upgrading to i tunes 7 and can only guess it's the size of my library - nearly 200gb. A friend of mine who's library is 20 gb or so has no such problems. If there's another reason and we can do something about it I too would love to know!

  • Why does the InitVXIlibrary function return -32768 ?

    Why does the InitVXIlibrary function return -32768 ?

    Hello,
    It would be extremely helpful to see a log of what is happening "behind the scenes" with the driver. To do this, you can use a utility called NI-Spy which can be launched from Start >> Programs >> National Instruments >> NI Spy or from the Measurement & Automation Explorer (MAX) utility.
    NI Spy is a Win32 application that monitors, records, and displays National Instruments API calls made by applications. Use NI Spy to quickly locate and analyze any erroneous National Instruments API calls that your application makes, and to verify that the communication with your instrument is correct.
    You can turn the log to file feature on via the Spy >> Options menu in the program. Please attach this log file to this Developer Zone post
    so that we may further help you.
    Best Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Why does the IPhone 4 get really hot, when you are making a phone call??

    I can't seem to find the answer to this riddle . why does the iPhone 4 get really hot when you are making phone calls or when using face Time ??

    It doesn't.
    There must be an issue with your iphone.
    Have you tried reset?  Restore?
    Have you made an appointment at the genius bar to have them look at it?

  • Why does the dashboard come up when I press f12 volume increase?

    Why does the dashboard come up when I press F12, volume increase?

    rkaufmann87 wrote:
    Check System Prefrences (there is no such thing as system settings) - Keyboard - Keyboard - ensure the box called Use all F1, F2 etc. keys as standard function keys is unchecked.
    lol

  • Help !!! why does the client need to specify codebase

    Anyone,
    I'm trying out a dynamic class loading tutorial.
    my question is why does the client need to define
    java.rmi.server.codebase.
    I can understand why the server needs it, as it is downloading classes
    it does not have information about. But why does the client need to specify the codebase

    Lets say you have a Remote interface with a method:
    void compute(Task task);
    Now, the clients of this remote interface want supply
    a zillion of custom tasks to be executed on the
    server, but how the hell the server knows where to get
    the actual classes for those tasks?You fool. its for the server to hand the client the reference to a stub, or to specify FOR the client where the stubs are, so that the CLIENT can get a reference to them, to make the call.
    This is where the
    client codebase comes to the scene. Client codebase......you mean codebase info that is sent TO the client, so it can find the classes.
    A client annotates
    it and it gets written to the manifest part of any
    serializable object (Task implentation) being passed
    over then net so the server could find and download
    the actual class of the object.
    Rubbish.
    I hope I made myself clear. as mud.
    You might want to check
    out this link also:
    http://java.sun.com/products/jdk/1.2/docs/guide/rmi/cod
    base.htmlI read this and i still dont see anything about CLIENT codebase. I see stuff about codebase, and the server trying to make the client aware of where it can get the relevant classes.
    What a fool you are. Dont bother replying. I have had enough of your autocratic rubbish.
    >

Maybe you are looking for

  • Timeline thumbnail images

    Okay, so I am a little embarrassed to post this, but I have been a FCP user for about 6 years and have always wondered if this is possible. When I lose a link to a movie file in any project, if the file is in use on the timeline, the timeline thumbna

  • Add new fields in Additional data tab B in Inquiry,

    HI, I want  to add additional new fields in inquiry on the addition tab -B, like Architect Name Contractor name followed By referenced by  like this, and want to capture the report on these fields plz guide thanks in advace

  • Does iPad Air 2 open PDF files in Safari?

    Does iPad Air 2 open PDF files in Safari? Having trouble doing so.

  • HT4968 Change existing ical calandar group into a icloud calandar group

    I am using Maverick on my mac, can I change a calendar group on my Mac to a icould group without having to individually change each event.  I had been using my mac ical as my calenadar and recently added icloud.  I don't want to reenter all the event

  • Start before splash screen problems

    Pavillion DV6338SE When notebook is turned on it can take 5 minutes to an  hour to get to the HP splash screen and boot. The blue leds blink then it seems to try again and again and again. If it gets to the HP Splash screen it always bootsThis happen