Fail gracefully with missing dll

Hello again all you lovers forum useful!

The Situation:

I have an application that includes a few subVIs that call the two DLLs via call library function Node live.  After generating the application and put the executable file and the two DLLs on another computer, I tested what happens when DLLs are badly named or otherwise not present.

The current results of unfortunate:

What is happening is the loading screw LabVIEW dialog box comes up, and in addition to this one dialog box open/save standard indicating "find the shared library named MyDLL.dll.  If I then press Cancel, another dialog box comes up saying "LabVIEW: resource not found.»  Error loading VI 'UseMyDLL.vi '.  LabVIEW support 3 error code: could not load façade. "When I press OK so that I get the same dialog box, once for each VI which calls the DLL.  After pressing OK a few more times, I get a list of each place, the subVIs that call DLLs are used, with lines like «Missing Subvi UseMyDLL.vi in MyTopLevel.vi VI.»  At the same time my Panel appears, but with the display of the toolbar of the running boom and broken.

What I want to do:

What I was hoping would happen is something like a dialog box that appears asking to find the DLL, and if Cancel was pressed, a dialog box saying "MyApp.exe could not run because it lacks the"MyDLL.dll"file." and nothing else happens or be shown.  Honestly, I'd rather not even invite the user to find the file.  It feels very rough for a distributed application.

The questions:

Does anyone know a good way to get the closest results of what I want to do?  The best idea I could get to is to dynamically load the screw-based DLLs, so that I can programmatically check the dll are there prior to the loading of these screws in and out gracefully by using my own code.  Is there a problem with using the call by reference or node Invoke to call the screw when I want the DLLs to stay in memory once they are loaded to save their State, and some of the screws that calls the dll must remain in memory because they are functional global variables?  Looks like there could be some pitfalls here.  I would be happy to know that alternatives to the behavior problem missing DLL, especially of solutions that do not require as much of a rewrite of the code.  ;-)

As always, thanks for your time!

-Joe

  1. Nice work on the test of unusual conditions. Just to have the State of mind is a good thing.
  2. I don't think the Nice load behavior you want can be applied on a global scale because sometimes the DLLs are loaded dynamically called code and which should not affect the application, but it could probably be applied to the static code called by the main VI in the executable.
  3. That said, it would not be worth, because it is a relatively rare event. If you put the idea in the exchange of ideas, I'll vote for it, but I wouldn't can't sleep if NEITHER has not spent all resources on this subject.
  4. You can load VIs dynamically as you suggested, or you can configure the CLN nodes themselves accept a dynamic path to the DLL, but I would say that this problem is rare doesn't not to warrant a change in the code. If you take really as long as you can load your app with a start of VI or EXE that will test the presence of DLLs and only if all of them are at will then dynamically load the main VI or EXE.

Tags: NI Software

Similar Questions

  • weird problem with Terracopy, failed module name: ntdll.dll.

    LM, I was wondering how to fix this problem:

    Name of the failing application: teracopy.exe, version: 2.3.0.0, time stamp: 0x52a2ba02
    The failed module name: ntdll.dll, version: 6.1.7601.22436, time stamp: 0x521eaa80
    Exception code: 0xc0000005
    Offset: 0 x 00032532
    ID of the process failed: 0 x 710
    Start time of application vulnerabilities: 0x01cfd4875bf40e52
    The failing application path: C:\Program Files\TeraCopy\teracopy.exe
    The failed module path: C:\Windows\SysWOW64\ntdll.dll
    Report ID: a3d32145-407a-11e4-9b85-c3289d97281b

    Hello

    I am happy that the problem didn't happen after the downgrade.

    Ntdll.dll is mainly concerned with system tasks and includes a number of features of kernel mode that allows a "Windows Application Programming Interface (API)". The ntdll.dll is also responsible for messages, timing, threading and synchronization in the operating system.

    Since you don't have any problems, I wouldn't worry about the dll file.

    Answer if you have issues with Windows.

  • Windows service crashes with failing module NTDLL. DLL

    I have a Windows service (Controller.exe) written in .NET 3.5 SP1, which runs on 2008 R2. The service blocks with the following entry in the event log:

    Name of the failing application: Controller.exe, version: 0.7.0.1424, time stamp: 0x50d232dc

    The failed module name: ntdll.dll, version: 6.1.7601.17514, time stamp: 0x4ce7c8f9

    Exception code: 0xc0000374

    Offset: 0x00000000000c40f2

    ID of the process failed: 0 x 2048

    Start time of application vulnerabilities: 0x01cde94e239bd028

    The failing application path: K:\Weeden\Worms\Weeden.Worms.Controller.exe

    The failed module path: C:\Windows\SYSTEM32\ntdll.dll

    Report ID: 06f96576-55a2-11e2-8097-d8d385bcce80

    There is nothing in the app logs to indicate that the application has been done nothing at the time wherever it crashed. He has done a few times before (but seldom - once every two weeks or more).

    The only entrance at the time of the error is the one where it says The Windows Error Reporting Service service entered the running state. But I suspect that it is just to log the crash.

    Can someone please advise on the issue?

    Thank you!

    Hello

    Thanks for posting your question in the Microsoft Community Forum.

    According to the information, you're faing questions about Windows Server 2008 R2, Windows Service hangs with NTDLL module failed. DLL.
    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums for further assistance. . You can follow the link to your question:

    Technet Windows Server general forums

    Using the windows-related issues feel free to post on the Microsoft Community Forum.

  • missing DLL

    Firefox only has no automatic update repeatedly. Finally decided to uninstall and do a clean reinstall. Installation download opens and then closes and goes no further. Downloaded the IE Setup file and tried again. Same result. Decided to try Safari. Same model. Installation file opens the farm and no further action not accept Safari popup message says "Missing DLL", but it does not say what DLL. I have no idea how to solve this problem. Miss my Firefox. Help!

    These problems can be caused by security software.

    Start the computer in Mode safe mode with network support Windows (on the startup screen, press F8) as a test to see if that helps.

    Do a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.

    Download a new copy of Firefox and save the file to the desktop.

    Uninstall your current version of Firefox, if possible, the settings in the software security and cleaning of the Windows registry.

    • Do NOT remove the data personal when you uninstall your current version of Firefox, because all profile files will be deleted and you will lose all personal data such as bookmarks and passwords from other versions of Firefox profiles.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but make sure that 'delete personal data' is NOT selected when you uninstall Firefox.

  • On my Satellite Z830 missing dll file

    Hello

    I have a Z830 and I'm really happy with it. But I have a little message DLL missing after startup.
    It is said: "* there was a problem starting msixvq32.dll the specified module could not be found."

    My question is, where can I find that missing DLL? I know how to disable the alert with msconfig, but I does not solve the problem, it just hides...

    Thanks for your help

    see you soon

    Since when this message at startup?
    Have you done all that can be responsible for this?
    Can you identify which module is this dl issue?

  • Satellite Pro L300 - missing dll. files after the installation of the printer

    Hello

    I have missing dll. files on my Pro L300.
    When I try to install my printer software it throws an error message upward.
    I now have the missing dll. files, but can't seem to install them. Someone knows what to do with them?

    I am running XP and the files are sccbase.dll slbcsp.dll

    I have listed this question before, but it has never been on the forum?

    Thank you very much

    Q

    Hello

    I searched and slbcsp.dll sccbase.dll and found someone who had the same problem after installation of the printer software.
    Check out this site:
    http://forums.CNET.com/5208-6142_102-0.html?ThreadId=275051

    Please post some feedback after you try the workaround solution posted here.
    It looks like a registry key must be changed.

    Good luck

  • DetermineReportFilePathNameExpr missing dll Testand 2014 SP1

    In my sequence of process template is only a call to DetermineReportFilePathNameExpr in content modelsupport2.dll. (Teststand 2014 64 bit) This call makes the Teststand sequence editor stop working. I guess (?) that the reason Miss dll as follows

    My system

    • Windows 7 64 bit

    • Testand 2014 SP1 (14.0.1.103) 64-bit

    • Version 14.0.1.103 sequence editor

    In the analysis of Dependency Walker modelsupport2.dll , used in the DetermineReportFilePathNameExpr call, I see the following dll lack on my system:

    • API-MS-WIN-APPMODEL-RUNTIME-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-ERROR-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0. DLL

    • API-MS-WIN-CORE-WINRT-STRING-L1-1-0. DLL

    • API-MS-WIN-SHCORE-SCALING-L1-1-1. DLL

    • DCOMP. DLL

    • IESHIMS. DLL

    How can I get these DLLs?

    Best regards

    Hey Rainman.

    TestStand comes with the source code of modelsupport2.dll. It is located in the directory of TestStand components:

    32-bit: C:\Program Files (x 86) \National Instruments\TestStand 2014\Components\Models\TestStandModels\modelsupport2

    64-bit: C:\Program Files \National Instruments\TestStand 2014\Components\Models\TestStandModels\modelsupport2

    You can compile it if you have the CVI on the system. Otherwise, you can at the very least still look .c files and see what is happening in the code.

    For this particular function, it seems that we have changed it over the years. The new version of the function is DetermineReportFilePathNameExprEx2 and has more than two parameters: processModelClientPath and uutPartNum. If you create a new model of process from scratch, it's the call, so you must use your process template is more stretch if you decide you need this information.

    Try the DetermineReportFilePathNameExprEx2 and switch the values for processModelClientPath and uutPartNum. If it still causes TestStand hang, then I would recommend building a debug DLL to see the line of code where this occur.

    Edit: Also try passing an empty string or a value ' " for uutStatus. Nothing can be a problem. I do not expect to be a problem because TestStand converts this value to a point of value Null of appropriate architecture, but it should be test.

    Thank you

    -KP

  • . Missing DLL? (nilvaiu.dll).. .when an installer of construction in 2009.

    OK, what we have here is a little grope in the dark... I have not built an executable/installer because I was working with LV8.6, so please bear with me here... before any such request, yes I find!

    Here's my process at this stage...

    I have a VI that works the way you want.  I want to make cela a stand-alone executable that I can run on a different computer to manage some controls.

    I have the runtime of LV 2009 installed on such computer.

    I then open my VI, yet once make sure it works as you wish and add a new project.

    This VI is added to the project.

    I now have the open Project Explorer and select Build specifications and select New/Application (EXE)

    On the following tabs, I get the following...

    Information... No action taken

    Source files... I select the VI and add it to the startup list screws

    Destinations... No action taken

    The source file settings... No action taken

    .. .and essentially leave everything to their default values.

    Generation hit and he built "My application", which is added under the specifications to build file.

    I took that target the folder containing the executable file included and tried to run it on my computer and it just missing the aforementioned nilvaiu.dll

    Now, I'm doing that too simple?  Missing a few steps?  I also went on the way to an installer and get the same missing dll when I run.

    I am more than willing to read and learn, but I'm just not be quality for the correct terms or in the right places.  A point in the right direction would be much appreciated guys!

    Thank you

    Chad

    nilvaiu.dll installs with DAQmx

  • missing .dll in windows server 2012 r2

    Good day guys

    I'm having a problem with missing persons. DLL files

    program cannot start because CRTDLL. DLL is missingfrom your computer and

    program cannot start because OLEDLG. DLL is missingfrom your computer and

    with this windows cannot be used.

    can any one have the same problem

    Thank you

    Harvey

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Missing DLL, found dll, need to know how to put

    Load PC game Pacific Storm.  Goterror missing «d3dx9_28.dll» message  Went to site and downloaded a file compressed with inside.  Now that?

    HP Pavilion s5414y.  Windows 7

    This file belongs in the \Windows\System32 folder. Copy to that location, and then open a command prompt (cmd, right-click "run as Administrator"), type 'cd \Windows\System32', and finally 'regsvr32 d3dx9_28.dll"(without the quotes, of course). An easier method would be to run the DirectX WebInstaller, which checks if the DirectX files are up-to-date and adds missing * dll that you mentioned (download:http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2da43d38-db71-4c1b-bc6a-9b6652cd92a3&displayLang=en). "192GO should be enough for everyone." (of the miniseries "Next generation jokes")

  • Missing DLL entry

    After the execution of my Vista updates every week, I am now presented with the error after loging out, "error in C:\\Windows\System32\NVCPL. Missing DLL entry: Nv Session start. How do I rectify this?

    Tony,
    This file referenced in the error NVCPL. DLL is part of the Nvidia Control Panel that loads normally start.  You probably need to just reinstall your drivers for Nvidia graphics cards.  If you have any problems with this or need to download the latest drivers you can get help on the Nvidia website.  If you don't know what graphics card you have you can find out by clicking on start > right click on computer > select Manage > Device Manager > expand Display Adapter > right click on the name of your card and select Update driver software or propterties.  Let us know if you need more assistance.

    Thank you
    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Missing DLL files while trying to load a game

    Original title: missing DLL

    I bought a game for my daughter who said it is compatible to Windows XP. However, when I try to charge it I am constantly be bombarded with messages stating that files such as Wing32.dll, wing de.dll and wingdib.drv cannot be opened. These files are not on my windows system file so do I need to do to make this game run?

    Hello

    1. what game are you talking about?
    2 have you connected to the administrator account?

    Do the following and see if they help.

    Step 1:

    Unregister and then reregister the Windows Installer Service.

    a. Click Start > run, type msiexec /unreg and click OK.
     
    b. Click Start > run and type msiexec/regserver, click OK.

    Step 2:

    Make SFC scan and check if the problem persists.

    Step 3:

    You can also follow the steps listed in this article.

    http://support.Microsoft.com/kb/822798

  • What I do with gdiplus.dll?

    What I do with gdiplus.dll? He appeared recently on a separate disc I have. I have several internal hard drives. It is not on the c drive.

    I can't know when it appeared, and it is probably due to an update of Windows.

    Any advice?

    Thank you.

    I have 7 copies of gdiplus.dll in different folders.

    One is for the FTP program I use, one for MS Office, one for a program to screen capture that I use and the other 4 are in different windows side by side (c:\windows\WinSxS...) files.  All the gdiplus.dll file are made by Microsoft, but they are different versions under the folder of installation of these programs.

    I don't have Nero installed so can't look down there.

    Files in WinSxS files are created and filled when you install several C++ Redistributable Runtime and contain executable files and DLLs that some third-party programs that you have installed may have need, so you could have more, less or no files in WinSxS.  WinSxS is the technology that allows you to have multiple copies of the different versions of the files with the same name on your system at the same time.

    Some of mine back in 2001, but it is not the date they have been installed, it is the date of creation of the file.  Some of my friends are of different sizes, dates and versions, but all belong to Microsoft (look at the properties, the company and the product name).  The programs that need to use the gdiplus.dll file to retrieve the copy they need to in the right place at the right time when they need.

    If you say where you found the file mysterious gdiplus (which is the full folder path to the file), then you know what program installed and put there.  I don't think it should just be hanging around flapping in the breeze, a place...

    If you don't like it, rename it to something like gdiplus.xxx and if something he needs to spend between the program and your screen or printer and can't find it, I can see this program would be a bad operation and if all goes well complain is missing.

  • Outlook Express does not open. MSOE file error message. Missing DLL files

    Hello

    I am unable to open Outlook Express.

    I get the following error message.

    Impossible to open. MSOE. DLL missing. I'm on my

    ary address right now. Please send all messages from * address email is removed from the privacy *

    I changed my

    default email to * address email is removed from the privacy * to


    I am unable to open Outlook Express I get the following

    error message.  Cannot open the file MSOE. Missing DLL.

    Right now I use my secondary address. :

    E-mail removed for the protection of personal information

    Please NOTE: I have now a new primary e-mail address is. :

    E-mail address is removed from the privacy *.  I added the number one (1) after the letter

    s. Please send all responses to

    E-mail address is removed from the privacy *.

    ONE) after Linda s number of the letter.  It has been * address email is removed from the privacy *

    hope someone can help me fix this problem.

    Folders.dbx is probably damaged.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the Folders.dbx file and delete it.  Another will be created automatically when you open OE.

    Note these possible side effects:

    When you re - start OE, it will build a new index of all *.dbx files it can read and create a new Folders.dbx. Please understand that you will lose the mail directory structure, and message rules will probably have to be edited.

  • Missing DLL files. Windows Update does not work. Manufacturing installation of Xp home Sp3.

    I inherited my parents (RIP) PC. It is a Windows Xp home service pack 3 installation manufacture. I'm NOT have a disk to reinstall. There are problems in the registry and the missing DLL files. I can't update windows to work. The downloads will not be installed.

    I was told "running" sfc/scannow and rather than put it on Cd to type the path to the files (C:/windows/I386)... I tried... But he asked the CD and will not let me choose a path.

    So... How can I reapir my Xp home without the disc?

    On Monday, December 6, 2010 20:55:18 + 0000, janiflower wrote:
     
    > I inherited from my parents (RIP) PC. It is a Windows Xp home service pack 3 installation manufacture. I don't have a disc of resettlement. There are problems in the registry and the missing DLL files. I can't update windows to work. The downloads will not be installed.
    >
    > I was told 'run' sfc/scannow and rather than put it on Cd to type the path to the files (C:/windows/I386)... I tried... But he asked the CD and will not let me choose a path.
    >
    > Then... How can I reapir my Xp home without the disc?
     
     
     
    If I bought a used computer, no matter who previously owned the
    first thing I could do with it would be to reinstall the operating
    system itself. You don't know how the computer has been maintained,
    which has been improperly installed, what's missing, what virus and
    There may be spyware, etc. I would not live with someone
    other errors and problems, possibility of kiddy p0rn, etc. and I
    would not recommend anyone else to do.
     
    If you reinstall Windows properly, you are playing with fire.
     

    Ken Blake, Microsoft MVP

Maybe you are looking for

  • Firefox displays the weird texts

    I use Firefox 32.0.3 on my Windows 8 (. 1) PC. The problem I've always faced with Firefox on my Windows 8.1 machine is that Firefox displays the text incorrectly, see screenshots here: http://1drv.ms/1xCwgJ0. It happens more often in Favorites, menu,

  • Portege M700 with Windows7 / problem with assignment of the tablet buttons

    Hello After the upgrade of my Portege M700 Windows 7, most of the hardware seems to work. One exception are the tablet buttons to adjust the orientation of the screen, or to be used as replacement of slider. When changing the mode of the Tablet (e.g.

  • Satellite C660 - M21G SM bus controller and display driver installation problem

    Hello I recently bought toshiba Satellite C660 laptop M21G with windows 7 32 bit installed (not not licensed) and I installed all the hardware drivers except the SM Bus controller and driver of Nvidia GeForce graphics card, this because it will not t

  • Satellite L655 - update for the AMD display driver

    Why he did there not update for ATI driver Satellite L655? I want to use AMD app functionality which is supported by ati hd 5650, but programs that want to use this feature says I need to update the display driver. The AMD driver said he is not taken

  • Force10 S4810P do not observe the changes

    Hi all We have just acquire two switches Dell Force10 S4810P, I started to configure one and I met with a series of questions. I downloaded the swtich configuration manual and follow the instructions. I'm trying to define management adapter ip or oth