After quitting cpu runs at 100%

hi!
im using an external dll that runs a thread to get data and pass it to LabView. When i quit my LabView application, it usually - not always - does the following: Everything seems right, but the CPU starts running at 100%, and LabView must be restarted.
Im using Trace messages in my dll, and based on that it's pretty sure that the thread stops correctly.
Any idea?
Thanks! 

Well, it keeps being a problem if it is your VI (or a thread associated with it) that keeps running at 100% load.
So it is possibly mandatory to dig into the code and find the area which controls the blocking thread. It could be helpful if you post your main VI of the application. 
As far as i understand it, the current problem looks like this:
1) Open LabVIEW developement system
2) Open the project
3) Run the project
4) Quit the execution using the QUIT button on your user interface
5) Close the whole project
6) Reopen project
7) Rerun project
8) Quit and close project
9) Quit LabVIEW developement system 
Step 1)-3) work correctly in proper timing/CPU load. Starting from step 4) you see 100% CPU load till including step 6). Step 8) again creates 100% load. Step 9) leaves the LabVIEW.exe process still active in task manager, but all windows are closed.
Is that correct? If not, please mark the differences.
What happens with blank VIs (Open LV, create empty VI, run it, close it, close LV)?
If a blank VI is working as expected, what happens if you just use a dummy VI accessing your DLL?
Norbert 
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • CPU running over 100% using Roxio Toast

    Hello,
    I am using Roxio Toast and noticed that songs are skipping, I checked my CPU and it is going over 100%, when this happens.
    My activity monitor show no other programs are running.
    Any idea why my computer is running over 100% on one single program?
    Thank you,
    Bmac

    single threaded and can't be broken up. Most likely written before hyper-threading and not optimized. Don't feel too bad, Apple had trouble also in 2009 and hadn't caught on and had audio code in that would spike processor core and overhead the system and wasn't rectified in 10.5.7+ but took 10.6.2+ to work around.
    So what version are you using and is this the latest? And what about any other processes or something? A system can't run w/o lots of other processes, even if you aren't running a main foreground program, plug-ins, background, they all do matter.
    My guess is like every thread almost, more input is needed about your system.
    By itself it is just being inefficient.

  • Sluggish PowerMac G4 - CPU running at 100%

    *+PowerMac G4 QS (2002)+*
    Single 800MHz
    1.5GB RAM
    10.5.4
    Western Digital Caviar 80GB (WDC WD800BB-00JHC0) and Maxtor 40GB (4D040H2)
    ATI Radeon 7500 32MB
    Connected to my LAN (AEBSn) via original gigabit NIC and has just over 2TB of external USB2.0 storage.
    Used only as a media server, and serves content fine but OS/application interfaces have suddenly begun to hang constantly and otherwise respond extremely slowly. I've run a repair disk on the volume, all's fine.
    Activity Monitor is reporting 100% CPU activity, with the finder running at over 80%.
    I've recently installed 10.3, 10.4 and 10.5 all with the same problem, so I'm left scratching my head a bit.
    Any ideas?

    Relaunch your Finder under blue Apple>Force Quit.
    Do you shut down at night? Shut down and let it sit for an hour.
    Download MacJanitor and use it. It's great, free, trusted and safe! http://personalpages.tds.net/~brian_hill/macjanitor.html
    Quit and restart Safari after each hour, it's a RAM hog if you YouTube a lot.
    Turn off iChat when not using. Set Mail to check manually only.
    Just some of my suggestions!

  • Bzip2 let CPU run at 100%

    What is "bzip2"?
    On my new Mac, "bzip2" let run the CPU at 100% every midnight on 12:30h exactly and I don't can work anymore. I read, that this is an application for compression, but I don't find it on the applications folder. Need Mac OS X "bzip2"? Can I delete it? How can I do it?
    Thanks,
    Lennart

    To delete it you can go to the Applications Folder->Utilities->Activity Monitor. The Activity Monitor will open showing all the computer's processes. Usinh the search feaure search for bzip2. Click it then on the top left click the quit button and the nit will quit. And stop higging the CPU until it restarts again.

  • Safari makes PC's CPU run at 100%.

    I'm a Windows OS user , and I installed Safari on my PC. At first, everything just works fine , but as I open some pages , CPU usage would be at 100%.
    Of course, this does not happen every time , but it does very often at least for me. I don't konw how to deal with it. I like Safari , hope you can help me with it.

    My PC runs at high rates too. And I too like to use iTunes at the same time I use Safari.
    And there's no quick solution to this...at least not yet. But here are few tips and tricks that you can apply to get this thing half solved.
    1. First of all, if you don't intended to watch images while browsing, You can turn it off...Simply by going to 'Edit> Preferences> Apperance (Tab)' and from there deselect ' Display images when the page opens'
    2. Secondly, Don't open too much tabs if it's not needed.
    3. Thirdly, if you're using Safari for a few hours. Just try to close the whole window time to time. And after reopening get back to the last session (View) by selecting History> Reopen all windows from last session'
    This will probably help you. Btw, these tricks are exclusives from me. Happy Surfing buddy!

  • New to photoshop cc,  CPU running at 100%

    right, basically ive started doing abit more photography and have bought a new camera and several lenses,  im currently using the trial version of photoshop cc to see if i like it but when trying to reduce camera shake it runs my CPU at 100% and gives an error message saying unable to complete.
    Im using a decent gaming machine for the software to run on and have no problems playing any high end games on highest settings, dont see how editing a picture would use more CPU than a game.
    Can anyone help before i buy a new cpu for it?
    Adam

    Describe your machine..
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • IMac G5 CPU running at 100% with no programs running?

    A friend of mine has an old iMac G5. Lately, in activity monitor it shows it's using 100% of the CP while no software is running. And the there's no process in the list that shows any significant CPU activity. The fans also run at full speed. Does anyone know what this could be? Software or hardware issue? Could a re-install of 10.5 help?
    Message was edited by: Don_McCracken

    A PRAM reset might help, also opening the case to see whether there are any swollen or leaking caps. An Archive and Install might also prove helpful, as would increasing the RAM to its Max (2.5GB for an iSight, 2GB for other G5 iMacs).
    Let us know how things turn out,

  • Why *shouldn't* the CPU run at 100%?

    This has bugged me for some time. You're sitting there with your Dual Core MacBook and doin a bunch of tasks....emptying trash, unzipping files, waiting for Word to launch, etc. But when you look at the CPU monitor, it says 20% or 40% or whatever. And yet, I'm sitting there wishing each of those things would complete faster.
    If the computer is really WORKING, shouldn't it work as hard as possible? Why should I be waiting while my Mac is crusing along at half-speed or less???
    The way I see it, there's memory, cpu, drive and bus. Shouldn't one or the other of those ALWAYS be maxed out? Assuming, of course, that you're doing a lot of tasks.
    Anyone??
    /dfox
    MacBook Pro 2x2   Mac OS X (10.4.6)  

    The most limiting factor, by far, will be reading and writing information to the hard drive. All of the activities you listed involve just that: reading and writing to the hard drive. While the RAM, motherboard, etc. support throughputs of hundreds of MB of data per second, the average hard drive usually only has an average sustained read/write rate of around 30 MB/sec.
    Also, keep in mind that an application like Word, which is a PPC app, will be running using Rosetta, which normally results in slower performance vs. native code and also approximately double the amount of RAM usage of native code.
    A great source on performance, though it's aimed at developers, is What is Performance?
    Hope this helps....
    Dual 2.7 GHz PowerPC G5 w/ 2.5 GB RAM   Mac OS X (10.4.6)  

  • MDNSResponer causing CPU to run at 100%

    For a while now (ever since upgrade to 10.5) my computer seems to be always running its fan. It's very sluggish and many other problems. So, today I finally decided to start the activity monitor and take a look at things. Low and behold my processor is pegged out at 100%. The guilty parting seems to be a process named "mDNSResponder".
    Anybody know what this process is and why it constantly has my computer CPU running at 100%, and what to do about it?
    Thanks,
    Rich

    mDNSResponder is a process that searches and publishes content automatically. It's normal for it to be going non-stop in scanning IP networks. However, it should never take more than a 2-10% of your total CPU.
    The MDNSResponder is just doing what's being asked of it. In short, there's an appllication/widget/etc. that's working at elevated rates. I was surprised, for example, that by signing up for Veoh, a small amount of bandwidth was being used - continually, without my knowing it - to support their whole network. The MDNSResponder helps achieve that. A network filter does the same thing. There is some service which is doing the same thing with your computer. It's magnified if you operate in Low Power Mode, since the stream of data just doesn't stop. It operates at elevated levels when an application (like iTunes) boots.
    Find the application, and then decide if you're paying a fair price. You can do your own policework by playing around with Activity Monitor (which also uses it).

  • Mail keeps relaunching itself after quit.

    I have this issue with Apple Mail. It launches itself fairly quickly after I log in (no, it is NOT set to do that, Open at Login is not checked) and if I quit the app, it almost immediately relaunches itself again, and again, and again. It is, as expected, independent of the "check mail" setting, and does this even when that is set to Manual. Which I would expect, as I have never seen the check mail option launch the app.
    Anyone have a clue as to what this might be? If I did not know better, I would think that someone put a 1 second cron job in to launch mail as a joke (does not appear to the case), but that is how it acts, relaunches right after quitting.
    Running 10.5.6 on a new Macbook, 2 GB memoy
    Any suggesitons on where to look would really be appreciated.
    -Owen-

    Well, of course, I have been chasing this for months, and JUST today, I decide to post the question here, and just today, I discovered the answer myself. Painstakingly I removed programs one at a time and re-logged in.
    I discovered that when I removed the Soonr backup software "Soonr Desktop Agent" the problem went away. This agent scans your computer for things that need to be backed up, it has an option to also backup mail and address book data as well. Seems they feel they need to launch mail to do that, and that they need to launch it all the time for some reason. When I turned off the agent, the problem went away.
    Turning the agent back on, I unchecked the "Enable retrieval of content from Mail and Address Book" and mail stopped launching itself immediately but backup seems to run, but perhaps not backing up mail now. Oh well.
    I will report that as a bug to Soonr, but strange that it feels it needs to launch Mail to get data but not the address book.
    Sorry all, problem solved by myself. Left here for reference.

  • Mdnsresponder will not quit.  Consumes above 100% CPU and kills my battery.  Also causes my fan to run constantly and my computer to get extremely hot.  Force quitting doesn't work.  It just comes back.

    The mdnsresponder will not quit.  Consumes above 100% CPU and kills my battery.  Also causes my fan to run constantly and my computer to get extremely hot.  Force quitting doesn't work.  It just comes back.   I posted about this earlier and never got an answer.  Somebody, please help. 
    Thanks.

    mDNSResponder is a background process that runs all the time. If you kill it, it's relaunched automatically.
    Please launch the Console application and select "system.log" from the file list. Enter "mDNSResponder" (without the quotes) in the search field. Post a sample of the log messages in the Console window -- only one example of each repeated message, please.

  • Clementine 100 percent CPU use after quit

    after i quit clementine, pause it or stop playback get 100 percent cpu.  any ideas ?
    when i start clementine from console this is what i get, the second part is after i hit the pause button
    Couldn't load icon "clementine-panel"
    Couldn't load icon "clementine-panel-grey"
    Application asked to unregister timer 0x5b00000a which is not registered in this thread. Fix application.
    QPainter::begin: Paint device returned engine == 0, type: 2
    QPainter::translate: Painter not active
    QPainter::save: Painter not active
    QPainter::pen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::pen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::pen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::pen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::setPen: Painter not active
    QPainter::restore: Unbalanced save/restore
    QPainter::translate: Painter not active
    QPainter::end: Painter not active, aborted

    I only get 100% CPU after quitting. There's a bug report here.
    Seems to be something to-do with the nvidia drivers.
    Play, Stop, Pause etc. seem to work fine and I don't get any QPainter errors so you've
    got some other problems there.

  • Emagent runs at 100% cpu after update to CPU #5225798

    good day all ...
    we updated to patch 5225798 today on our 10g2 system and now emagent runs at 100% cpu:
    top
    top - 16:30:39 up 50 days, 2:56, 6 users, load average: 1.00, 1.00, 1.00
    Tasks: 174 total, 2 running, 172 sleeping, 0 stopped, 0 zombie
    Cpu(s): 25.5% us, 24.5% sy, 0.0% ni, 49.9% id, 0.0% wa, 0.0% hi, 0.0% si
    Mem: 8143004k total, 2928336k used, 5214668k free, 250212k buffers
    Swap: 8514440k total, 3848k used, 8510592k free, 1948680k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    4144 oracle 25 0 73052 10m 5420 R 99.6 0.1 49:58.40 emagent
    the database is 10.2.0.1.0. any idea what is up with this? the emagent.log file has very little in it:
    cat emagent.log
    2006-08-31 15:40:29 Thread-16384 Starting Agent 10.1.0.4.1 from /opt/oracle/product/10gR2 (00701)
    2006-08-31 15:41:30 Thread-16384 target {prod, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2006-08-31 15:41:30 Thread-16384 EMAgent started successfully (00702)

    hmmm ... apparently no way to attache a file with oracle's forum software. anyway, here is the emagent.trc.
    cat emagent.trc
    2006-08-31 15:40:29 Thread-16384 WARN command: Job Subsystem Timeout set at 600 seconds
    2006-08-31 15:40:29 Thread-16384 WARN upload: Upload manager has no Failure script: disabled
    2006-08-31 15:40:29 Thread-16384 WARN upload: Recovering left over xml files in upload directory
    2006-08-31 15:40:29 Thread-16384 WARN upload: Recovered 57 left over xml files in upload directory
    2006-08-31 15:40:30 Thread-16384 WARN metadata: Metric Disk_Path does not have any data columns
    2006-08-31 15:40:30 Thread-16384 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2006-08-31 15:41:30 Thread-16384 ERROR TargetManager: TIMEOUT when compute dynamic properties for target prod
    2006-08-31 15:41:30 Thread-16384 ERROR TargetManager: target {prod, oracle_database} is broken: cannot compute dynamic properties in time.
    2006-08-31 15:41:30 Thread-16384 WARN collector: the column name DiskActivityavwait in this condition does not exist
    2006-08-31 15:41:30 Thread-180231 ERROR upload: Error in uploadXMLFiles. Trying again in 60.00 seconds.
    2006-09-01 03:42:38 Thread-29982743 ERROR scheduler: Collection oracle_emd:chinstrap.ornl.gov:3938:Response has not finished in 721 minutes (allowed: 720).
    Exiting agent.
    2006-09-01 03:42:38 Thread-29982743 ERROR : Signalled to Exit with status 3
    2006-09-01 03:42:38 Thread-16384 ERROR main: EMAgent abnormal terminating
    2006-09-01 03:42:59 Thread-16384 WARN command: Job Subsystem Timeout set at 600 seconds
    2006-09-01 03:42:59 Thread-16384 WARN upload: Upload manager has no Failure script: disabled
    2006-09-01 03:42:59 Thread-16384 WARN upload: Recovering left over xml files in upload directory
    2006-09-01 03:42:59 Thread-16384 WARN upload: Recovered 60 left over xml files in upload directory
    2006-09-01 03:42:59 Thread-16384 WARN metadata: Metric Disk_Path does not have any data columns
    2006-09-01 03:42:59 Thread-16384 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2006-09-01 03:44:00 Thread-16384 ERROR TargetManager: TIMEOUT when compute dynamic properties for target prod
    2006-09-01 03:44:00 Thread-16384 ERROR TargetManager: target {prod, oracle_database} is broken: cannot compute dynamic properties in time.
    2006-09-01 03:44:00 Thread-16384 WARN collector: the column name DiskActivityavwait in this condition does not exist
    2006-09-01 03:44:00 Thread-163845 ERROR upload: Error in uploadXMLFiles. Trying again in 60.00 seconds.

  • Kernel_task and syslogd running at 100% CPU under 10.6

    Hi
    I'm using a MacBook (white) from late 2007. ("MacBook3,1")
    I was running 10.5 until recently and after having done a software update, the CPU would constantly run at 100% (and of course the fans run on high speed all the time, which is very annoying).
    I found several hints on the web saying that many people have had this problem and the suggested fix was to stop syslogd, delete the asl.db file and restart syslogd:
    sudo launchctl stop com.apple.syslogd
    sudo rm /var/log/asl.db
    sudo launchctl start com.apple.syslogd
    I tried that, it didn't help.
    So I thought I'd try to upgrade the MacBook to Snow Leopard, since I have the install DVD.
    I did that, upgrade ran fine, but sadly the problem with the constant high CPU usage was still there afterwards.
    So I wiped the hard drive (actually, I just wiped the OSX partition, not my Bootcamp/Windows partition) and re-installed Snow Leopard from scratch. (it's a "10.6.3" DVD).
    I was very surprised to see that this brand new, fresh 10.6 installation was showing the same symptoms:
    CPU constantly over 90% usage.
    The top processes are "kernel_task" (usually at 100%) and syslogd (usually at 60% or more, with bzip2 hogging up the rest)
    I have absolutely no idea what's causing this, since this basic installation of 10.6 shows the same symptoms.
    If I boot into Windows XP (Bootcamp), then everything is fine: CPU usage while the computer is idle is pretty much zero and the fans are quiet.
    Does anybody have any ideas?
    Thanks in advance for your tips!

    Hi
    I'm using a MacBook (white) from late 2007. ("MacBook3,1")
    I was running 10.5 until recently and after having done a software update, the CPU would constantly run at 100% (and of course the fans run on high speed all the time, which is very annoying).
    I found several hints on the web saying that many people have had this problem and the suggested fix was to stop syslogd, delete the asl.db file and restart syslogd:
    sudo launchctl stop com.apple.syslogd
    sudo rm /var/log/asl.db
    sudo launchctl start com.apple.syslogd
    I tried that, it didn't help.
    So I thought I'd try to upgrade the MacBook to Snow Leopard, since I have the install DVD.
    I did that, upgrade ran fine, but sadly the problem with the constant high CPU usage was still there afterwards.
    So I wiped the hard drive (actually, I just wiped the OSX partition, not my Bootcamp/Windows partition) and re-installed Snow Leopard from scratch. (it's a "10.6.3" DVD).
    I was very surprised to see that this brand new, fresh 10.6 installation was showing the same symptoms:
    CPU constantly over 90% usage.
    The top processes are "kernel_task" (usually at 100%) and syslogd (usually at 60% or more, with bzip2 hogging up the rest)
    I have absolutely no idea what's causing this, since this basic installation of 10.6 shows the same symptoms.
    If I boot into Windows XP (Bootcamp), then everything is fine: CPU usage while the computer is idle is pretty much zero and the fans are quiet.
    Does anybody have any ideas?
    Thanks in advance for your tips!

  • CPU runs 100% when logging with DAQmx using card 6229

    Hi!
    When I start a logging using DAQmx Analog Input  the computer CPU runs 100%. This causes the problem that the computer locks and the subsequent steps in the program are left without computer CPU recourse. After the logging is compleet, 1750 samples/10 channels at 250Hz, the program runs on, but the loggfile is at that point useles.
    I have instaled LV 7.1.1 and am using DAQ 7.4.
    Anyone that recognizes this problem?
    Regards,
    Idriz 
    Idriz "Minnet" Zogaj, M.Sc. Engineering Physics
    Memory Profesional
    direct: +46 (0) - 734 32 00 10
    http://www.zogaj.se

    Hello Idriz!
    I just wanted to respond here as well so you know that we have read your post on this very forum. Still waiting for an answer from the US and after that I will forward that information to you.
    Regards,
    Jimmie A.
    Applications Engineer, National Instruments
    Regards,
    Jimmie Adolph
    Systems Engineer Manager, National Instruments Northern Region
    Bring Me The Horizon - Sempiternal

Maybe you are looking for

  • Line item pricing based on total value of the order

    Hi, We need to charge as a separate line item (material) 'Insurance' as a % based on the total value of the order less one line item. Our orders are created on the web and posted via a BAPI. (a) depending on where the customer is located, we charge a

  • Problem with Image Inspector

    I have instatlled Dreamweaver CS5.  I want to insert a background image in a table.  The property inspector only shows the background color change option.  The folder option for selecting an image file is not showing.  Is this a problem with the prog

  • Node port number :This port is in use.Select another port number-

    I am trying to insalled Informatica 9.0.1 Hotfix2 on my personal laptop and getting below error and was getting same error for 8.6.1, Si i have uninstalled it Node port number :This port is in use.Select another port number I have tried passing diffe

  • Re: Issue with multiple records loading into cube

    Hello Gurus, A report is run on a monthly basis for Billing commissions. Info cube has all the data related to the Billing commission. It has a custom field for total commissions for which the data gets populated from the DSO based on the Billing doc

  • Upgraded to 10.6.6, Epson C88+ is outputting at ~50% scale

    Tried resetting and reinstalling the driver. Another 1 hour and 35 minutes to go downloading the "EPSONPrinterDrivers2.6.dmg" file from apple.com (846MB? Wow.). The file I'm printing from Illustrator outputs correctly, but it's very small on the page