Why does LabVIEW sometimes hang when DLL loads into memory?

I'm calling a third party DLL from LabVIEW 2010.  LV occassionally hangs (Not Responding) when either loading the DLL into memory or when closing my main VI.  When it doesn't hang, it communicates with the DLL seamlessly.  When I try to build an Application (exe), LV always hangs during the build at the point that it is saving the main VI (the scroll on the builder moves until it says "Saving main.vi").  Any insight into what needs to be done to the DLL (or VI) to resolve this issue?

What does the DLL do? One cause of this could be to try to load/unload other DLLs in PROCESS_ATTACH or PROCESS_DETACH of DLLMain. Microsoft has in many places said that doing this is highly unsafe and asking for all kinds of troubles, since the DLL loading is not fully reentrant.
Another possibility would be incorporation of ActiveX components that use some form of RPC mechanisme to communicate with out of process ActiveX/OLE components. The necessary RPC proxy hooks into the calling processes message loop and that is a delicate piece of code in LabVIEW. Even when the DLL does not use ActiveX itself, it might employ some message hooking on its own and mess up things in a way that Windows and/or LabVIEW get confused.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Why does my iPad hang when writing an email?  When I'm done with the email, I can't send it out and have to re-boot the iPad.

    Why does my iPad hang when writing an email?  When I'm done with the email, I can't send it out and have to re-boot the iPad. This happens if the time to compose email exceeds 10 to 15 minutes.

    Shut down all programs that are running in the background.
    1. Double-click the Home button to see Apps in background
    2. Hold the Apps down for a second or two until you see the minus sign
    3. Tap the minus sign to close program
    4. Reset iPad. Hold the Sleep and Home button down for about 10 second until you see the Apple logo
    Suggest you perform Step 1 to 3 at the end of every day.

  • Why does Firefox upgrade 3.6.10 load into "F" which is old "C" drive?

    Windows XP, SP3, IE 8 rarely used. When I added ROM (I think, it looks like a comb) to this computer 5 years ago, changed "C" drive to "F" drive. Is it normal for new upgrades of Firefox to load into that damaged drive? I never noticed before and when I ask it to load into "C", it insists in loading into "F". Could this be the reason my computer keeps locking up and is slower than molasses?

    5 years ago the Firefox installer was different than what is being used now, so Firefox should have been installed to the C:\ drive at some point since then, unless you purposely installed it to a non-default location. Let's see where is is installed.
    Right-click the shortcut icon you use to launch Firefox and select Properties.
    Then copy the '''Target''' line using {Ctrl + C} on the keyboard, that line should already be highlighted so all you have to do is hit {Ctrl + C} - and Paste it into a Text program, like Notepad using {Ctrl + V}.
    Is that file path - '''"C:\Program Files\Mozilla\Firefox\firefox.exe"''' or is it '''"F:\''something or other''\Firefox\firefox.exe"''' - ??

  • Why does InDesign CS5 hang when packaging files?

    When ever I go to "package" a file, it gets to about 95% complete and hangs. Although the file and all associated fonts and images does appear to have been packaged, I have to force-quit and re-start indesign. I'm on a Mac using OS X 10.6.8.

    When it hangs, run Activity Monitor, select InDesign, and run Sample Process. You'll get a report. Upload it to http://pastebin.com/.
    Then, chose View > Send Signal: Abort (SIGABRT). You'll get a crash report. Upload that to http://pastebin.com, too.
    Post both URLs here, we'll tell you why it hung.

  • AP Server sometimes hang when CPU load 100%

    Hi experts,
    Our system has migrated to ECC 6 and sometimes I find it slow when I
    start a new transaction code. At that time, there are many work
    processes idle but I find CPU load is up to 100%. I use
    es/implementation = flat and es/use_mprotect = flase. Does this matter?
    What is the root cause becuase I find just 4-5 background jobs running
    will cause servers CPU load up to 100%. I use Dell PowerEdge 1955 with
    2 dual cores CPU, 2.0GHz. I total have 9 AP Servers

    >
    Dennis Lee wrote:
    > Hi experts,
    >   thank for your reply. In fact, I have described in first post. Just 4-5 background jobs will consume all the CPU resources, each background jobs running consume one core with 100%.
    That's not very unusual for background jobs.  We have daily extracts here that write out GBs of data, each of my jobs take 100% of a CPU core as well.  The way we get around it is to split the jobs up into different SAP application servers.
    When the job is running, look into the process and see what it's doing.  It should just be sitting there with the CPU usage count going up.  This means that it's in a loop on a probably large internal table somewhere.  You can try doing a SE30 trace on it, see which loop it is.
    Additionally, it would also be wise to see if you can divide the data the job is processing into smaller pieces and run them sequentially.
    Lastly, if all things above check out fine and you have no room for improvement, maybe it's time for a hardware purchase ..

  • Why does labview take so long to load

    I have LabVIEW installed: along with LV RT and LV FPGA. When I want to target an FPGA board: 7813 or 7811 for example, the LV load time is minutes versus seconds.  I understand that VISA is used to interface to the RIO boards.  It seems that there is something waiting to timeout and LV takes a really long time to load.  Any thoughts?

    Is LabVIEW installed on a local disk or on a network resource?
    LabVIEW Champion . Do more with less code and in less time .

  • Why does elements 12 hang up on "loading exporter avi.prm"

    I downloaded an upgrade to premiere elements 12...installed...hangs up while starting at "loading exporter avi.prn or .prm or ???

    If you do not have a Matrox, I am not sure why Matrox drivers came into play?
    Have installed matrox software codec i think (i downloaded it but don't remember if i installed it yet)
    Those CODEC's, along with the Matrox drivers, are used to handle footage produced by a Matrox capture/video card.
    Are you working with Matrox Encoded files, that perhaps came from another computer?
    Good luck, and please let us know a bit more.
    Hunt

  • Why does my macbook hang when I restart?

    I have to shut down and boot up, restart just hangs.

    It helps when you post to tell us which Mac OS X you have installed.
    Try booting from your install disc, run Disk Utility.
    The startup disk may need repairing >  Using Disk Utility to verify or repair disks
    Check Capacity and Available at the bottom of the Disk Utility window.
    Make sure there's no less then 15% free disk space.

  • Why does my computer hang when starting up?

    Moc Pro 8 core '09 OS X 10.7. Computer was shut down and will not leave the apple spinning gray wheel screen to start fully. Cannot back either. Disk utility says everything's fine...but it isn't. Host cpu cannot index drive when used as a target.

    I got the Time Mchine to start and it's telling me that it will take 225 days to back up 231 GB of data. ??????
    What can I do to back up this drive???

  • Why does itunes just hang when ipod's connected?

    whenever my ipod is connected to either of my computers, itunes just locks up for 30 seconds, then you can click something for about 10 seconds, and then locks up again for 30 more seconds. this repeats the entire time the ipod is connected.
    what gives?

    Yes - many people are having problems with their iPod Classics, and I had exactly this problem as well. I returned my iPod Classic for a full refund - I suspect that Apple let either the iPod or iTunes out too soon this time. I didn't want to risk that it wouldn't be fixable with a firmware/software update so I returned it. I'll have to delay my 160GB iPod satisfaction until they work through some of the issues.
    NOTE: you should return it without paying any restocking fee. I insisted on this, and brought printouts of a number of these threads about how slow the iPod Classic is. This is essentially a defective product and you should not have to pay 15% for that.

  • Why does Firefox sometimes ask me if I want to save my tabs when I close, and sometimes it does not? I usually want to save them, so this is a pain. I'm on a Mac, OS 10.5.8

    Why does Firefox sometimes ask me if I want to save my tabs when I close, and sometimes it does not? I usually want to save them, so this is a pain. I'm on a Mac, OS 10.5.8
    == This happened ==
    A few times a week
    == don't know...

    There can be various causes for this:
    [[Firefox does not ask to save tabs and windows on exit]]

  • Why does Photoshop CC crash when I try to load a plug-in using Adobe Exchange?

    Why does Photoshop CC crash when I try to load a plug-in using Adobe Exchange?

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/photoshop

  • My iPad2 will sometimes hang when loading an mp4. Gives an error message then attempts to resync which hangs until I unplug the iPad.

    My iPad2 will sometimes hang when loading an mp4. Gives an error message then attempts to resync which hangs until I unplug the iPad.
    I have an iPad 2and have not had any trouble until I up dated my os. I have a pc with win 7.  I do not sync since I have so much music on my computer. I synced my apps during the back up but I had to manually reload my music and videos. Since then I turned off all syncs.
    Since I have to load all my movies on this has been happening. I get through about 4 movies then it will hang up. I eventually get an error message that it cannot load this movie. I then attempts to close out. This seems to hang. When I attempt to eject the iPad it attempts to sync and that never finishes. I pull the plug and that stops the sync but I have to restart the computer before I plug back in the iPad or it will not recognize it or it will attempt to finish the sync which never ends. It sometimes hangs on something with safari and site protection.
    After I restart my computer I can put in 4 or so movies, including the one it hung on before, but it always hangs up again. Any suggestions?

    I am having an almost identical problem and hoped that iOS 6 and the new iTunes would fix it.  Regrettably, I again got 3 movies synced last night before iTunes locked up and gave me the xxxx cannot be synced "because the file cannot be written" message.  Same deal with iTunes hanging on "finishing sync" after that and me having to remove the iPad from the cable to get things to come back to life on the PC (Win 7 64 bit).
    I've also done a factory restore followed by a restore from backup and have the same problem. 

  • Why does Firefox keep hanging, crashing, sulking, dying when internet connection behaves?

    Why does Firefox keep hanging, crashing, sulking, dying when internet connection behaves? Once it renders the page it should forget about the page. Why does it behave when some link is clicked when there is no internet? It should just say internet not available or some crap. Why die, sulk, crash?? I don't get it! 3 series was much much much better!

    I should add, I've re-downloaded Firefox, but that doesn't look like it has helped any. Still get seemingly inexplicable crashes.

  • Why does my iTunes hang every time when using automatic device detect?

    Why does my iTunes hang every time that I connect either of my devices (iTouch-4th Gen, iPod Nano-5th Gen), to my Win 7 (64-bit) PC desktop?  By the way, this does not happen if I open iTunes first, and then connect the device.  So my workaround was to simply uncheck the checkbox that allows iTunes to start automatically upon device connection.  This doesn't fix the problem, but it allows me to synch my device, but it would be nice to be able to have the autodetect work properly, so that iTunes would start normally without locking up on me and freezing. That's what I mean by 'hanging'.  My whole computer doesn't freeze--only iTunes.

    Hello E
    Start with finding the path where the songs are on your PC by right clicking the songs that are missing in iTunes and click Get Info. You should get a window that pops up and in the Summary tab; the path will be there. Then navigate to where it was and see if the files exist. Other than that you can try to search your computer to find those files. Checkout the articles below for tips on finding the missing music, also if some of the tracks are downloaded from the iTunes Store you can download the tracks again by deleting the missing tracks from iTunes and then navigating to the purchases section in the iTunes Store to download them again.
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Download past purchases
    http://support.apple.com/kb/HT2519
    Regards,
    -Norm G.

Maybe you are looking for

  • External monitor ghosting: Samsung TA350 & MacBook Pro 2011

    I'm happy with the picture quality, but moving anything around on screen creates a horrible ghosting effect. This is particularly noticeable when watching videos or scrolling text. Can somebody suggest a solution? My set-up: Mac OS Lion MacBook Pro 1

  • Whenever i burn photos to a cd from iphoto it does it in a low resolution - how do i make it high resolution?

    I need to print photos in a high quality resolution - my camera resolution can enlarge up to 16X20 in good quality but when i burn from iphoto to cd it burns in low res....how do I fix that? I don't see an option anywhere to indicate resolution...

  • Make dual boot Lion and Snow Leopard Mac ???

    I have a SSD for my MBP. I formatted it with two partitions and installed snow leopard on each. I also have a 400 GB HDD that has snow leopard on it. I'd like to trade out my optical drive for the SSD. I'd like to update one SSD partition to Lion, th

  • Change logic for pricing date in CRM sales order

    Hi, We have a requirement in B2B sales order where in default pricing date should be set to u201CRequested delivery dateu201D entered by customers in B2B sales order. Is this feasible through IMG configurations in CRM 5.0? I am aware its feasible in

  • Rdf to xml conversion

    I am trying to save some rdf files as xml. I have been using both the Reports Builder tool and rwconverter to do this. On some rdf files I am able to convert the definitions to xml; however on other rdf files either way I do it (through Reports Build