LabVIEW crashes after the call to the DLL

Hi all

I'm working on writing a wrapper for a dll. The call to the dll works fine a returns the appropriate values, but as soon as I close the VI dev LabVIEW environment crashes. Any help to avoid the same. I've been through a lot of posts and I tried varying the types of data sent to the dll, but again it gets crashed.

the dll function that I use is the prototype (with the calling convention of type C)

int nomfonction (Struct * cfg, UCHAR dNumber, UCHAR hTYPE)

The varables UCHAR I'm passing as of 8-bit unsigned integers.

For the structure, I did a cluster and pass with adapted to the Type and handles.

The DLL is running very well and the VI stops, too, but as soon as I try to close the dev environment VI crashes. Help, please.

Thank you.

It is always possible that there is a bug in your DLL, or you're a failure calling a function in the DLL that is required in order to properly clean. The problem is perhaps not the way you have set up the call library function node.

If you post: your VI; the header file that defines the structure of the cfg and the function prototype; and all the documentation on the function, so we can tell you if it is properly configured. Without this information there is little we can do.

Tags: NI Software

Similar Questions

  • computer crashed after the automatic update Tuesday night

    Hi, Kevin

    My computer crashed after the automatic update Tuesday evening. The message indicates that the demand for window vista (which initially provided with the Lenovo computer, that I bought new in 2007) is not valid. When I rebooted and you press F5, it offers 3 options 'Security Mode', but no return explicitly beforehand updated status.

    I'm not familiar with uninstalling and restoring systems. Can you walk me through the process? Can I uninstall or restore when the computer is in mode security (limited capacity)? How a WAIK/Windows PE image downloaded to another computer to help me with the computer that is out?

    Your suggestion to install SP2 apply to windows vista home basic version, 2007?

    Thank you!

    REMOVE your product key from your last post as someone can use your key and
    It will make a lot of grief

    Call or contact the manufacturer of the system since you are using an OEM version.

    See this thread.

    http://social.Microsoft.com/forums/en-us/genuinevista/thread/dd6dae5a-6659-4C84-aeb9-8f2d585a18eb
    Rob - bicycle - Mark Twain said it is good.

  • Windows 7 64 x computer with up-to-date Norton 360 crashes after the last update__ critic

    Windows 7 64 x computer with up-to-date Norton 360 crashes after the last critical update. I had to go back to a recovery point before the last installed update. I had Norton 360 for nine with no previous Windows Update problems

    It seems to work after a reboot and a new attempt to update norton.   First, it froze.   I connect this because I heard that several win 7 64B machines at work had to be restored on 1/12 after a bad update.  I don't know if they also had norton.

  • Halo 2 crashes after the level "Gravemind".

    Halo 2 still crashes after the cutscene at the end of the level "The Gravemind".  The game acts like it's loading to the next level with the logo of Halo 2 and the vertical lighting of back and forth set.

    I had to play at this level twice, otherwise I can't get any achievement.  I'm tired of having to play at this level.
    My computer specs:
    AMD Phenom II X 4 955 3.2 Ghz Black Edition
    ATI Radeon 9870 x 2 1 GB GDDR5 Ram
    1 TB Western Digital Black
    ASUS M4A79T Deluxe Motherboard
    8 GB DDR3 1600 MHz Ram

    Hi Chuckthetekkie,

    Welcome to Microsoft Vista answers Forum!

    The system requirements for your computer is fine.

    I have a few here that might solve the problem.

    I suggest you perform the clean boot which disable the application non-Microsoft temporarily in conflict with programs. It helps us find what third-party application or service is causing the problem. Follow the steps in the link: how to troubleshoot a problem by performing a clean boot in Windows Vista: http://support.microsoft.com/kb/929135 Note: make sure to put the computer in a normal state, proceed to step 7 in the link. After you find out which application is causing the problem, please disable the program or application. If the problem persists, I suggest you to visit the site of the game Halo 2 to find if there are any updates or patches.

    Hope this information is useful.
    Let me know if it worked.
    All the best!

    Thank you, and in what concerns:
    Swathi B - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Win XP crashes after the splash screen (charge PointSec)

    I have a laptop lenovo t400, which has Pointsec Encryption (6.1.3), and WinXP loaded thereon.

    I ran the update tool think that Vantage Lenovo that has downloaded and installed a number of updates - I didn't run it for centuries.

    Now when I try to start the computer it crashes after the XP splash screen is displayed. Simply, the screen goes black.

    I tried the options Mode safe (include VGA Mode and start with the last successful configuration) without success. Also, they fail to start.

    The flow rate is:

    Power On, screen authentication PointSec, Win XP Splash screen, and then a black screen

    I got successfully into the system using UBCD4Win with pointsec plugin loaded, load a WinPE environment on a USB and allows me to access the C: drive unencrypted (as I've authenticated with Pointsec).

    I'm really stuck for ideas as to the update is the cause of the problem and I'd love to hear some suggestions on how to remedy this situation.

    --

    Additional information:

    The last lines in ntbtlog.txt is:

    Not load the parallel driver live

    Did not load driver bios SM service

    Did not load driver SM bus service

    Loaded driver \SystemRoot\System32\Drivers\Cdfs.SYS

    Search:

    c:\Windows\$NtServicePackUninstall$

    Looks like that Service Pack 3 has been installed:

    File: spuninst\spuninst, inf shows:

    NtServicePackVersionText = "Service Pack 3".
    NtServicePackPreviousVersionText = "Service Pack 2".

    Fixed!

    The problem has been updates to lenovo (probably guilty being the video driver that I presume).

    Using UBCD4Win with pointsec plugin I was able

    * Access to the decrypted c:

    * Restored manually updates to c:\windows\system32 and c:\windows\system32\drivers

    Original files have been found in places like: c:\windows\system32\reinstallbackups\008\DriverFiles

    * Finally, I had to roll back updates of the register who did the updates. UBCD4Win offers a tool to do this: the registry Restore Wizard. He basically just look in c:\System Volume Information System Restore directory and lists all the Restore Points available (Fortunately the Lenovo updates mark a restore point until they run). You can also do it manually using the following instructions:

    http://hypography.com/forums/tutorials-and-how-tos/17193-XP-recovery-instructions-for-UBCD4Win.html

    This makes the system successfully booted.

    I've most definitely will be staying clear after you press the big blue button in the future. It was a nightmare to fix.

  • sqldeveloper - 4.0.3.16.84 - x 64 crashes after the splash screen

    I had successfully used my installation of sqldeveloper - 4.0.3.16.84 - x 64 last week. After an update to windows 7 enterprise SP1 crashes after the splash screen and about 10% of the progress bar, until the message saying it is saving the extensions. There is no error or other messages of information displayed. I tried to run from a command window produces no additional information. I deleted the sqldeveloper folder and downloaded a zip file and reinstalled. Same behavior.

    2014-09-29 12_11_57-Clipboard.jpg

    The Data Modeler works very well.

    Any suggestions on how to do this problem.

    Hi Andy,.

    If the problem is not with the installation of SQL Developer (which you have unpacked in an empty directory) or find the JDK or having a JDK version that is inappropriate, you should then see if your user settings has been corrupted or (maybe) is somehow became less accessible than before the update of Windows 7 SP1.  These settings can be found under C: \Users\-Appdata\Roaming\SQL Developer\system4.0.3.16.84.


    Here is a compilation of a few standard tips offered several times before on this forum for this kind of situation:

    1 see if behavior persists after the removal of the settings and restart SQL Developer without migrating settings.

    (Be sure to make a backup (export) of your connections first!)

    2. see if (assuming that (1) does not help) allows to reinstall SQL Developer.

    If the fault cannot be placed on a migration of settings / download / installation corrupt, then we can start to consider...

    3. possible problΦmes with older JDK.

    4 OutOfMemory possible problΦmes that may be hidden by running only no Developer SQL from a command line console.

    5. a new bug.

    So try (1) and (2) If you have not already.  Ignore (3) If you are already using jdk7_u51 or later and are not on a Mac.  Point (4) can be a problem if you have many windows to restore and did not mount the Xmx values in the file product.conf - especially if you use a 64 bit JDK.  And (5), if you have the urge, see...

    http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-Debug-Info-for-Oracle-SQL-Developer/

    And if you want to try (1) in a clean 'sandbox' unaffected by existing directories of user settings, you can always add one

    AddVMOption - Dide.user.dir =

    line to your sqldeveloper.conf file.

    Hope this helps,

    Gary

    SQL development team

    P.S.: And keep in mind that SQL Developer "score" to a specific JDK in 4.0 and above all used the SetJavaHome in the product, conf, rather than sqldeveloper.conf

  • Constant crash after the last update!

    History is constantly crashing after the last update, I've noticed the logo has changed. If I use a different application then when I click on new in the history in closes unexpectedly. Any ideas? can I roll back? What to know about me? Thanks in advance,

    Mac Pro running 10.9.1

    32 GB of ram

    Intel Core i7

    Member of creative cloud

    Update: this issue is resolved with the latest version of Adobe AIR. Please download and install the most recent http://get.adobe.com/air

  • Dreamweaver CS3 crashes after the end of daylight saving time

    In Windows XP x 64, Dreamweaver CS3 crashes after the end of DST. There is a technical note which seems to describe the situation exactly. http://KB.Adobe.com/selfservice/viewContent.do?externalId=kb402776 & sliceId = 1

    However...

    (1) technical note says that this only happens with ASP and PHP code. I use ColdFusion. (This is a minor point).

    (2) technical note said...

    Remove the WinFileCache - AD76BB20.dat the Dreamweaver user configuration folder. Note that on Windows, the Application Data and AppData folders are hidden by default, so check that your Windows Explorer folder options are set to show hidden folders. The location of this file is as follows:

    Dreamweaver CS3 on Windows Vista:
    C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration
    Dreamweaver CS3 on Windows XP:
    C:\Documents and Settings\ [username] \Application Data\Adobe\Dreamweaver 9\Configuration

    However, I couldn't find WinFileCache - AD76BB20.dat in Documents and Settings or in Program Files (86) \Adobe. (86, it is because it is a 32-bit program on a 64-bit computer, but everything else is the same). I tried then the two directories for *.dat and there was no file that resembled something like WinFileCache - AD76BB20.dat.

    . Can someone help me?

    Thank you!

    Alan, thanks for the suggestion.

    I did the research found the file, deleted it, open Dreamweaver CS3, chose the same text - and it crashed as before.

    THEN I REBOOTED and tried again - no. CRASH. So it seems that a reboot is an essential part of the correction.

    BTW: My situation exactly match the description of the Technote. (1) the accident occurred when selecting - in design view or code - some text in a HTML context involved in the code ColdFusion; (2) I had no problem with these files before DST ended; (3) even after I've not had any problems with them in Macromedia Dreamweaver 8 on another machine - the problem is that the CS3.

    So the TechNote is correct as it will, but should be changed as follows:

    (1) ColdFusion should be included in the types of code that can be associated with the problem.
    2) instead of delete the WinFileCache - AD76BB20.dat, you should delete the WinFileCache-[any] .dat.
    (3) a reboot after the removal may be required.

    Anyway, problem solved.

    Thank you!

  • LabView crashes after calling DLL

    Hello

    I'm working on a library that makes calls to the other dll, which is linked dynamically.

    I have to do this, customize the DLL search order before the call and add a few custom directories (where are the dll called).

    The called code works very well, and doesn´t in the DLL called memory leak, however LabView is suspended.

    It took me a long time to understand this, so I hope this helps someone in the future. Below is the solution.

    LabView uses its own research agenda DLL, so beware of assistance call "SetDefaultDllDirectories" regarding the whole process and LabView DLL management function will burst.

    Allways avoid using flags in the LoadLibraryEx.

  • Taste Pro CS6 crashes after the PC wakes up from sleep / 2nd monitor blocked by preview

    Hello

    When I'm working on a project in v6.0.5 PremierePro CS6 and put my PC to sleep, first plant almost whenever I start Windows again. There is no error number or anything, just a window saying that PP does not work and I don't have the option to close PP. I have essentially leave the first every time and load the project again when I continue to work on it, which can take a long time if it is a long-term project.

    PPsleep_error02.jpg

    This also occurs with another PC I might test it work on. What is happening since the very first version of PP CS6. I had the chance to test CS5.5 PP on this issue and it was not a problem their.

    I was testing with Win7.

    I have already submitted this bug long enough, but all updates do not resolve this problem.

    There is also another bug, I noticed on the second preview screen in PP CS6, who is also not getting treated for some time.

    When you use a configuration double monitor preview full screen on the second monitor does not minimize if I reduce PP by clicking on the icon of the PP in the taksbar. If I use the button cut in the window (top-right) PP Preview on the second monitor rest in the background as it should. Also if PP is reduced and I'm working with another application (read a PDF file or surfing the web, fo example) PP full preview screen appears after a while on its own and blocks the second monitor. So I have to go to the PP window and return the application I want to work to get rid of the control screen is blocked.
    Here you can see what I mean: https://dl.dropboxusercontent.com/u/26473959/PremierePro6.0.3_2nd_monitor_issue.mov

    This issue has also been tested on other machines with Win7 and they all had this problem.

    I don't know that I need to address in order to address this problem. I reported it emits in bugs already around version 6.0.1 and also communicated with the Help Center, but it did not help. These two questions are obviously not related to my setup because I can reproduce it on other machines. What can I do?

    Other users also have had this problems?

    Kind regards
    Petr

    Good news: I discovered that the crash of the CS6 PP after hibernation had something to do with my card nVidia (Quadro 1000 M) and if I disabled the Aero feature in Windows 7 while sill using the Quadro 1000 M the crash had disappeared. Then I also had for some reason, an error after PP crashed with Aero enabled saying that he had a problem with nvoglv64. DLL and OpenGL. So I searched the web but have not found a solution that works for me. (Updated all the drivers, products Windows and Adobe did not help)
    Then, I played around with the preferences of the nVidia card and found a framework that solved the crash while Aero still listening on.


    I turned the "vertical sync" (if this is the correct translation of this parameter in German). This has something to do with OpenGL and the rate of the monitor. Since then, he works so far without crashing. I'll report if no new problems occur.

  • users on android like me are reporting that Firefox crashes after the last update 35.01

    BONES of Firefox crashes on android, after the last update 35.0.1 can you fix with a update guys please I use Hudl 2

    Yes, sorry about that. Now, that should fix, we have released an update. Your device was basically downloading a generation for devices Android ARMv7 based instead of the Intel x 86 version.

  • Crash after the opening of windows 7 32 bit

    After the opening of firefox mi 27.0.1 I have to wait 1-2 seconds and after that it freezes and mozilla crash report it opens automatically, I tried to choose 'win xp sp3' compatibility and she almoust works, the flash player, that it does not, the icon on the task bar that it flashes, the window of flash player (youtube player) a black and wite quickly switch I tried to reset firefox also! Preobrajensky administrator,

    The most recent report is a problem with the Shockwave Flash plugin.

    • Firefox 27.0.1 crash [@ F1398665248___]

    You can check for problems with the current versions of the plugin Shockwave Flash and try this:

    • Disable protected mode in the plugin Flash (Flash 11.3 + on Windows Vista and later versions)
    • turn off hardware acceleration in the Flash plugin

    See also:

  • Satellite Pro A210 PSAFHE - Windows 7 - crashes after the sleep/hibernation

    I have a PSAFHE Satellite Pro A210 running dual boot Windows XP/7
    With the help of Windows 7 - 32 or 64 - system always crashes after sleep/hibernate mode.
    This never happens with XP that sleeps and hibernates OK...
    There is no driver for this laptop on site http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp?service=EU
    I like system 7 and use it on my other computers but without sleep/hibernate, I go back to XP.

    Hello

    > There is no driver for this laptop on site http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp?service=EU

    Sorry, mate, but you're wrong.
    All drivers for Win 7 for Satellite Pro A210 are available on the European driver of Toshiba page that I recommend you check out once again

    Given that this question does not appear using Win XP, I can say with certainty that this has nothing to do with the material, but it s a software related issue
    I recommend updating the graphics card driver

    In addition, there is a new BIOS for Satellite Pro A210 PSAFHE it s v2.0
    Check if you are using the latest version

  • Satellite 1400-104 crashes after the MBR softwarepackage

    Hello

    It is of a Toshiba Satellite 1400-103 (512 MB of memory). On startup, the Satellite works very well, no problems with surfin or broadcast, but when I run a main softwarepackage (such as Macromedia Dreamweaver or MS Word Excel), the PC freezes after a minute or two.
    I feel that the fan suddenly starts turning and the computer crashes. The only thing I can do is turn off taking the startbutton about 10 seconds, then turn it back on.
    I have already reinstalled Windows XP, but the same problem occurs after two weeks. My Antivirusprogramm works very well and I check every week on spyware and software malware.
    Does anyone have an idea about this problem?

    Thank you

    Hi emoreau

    Can you please tell me if there is the same problem without using this software package?

    The cooling fan usually begins to work if the processor speed increases and run under full power. Is this software that you use a complex and superior application?

  • Hello everyone using the CLI NDK tools crashes after the splash screen

    I tried the tutorial for NDK CLI that downloads:

    #include
    #include
    int main (int argc, char * argv [])
    {
    QApplication app (argc, argv);
    QPushButton button ("Hello Playbook World!");
    QObject::connect (& button, SIGNAL (clicked ()), & app, SLOT (quit ()));
    Button.Show ();
    Return app.exec ();
    }

    Using qmake, blackberry-nativepackager and deploy to deploy on a blackberry tablet.  It downloads and runs but right after the splash screen is displayed the application crashes.

    Double, I just checked and downloaded many times without success.  Someone would have some ideas on how I could solve this?

    Roger

    Peter,

    It worked it allowed me to find another post, I needed to add:

    at the bar - descriptor.xml file.

    The example works now.

    Thank you

    Roger

Maybe you are looking for