Dial 1172 error, a run-time error of a VI in the second time in the DLL

Hi all

I am a beginner in labVIEW.

I have to write a test program in labVIEW that uses a DLL created by another programmer.

I called the DLL of my labVIEW for control of DIOs, a serial port, communicate with a slave device, a flashing task.

During the test program, I found that the program is OK if I use it just once, however, if I want to execute coninuously using one-loop While, it failed with

Error 1172.

As far as I could understand, it seems that the DLL creates a log file in C:\ so that he was called for the first time, and the process does not take control of this logfile even after the closure of the DLL.

Then when the DLL is called for the second time, it looks for the same log file to write new info, but as he was taken control by the previous process, there is an error.

Please find the attached files.

Hope there will be someone who can help me to point out my mistakes in my vi or suggest me a solution for this.

Thank you and best regards

Aung

(Because the system does not accept the attachment of the DLL, I changed the extension to .pdf for the DLL file)

This is the DLL file (I have lack of attachment in the post)

Tags: NI Software

Similar Questions

  • I have W XP, SP3. Suddenly, Adobe reader showed the error: Acrobat could not load the DLL base.

    I have W XP, SP3. Suddenly, Adobe reader showed the error: Acrobat could not load the DLL base. Have Adobe reader X (10.0.1) who refuses to be carried away. Other than a drive X (10.1.0) has been reinstalled. Also have Acrobat reader 5.0 is installed from a CD of the Canon scanner slide. The error remains. If anyone can help. Leif Stg

    Hi Leif,

    Where do you get this error message?

    I suggest you to follow the steps and check if it helps.

    Method 1: Uninstall all the instance of Adobe reader and Acrobat reader and install the latest version of one of the drive and check if it helps.

    http://get.Adobe.com/reader/?promoid=DINRS

    Method 2: If the problem persists, perform a system restore and check if that helps.

    How to restore Windows XP to a previous state

  • Error number: 0x80040702__Failed to load the DLL: FirewallInstallHelper___

    OK, I have a good for you I tried to solve without success either.

    I recently downloaded AOE3 the Warchiefs demo to see what it looked like. When I tried to uninstall it it has failed and says Unhandled Exception
    Error number: 0 x 80040702
    Description: Failed to load DLL: FierwallInstallHelper

    I've since tried everything to remove this but no luck.
    First of all, I tried to uninstall and have since deleted the folder containing all the data of AOE3... Without success.
    I tried to delete all the data of AOE3 with the registry, but that did not help.
    I tried to reinstall a new copy and get the same warning.
    What is more, in the list of programs, it shows AOE3 Warchiefs trial package yet and indicates it is 58.4 concerts?

    Help, please.
    It drives me crazy.

    Thank you
    Mike

    Hi MikeAOE3,

    Welcome to Microsoft Answers Community Forums.

    As you have tried several times to reinstall and uninstall the program, I suggest you perform a disk cleanup as a first step to delete all temporary files from your computer.

     

    Please see the instructions to perform disk cleanup,

     

    1. open Disk Cleanup by clicking the Start button, tap all programs, accessories, click System Tools, and then click Disk Cleanup.

    2. in the Disk Cleanup Options dialog box, choose whether you want to clean your own files only or all files on the computer.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. If the Disk Cleanup: drive selection dialog box appears, select the hard disk where you have tried to uninstall the software and then click OK.

    4. click the Disk Cleanup tab and select the check boxes for files that you want to remove.

    5. When you have finished select the files you want to delete, click OK, and then click Deletefiles to confirm the operation. Disk Cleanup on delete all unnecessary files from your computer.

    6. for more information, please see here.

    After you have completed the steps listed above, please download and install the Windows Installer Cleanup utility to remove installation information for programs that were installed by using Windows Installer.

    ·          This is useful when you have problems trying to remove an old program because the installation files are damaged.

    ·          For more information, please see here.

    If the steps above do not help, I suggest you perform the check and the boot if the problem persists.

    Please check this link on how to perform Clean boot and solve a problem using the clean boot.

    Hope this information helps you.

    Kind regards

    Arona - Microsoft technical support engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Fatal error, Acrobat could not load the DLL base

    Hello

    Since a few days, can no longer lire of the US PDF documents on our workstations. In fact the message error en object appears.

    If we launch adobe reader in Director, it displays a window by writing this:

    Adobe Reader cannot open the file in protected mode due to a compatibility problem with your system configuration. Do you want to open Adobe Reader with protected mode disabled?

    -Open by disabling the protected-mode

    -Always open with safe mode disabled

    -Do not open with safe mode disabled

    I could see that there is a Kaspersky application to fix the problem, but I can't use this product.

    If on installs an older version of Adobe Reader that works (version 9 for example), but as soon as we go back in version 10 or 11 the problem is present.

    Are you it another way pour this kind of problem.

    In advance thank you.

    Hello

    Finally we found the PB, it came from a Microsoft update that has removed from the Colombia in Visual C++ DLL

    Thank you

  • Impossible to install FSX Deluxe, receive the error message "could not load the DLL: Gameuxinstall helper.

    Original title: installation of FSX

    When you try to install the FSX Deluxe I keep getting unable to load the DLL: Gameuxinstall helper

    Hello

    What is the version of the operating system installed on your computer (if it is x32bit or x64bit version)?

    I suggest you to contact Microsoft Flight Simulation support to improve the assistance on the issue:

    https://microsoftflight.com/en-us/contactus/

    You can also check out the link below:
    http://www.Microsoft.com/products/games/FSInsider/community/pages/default.aspx

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

    http://social.technet.Microsoft.com/forums/en-us/w7itproappcompat/thread/641b3933-3C3a-4077-8a1e-e271b3c19a95

    If you use windows x64bit OS Microsoft Flight Simulator x Deluxe is not supported.

    Reference: http://www.microsoft.com/windows/compatibility/windows-7/en-us/Search.aspx?l=en-us&type=Software&s=Flight%20simulator%20deluxe&os=64-bit

    Hope this information is useful.

  • When I try to run the MATS I get a message that the dll is missing

    Original title: you try to run Automated Troubleshooting

    When I try to run MATS, I get a message that the dll is missing.  How can I fix this?

    Hi bjacobs,

    1. what Microsoft Fixit you try to run?

    2. when the problem started?

    For more specialized issues of Fixit assistance, please post your request on the Microsoft Fix it Center

    Microsoft Fix it Center

    http://social.Microsoft.com/forums/en-us/fixitcenter/threads

    Hope this information is useful.

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

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Satellite X 200 - 25 G: problem of Flash Cards - Run time error file TCrdMain.exe

    Hello world!

    I don't know how, but I have a problem when my windows Vista from (running)
    The problem is with these file TCrdMain.exe this file is for Flash cards, end running every time when I put my PC on (with windows startup). But I see this problem: "Run time error file TCrdMain.exe ' and I should click Close.
    I don't know where can I uninstall this program and when I find that driver (Software) (if I uninstall and then install this driver, maybe that everything will be OK). This is the main problem.

    And another question...
    There are so many programs with this computer (laptop), and if I want to install Windows XP for example, where can I find everything (each programs) there may be 10 or 15 pograms.

    It will be a big problem if I change my OS. Y at - there a site where I can download, everything...
    Thanks for the replies, nd sorry about my English :-) skills
    Best wishes from the Bulgaria and have a nice day!

    Post edited by: me

    null

    Hello

    I'm not very well why the executable Run TCrdMain.exe error, but it is certainly up to Toshiba FlashCard software and the FlashCard belongs to the package Toshiba Vista added value m.

    Kody is good. Reinstall the VAP and check if this helps solve this problem.

    With regard to the question of the other;
    You are right; the notebooks are preinstalled with many different applications. But it is necessary because the laptop supports many different features.
    However, if you want to install XP OS on the X 200 PSPB9E series, you will need drivers Toshiba XP and all need Toshiba XP drivers are available on the European driver Toshiba page

    You must install all the drivers available if you want to use all the features of the laptop.

    Concerning

  • CVI 2013 ' FATAL RUN - TIME ERROR: pointer to free memory passed to the function of library "when you access a struct of struct

    #include 
    #include 
    #include 
    
    typedef struct StringsStruct
    {
      char A[10];
      char AA[10];
    
      char B[10];
      char BB[10];
    
      char C[10];
      char CC[10];
    } StringsStructType;
    
    StringsStructType Strings = {0};
    
    char *const SelectedStrings[3] =
    {
      Strings.A,
      Strings.B,
      Strings.C
    };
    
    int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                           LPSTR lpszCmdLine, int nCmdShow)
    {
      if (InitCVIRTE (hInstance, 0, 0) == 0)
        return -1;    /* out of memory */
    
      strcpy( SelectedStrings[1], "TEXT" );
      /*** FATAL RUN-TIME ERROR:   "main.c", line 32, col 11, thread id 0xXXXXXXXX:   Pointer to free memory passed to library function. ***/
    
      Breakpoint();
    
      return 0;
    }
    

    Any chance to get this working in 2013 CVI?

    "& Strings.A [0]" does not work either.

    Hello CVI - User!

    Thank you for reporting the issue. I filed the bug report # 423491.

    I did have a chance to get rid of the error by changing the definition of the structure, but I was able to get the program running by disabling execution checking when the fields in the structure are initialized:

    strcpy( (char*)(uintptr_t)SelectedStrings[1], "TEXT" );
    

    Or perhaps a more descriptive workaround solution:

    #define UNCHECKED(x) ((void*)(uintptr_t)(x))
    strcpy( UNCHECKED(SelectedStrings[1]), "TEXT" );
    

    Thank you

    Peter

  • A run-time-error, how to fix

    "I write a function to return a pointer of type float64 and assign the pointer to my defined Pionter 'newdata' in my StartCallBack, there is no error, but when I USE"

    DAQmxWriteAnalogF64 (gtaskhandle0, leng [0])<=leng[1]?2*leng[0]:2*leng[1], 0,="" 10.0,="" daqmx_val_groupbyscannumber,="" newdata,="" &written,="">

    I receive a run-time-error like this: "work.c", line 231, col 121, id thread 0x00007FB4: Array too small argument (40000000 bytes).  Argument must contain at least 80000000 bytes (10000000 items). Why does this happen?

    My part code:

    DAQmxCreateTask ("", & gtaskhandle0 ");
    DAQmxCreateAOVoltageChan (gtaskhandle0, ' Dev1 / ao0:1 ', ' ',-10,0, 10.0, DAQmx_Val_Volts, "");
    DAQmxSetTimingAttribute (gtaskhandle0, DAQmx_SampClk_Rate, 1000/looptime);
    DAQmxCfgSampClkTiming(gtaskhandle0,"",1000/looptime,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,leng[0]+leng[1]);
    DAQmxRegisterDoneEvent(gtaskhandle0,0,DoneCallback,);
    DAQmxWriteAnalogF64 (gtaskhandle0, leng [0])<=leng[1]?2*leng[0]:2*leng[1], 0,="" 10.0,="" daqmx_val_groupbychannel,="" newdata,="" &written,="">
    SetCtrlAttribute (panelHandle, PANEL_REALWRITE, ATTR_CTRL_VAL, (double) written);
    DAQmxStartTask (gtaskhandle0);

    From the code, we cannot see how many samples do you expect to write but there are two aspects to consider.

    DAQmxWriteAnalogF64 expects to receive the number of samples per channel to write; in other words, your "2 *" in the function call is probably wrong. See here for the function. This can cause the error you receive, because the length of the array does not match the settings (you probably want to write 5 million samples per channel).

    Second aspect, it seems to me that your function is the production of the final table with samples interleaved (i.e. array1 [0], array2 [0], array array1 [1], array2 [1]... [n-1] array1, array2 [n-1]). If this is true, you must pass the DAQmx_Val_GroupByScanNumber in the function call.

  • Run-Time Engine error

    I created an automated test and had to run as an executable on a test computer stand alone. I've updated my LabView 8.6.1 software. I just made some changes to the test and recompiled it. When I tried to run it on the computer of stand alone it gave me an error about the missing LabVIEW 8.6.1 run-time engine. I thought when the project was built all the files related to execution it were also built in the folder. Someone at - it run in which could offer some advice.

    Thank you

    Chirs

    Did you create an installer, or simply build the exe? If you have built only the exe file, you will need to install the runtime on the target computer. If you have created an installation program, you can include the installation of runtime as part of the Setup program.

  • Fatal error of Run-Time with function Decimate

    I have a buffer where the samples are interlaced (ch1, ch0, ch0, ch1,...) and I need to separate the handle, so I tried to use Decimate as suggested here.

    The code is very simple:

    Double interleavedSamples [100], ch0 [50] ch1 [50];
        
    Decimate (interLeavedSamples, 100, 2, 0, ch0);
    Decimate (interleavedSamples + 1, 100, 2, 0, ch1);

    but the second call to Decimate gives Fatal Run-Time Engine - too small table argument.

    That's not true, because with a factor of the decimation of dFactor, you can get samples of nut if the input stream is at least dFactor * (nut-1) + 1 and not dFactor * nut

    I tried a workaround solution, specifying 99 as parameters to sizeInBytes in the second call for help, but this does not work, because as written in the help file

    size = trunc(numberOfElements/dFactor) is the size of the output sequence

    and then only 49 items are returned in the buffer ch1.

    How Decimate can be used to separate the interlaced samples?

    You have to note that the size error is on interleavedSamples Decimate argument. Indeed, the function expects to have 100 items to treat from the item of interleadedSamples [1], so you need to size your table of departure as interleavedSamples [101]. Then, you will gain 100 measures and the second Decimate will correctly extract samples [1] to [99], leaving the sample (blank) [100] intact.

  • Run-time error '91'; Variable object or with block variable not set "

    Help, please... I had "run-time error '91'; Variable object or with block variable not set "for kawai2004 game.  Please help how to fix this error.  Thank you very much.

    Hello

    See the following article
    http://support.Microsoft.com/default.aspx/KB/822521

  • ActiveX error message: "run-time error '429': ActiveX component can't create object" when running FSX 2004

    Hello, I hope someone can help. I use Windows 7 64-bit. on a high spec pc. When you run FS2004 (Flight Sim program) I get the error message "" run-time error '429': ActiveX component can't create object ". " That seems to relate to the flight or the CMF management computer program. This error seems to inhibit access to the CMF. I tried to load the latest ATI driver, but that makes things worse. Has anyone encountered this problem before? Hope it

    Thanks in advance

    Ianzee

    Hello Diana

    Unfortunately, none of the above worked. However, I downloaded a file recommended by Flight1 (the creators of one of the 2 games I had problems with) surprisingly, thisinstantly solved the problem it is called http://www.flight1.com/dx7vb.exe.

    Perhaps in the future someone else have this same problem with Vista 64-bit where the game, they could also try this "correction". Of course, it worked for me!

    Thank you very much for your help & trouble in front of me, it is appreciated.

    Cordially Ianzee

  • What is this dialog box? "Run-time error '380': invalid property value."

    I'm trying to load a registration program and I get a dialog box that indicates that following.

    "Run-time error '380': invalid property value."

    What it means. How can I solve this problem?

    Pescatore

    Hi arthur rossi.

    See the FAQ of the Roemer software that has exactly the problem mentioned.

    Refer to the Question I get an error message that says: one of the following values: "Runtime error 380 invalid property value", "Runtime Error 52" or "Invalid file name" in the following article. "

    Roemer Software FAQ (frequently asked Questions)

  • LabVIEW: error building Installer 2011SP1: LabVIEW Run-Time Engine 2013 missing 3 dependencies?

    I'm having a problem of construction of an installer in 2011SP1 of LabVIEW.

    It has been a while since I tried to build an installer but it used to work properly and building executables still works fine.

    Now when I try to compile the installer, I get "generation failed."

    The possible reasons: error generating preview for my 3.1.7 Application.

    Details:

    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    
    CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> IB_MSI.lvclass:Build.vi >> IB_MSI.lvclass:Engine_InitializeDistribution.vi >> IB_MSI.lvclass:Report_Preview_Error.vi >> IB_Source_Container.lvclass:Report_Preview_Error.vi
    
    Loading product deployment information*** WARNING ***NI LabVIEW Run-Time Engine 2013 is missing 3 dependencies. This product, or other products that depend upon NI LabVIEW Run-Time Engine 2013, may not function properly while the dependencies are missing.  Visit ni.com/info and enter the Info Code "" for more information.
    
    ***************** Error: An internal error occurred for which the cause is unknown. (Error code -41)***************** Error Details:Error in MDF API function: _MDFCommon_GetNextLogMessageError in MDF::GetInstance - MDF static instance is not initialized!*** End Error Report**************
    
    Loading product deployment information*** WARNING ***NI LabVIEW Run-Time Engine 2013 is missing 3 dependencies. This product, or other products that depend upon NI LabVIEW Run-Time Engine 2013, may not function properly while the dependencies are missing.  Visit ni.com/info and enter the Info Code "" for more information.
    

    The really strange thing is that I'm using LabVIEW 2011SP1, I don't even have installed LabVIEW 2013, not even the runtime.

    Where is the problem? Why is he still complain about LabVIEW 2013? Anyone seen this before?

    Troy,

    This behavior makes me assume that you updated certain components from the past. There are drivers of OR who use LV components (e.g., AFAIK the DAQmx of Test panels).

    Update you things? If Yes, why don't you LV 2013 RTE installed as it would be necessary for full functionality of the driver?

    Norbert

Maybe you are looking for

  • How to make mailing labels?

    How can I make mailing labels?  Pages give models of envelopes and cards, but not the labels.  What gives?

  • How can I add an icon on my desktop?

    I have three hard drives in this computer and would prefer to have an icon for the system only one for each hard drive. I'm under El Capitan, 10.11.4. Thank you!

  • Pavilion dv9640us: diskless system repair

    I need to do a repair system, but do not have a system disk

  • Satellite U400-17R - audio device does not work after installing XP

    Hello I bought a model U400-17R with Vista Home. I formatted and installed Windows XP Professional download drivers XP Toshiba site. Everything works, but my Sound Device does not work. When I check in the Manager of devices the Sound Drivers are the

  • Change project prefix

    When you create a new project in 2012, there is an option to create a file name prefix. Is it possible to change this prefix later? It would be useful when you create a copy of the project. I also have a second question, which relates to this but I'm