Very slow running seems to be com.apple.appkit.xpc.openAndSavePanelService

At unpredictable times my iMac starts to run really slow and I can hear the disk churning away. Looking in console I get a whole load of errors relating to:
2/13/14 5:09:07.197 PM com.apple.appkit.xpc.openAndSavePanelService[7321]: ERROR: CGSSetWindowTransformAtPlacement() returned 1001
There's a whole load of repeats of this with the occasionally more detailed:
2/13/14 5:00:58.928 PM com.apple.appkit.xpc.openAndSavePanelService[7321]: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Any ideas on how to fix gratefullly recieved

1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem.
2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
3. Below are instructions to run a UNIX shell script, a type of program. All it does is to gather information about the state of your computer. That information goes nowhere unless you choose to share it on this page. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them.
Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a couple of minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply.
6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking  anywhere in the line. The whole line will highlight, though you may not see all of it in your browser, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
Triple-click anywhere in the line of text below on this page to select it:
PATH=/usr/bin:/bin:/usr/sbin:/sbin; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; Pc () { o=`grep -v '^ *#' "$2"`; Pm "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d;s/^ */   /;s/[-0-9A-Fa-f]{22,}/UUID/g' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id | grep -qw '80(admin)'; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed '8!d;s/^ *//'; o=`SP Hardware | awk '/Mem/{print $2}'`; o=$((o<4?o:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d; /[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]||0[^2]8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; p=`SP Power`; o=`awk '/Cy/{print $NF}' <<< "$p"`; o=$((o>=300?o:0)); Ps "Battery cycles"; o=`sed -n '/Cond.*: [^N]/{s/^.*://p;}' <<< "$p"`; Ps "Battery condition"; for b in Thunderbolt USB; do o=`SP $b | sed -En '1d; /:$/{s/ *:$//;x;s/\n//p;}; /^ *V.* [0N].* /{s/ 0x.... //;s/[()]//g;s/\(.*: \)\(.*\)/ \(\2\)/;H;}; /Apple|SCSM/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; d=(/ ""); D=(System User); E=; for i in 0 1; do o=`cd ${d[$i]}L*/L*/Dia* || continue; ls | while read f; do [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && e=" *" || e=; awk -F_ '!/ag$/{$NF=a[split($NF,a,".")]; print $0 "'"$e"'"}' <<< "$f"; done | tail`; Pm "${D[$i]} diagnostics"; done; [[ "$o" =~ \*$ ]] && printf $'\n* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|last value [1-9]|n Cause: -|NVDA\(|pagin|SATA W|ssert|timed? ?o' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); o=${s[2]}%; Ps "CPU usage by process \"$s\" with UID ${s[1]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); s[2]=${s[2]%[+-]}; o=$((s[2]>=25000?s[2]:0)); Ps "Mach ports used by process \"$s\" with UID ${s[1]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | awk 'NR>1 && !/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'`; Pm "Extrinsic system jobs"; o=`launchctl list | awk 'NR>1 && !/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | grep -v com\.apple\.CSConfig | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/Star*; do M; done`; Pm "Startup items"; o=`find -L /S*/L*/E* {/,}L*/{A*d,Compon,Ex,In,Keyb,Mail/B,P*P,Qu*T,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB\ :CFBundleIdentifier "$d/Info.plist") || ID="No bundle ID"; [[ "$ID" =~ ^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID ]] || printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find -L /u*/{,*/}lib -type f | while read f; do file -b "$f" | grep -qw shared && ! codesign -v "$f" && echo $f; done`; Pm "Unsigned shared libraries"; o=`for e in DYLD_INSERT_LIBRARIES DYLD_LIBRARY_PATH; do launchctl getenv $e; done`; Pm "Environment"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; Ps "DNS"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; Pc "hosts" <(grep -v 'host *$' /etc/hosts); Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l | sed 's:/Users/[^/]*/:/Users/USER/:g'); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep "Valid: N|Duplicate: Y" | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
Copy the selected text to the Clipboard by pressing the key combination command-C.
7. Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
If you see an error message in the Terminal window such as "syntax error," enter
exec bash
and press return. Then paste the script again.
If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know your password, or if you prefer not to enter it, just press return three times at the password prompt.
If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line "[Process completed]" to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report your results. No harm will be done.
8. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
Copyright © 2014 Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of Apple Support Communities ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

Similar Messages

  • Open iTunes this show on dock "com.apple.medialibraryservice.xpc"

    When I open iTunes, this error will show on my dock "com.apple.medialibraryservice.xpc"
    Anyone know how to fix it?
    My macbook pro running on 10.9.3
    iTunes 11.2.2

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Com.apple.icloudhelper.xpc asking for login

    Just purchased a new iMac 30 days ago.
    Upon startup,  I am getting weird login messages....the following are requesting a password to use the login keychain:
    com.apple.icloudhelper.xpc
    AddressBookSourceSync
    Cloudd
    Cloudpaird
    CallHistoryPlluginHelper
    CalendarAgent
    Message Agent
    I have never seen these popups before. Are they safe?

    You need to check and troubleshoot your Keychain Access app:
    OS X: Keychain Access asks for keychain "login" after changing login password - Apple Support
    Mac OS X 10.6: Solving problems with keychains
    OS X Mavericks v10.9.1: Repeated prompts to unlock "Local Items" keychain - Apple Support
    Resetting your keychain in Mac OS X - Apple Support

  • Very slow running CUITs in both Visual Studio and Microsoft Test Manager

    I've tried the exact same test cases on another less powerful computer and it runs perfectly. However on one machine it runs very slow. It seems to take ages finding execute each step. Not sure what is going on. Help greatly appreciated.

    Hi Daithi,
    Based on your issue, I suggest you could try to create a simple coded UI test such as you can record the Calculator action and then check if you still get the issue about
    running CUITs very slow in VS.
    In addition, I suggest you could try to delete all the temp files from your system and other temp files, or in short you can just log off and then log in back again....you'll definitely find your automation run faster.
    There are two blogs shared us some suggestions to improve the coded UI test performance, I often use them, if possible, please check them.
    http://blogs.msdn.com/b/vstsqualitytools/archive/2011/07/06/improving-the-performance-of-your-coded-ui-tests.aspx
    http://blogs.msdn.com/b/visualstudioalm/archive/2012/02/01/guidelines-on-improving-performance-of-coded-ui-test-playback.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Very slow running Mac Mini

    Hi,
    I'd like to thank all people supporting us (users) in these discussions, and especially the person who helped me restoring my MBP's performance,
    I'm requesting once again some help for my Mac Mini which is very very slow.
    Mac Mini running OS X Moutain Lion + Apple's Server add-on (a few services are running : file sharing mainly).
    Thanks in advance,

    Hello Hedi, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free Disk space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?

  • What shall I do with a very slow running macbook pro with OS X Mavericks

    Please help me. my macbok pro is running too slow specially when booting up. It's with OS X Mavericks. How can I restore it with the previous OS? i just upgraded it with Mavericks.

    If you don't already have a current backup, back up all data before doing anything else. This procedure is a diagnostic  test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem. The backup is necessary on general principle, not because of anything suggested in this comment. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The procedure will help identify which such modifications you've installed, as well as some other aspects of the configuration that may be related to the problem.
    Don’t be alarmed by the seeming complexity of these instructions — they’re easy to carry out. Here's a brief summary: In each of two steps, you copy a line of text from this web page into a window in another application. You wait about a minute. Then you paste some other text, which will have been copied automatically, back into a reply on this page. The sequence is copy; paste; paste again. That's all there is to it. Details follow.
    You may have started the computer in "safe" mode. Preferably, these steps should be taken while booted in “normal” mode. If the system is now running in safe mode and is bootable in normal mode, reboot as usual. If it only boots in safe mode, use that.
    Below are instructions to enter UNIX shell commands. They do nothing but produce human-readable output. However, you need to think carefully before running any program at the behest of a stranger on a public message board. If you question the safety of the procedure suggested here — which you should — search this site for other discussions in which it’s been followed without any report of ill effects. If you can't satisfy yourself that these instructions are safe, don't follow them.
    The commands will line-wrap or scroll in your browser, but each one is really just a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it.
    If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. Step 1 should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    PB=/usr/libexec/PlistBuddy; PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; PC () { o=$(grep [^[:blank:]] "$2"); PR "$1"; }; PF () { o=$($PB -c Print "$2" | awk -F'= ' \/$3'/{print $2}'); PR "$1"; }; PN () { [[ $o -eq 0 ]] || printf "\n%s: %s\n" "$1" $o; }; { system_profiler SPSoftwareDataType | sed '8!d;s/^ *//'; o=$(system_profiler SPDiagnosticsDataType | sed '5,6!d'); fgrep -q P <<< "$o" && o=; PR "POST"; o=$(( $(vm_stat | awk '/Pageo/{sub("\\.",""); print $2}')/256 )); [[ $o -gt 1024 ]] && printf "\nPageouts: %s MiB\n" $o; s=( $(sar -u 1 10 | sed '$!d') ); [[ ${s[4]} -lt 90 ]] && o=$( printf 'User %s%%\t\tSystem %s%%' ${s[1]} ${s[3]} ) || o=; PR "Total CPU usage"; [[ "$o" ]] && o=$(ps acrx -o comm=Process,ruid=User,%cpu | sed 's/  */:/g' | head -6 | awk -F: '{ printf "%-10s\t%s\t%s\n", $1, $2, $3 }'); PR "CPU usage by process"; o=$(kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1); PR "Loaded extrinsic kernel extensions"; o=$(launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'); PR "Loaded extrinsic user agents"; o=$(launchctl getenv DYLD_INSERT_LIBRARIES); PR "Inserted libraries"; PC "cron configuration" /e*/cron*; o=$(crontab -l | grep [^[:blank:]]); PR "User cron tasks"; PC "Global launchd configuration" /e*/lau*; PC "Per-user launchd configuration" ~/.lau*; PF "Global login items" /L*/P*/loginw* Path; PF "Per-user login items" L*/P*/*loginit* Name; PF "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=$(find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l); PN "Restricted user files"; cd; o=$(find -L /S*/L*/E* {,/}L*/{A*d,Compon,Ex,In,Keyb,Mail/Bu,P*P,Qu,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB -c 'Print :CFBundleIdentifier' "$d/Info.plist") || ID=; ID=${ID:-No bundle ID}; egrep -qv "^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|JMicron|microsoft\.MDI|print|SoftRAID" <<< $ID && printf '%s\n\t(%s)\n' "${d%/Contents}" "$ID"; done); PR "Extrinsic loadable bundles"; o=$(find /u*/{,*/}lib -type f -exec sh -c 'file -b "$1" | grep -qw shared && ! codesign -v "$1"' {} {} \; -print); PR "Unsigned shared libraries"; o=$(system_profiler SPFontsDataType | egrep "Valid: N|Duplicate: Y" | wc -l); PN "Font problems"; for d in {,/}L*/{La,Priv,Sta}*; do o=$(ls -A "$d"); PR "$d"; done; } 2> /dev/null | pbcopy; echo $'\nStep 1 done'
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    The command may take up to a few minutes to run, depending on how many files you have and the speed of the computer. Wait for the line "Step 1 done" to appear below what you entered. The output of the command will beautomatically copied to the Clipboard. All you have to do is paste into a reply to this message by pressing command-Vagain. Please don't copy anything from the Terminal window. No typing is involved in this step.
    Step 2 
    Remember that you must be logged in as an administrator for this step. Do as in Step 1 with this line:
    PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; { o=$(sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'); PR "Loaded extrinsic daemons"; o=$(sudo defaults read com.apple.loginwindow LoginHook); PR "Login hook"; o=$(sudo crontab -l | grep [^[:blank:]]); PR "Root cron tasks"; o=$(syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail -n25 | awk '/:/{$4=""; print}'); PR "Log check"; } 2>&- | pbcopy; echo $'\nStep 2 done'
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    You can then quit Terminal. Please note:
    ☞ Steps 1 and 2 are all copy-and-paste — type only your login password when prompted.
    ☞ When you type your password, you won't see what you're typing.
    ☞ If you don’t have a password, set one before taking Step 2. If that’s not possible, skip the step.
    ☞ Step 2 might not produce any output, in which case the Clipboard will be empty. Step 1 will always produce something.
    ☞ The commands don't change anything, and merely running them will do neither good nor harm.
    ☞ Remember to post the output. It's already in the Clipboard. You don't have to copy it. Just paste into a reply    
    ☞ If any personal information, such as your name or email address, appears in the output of either command, anonymize it before posting. Usually that won't be necessary.
    ☞ Don't post the contents of the Terminal window.
    ☞ Don't paste the output of Step 1 into the Terminal window. Paste it into a reply.

  • Very Slow running dashboards/swf not loading

    I have built a number of dashboards and sent them round to colleagues in my company (either embedded in powerpoint or as swf to open in IE). We have no probelms viewing these dashboards internally but when we send them out to clients they cannot view them.
    It seems like the swf files are just not loading, or are incredibley slow (so slow that the client has given up on them) has anyone else encountered problems like this? Could there be some security issues; when the files pass onto another network the swf is halted?
    Hope someone can help!

    There is known issue with  xcelsius 2008 when exported to PPT..
    Check this and do the work around mentioned.. it will work,but very slow.
    I don't know its a problem with xcelsius  or with my laptop?
    http://diamond.businessobjects.com/node/19008

  • Slow Startup w/ Progress Bar - com.apple.SecurityServer stalling?

    Okay, I've noticed this issue for the past few months and it's quite annoying. Every time I restart my machine the progress bar comes up and the computer takes about 2 minutes to get past the Apple logo/progress bar. When I look at the Console it appears that the stall comes right after these three items:
    3/8/11 12:16:44 AM com.apple.SecurityServer[35] Session 0x22cf66 dead
    3/8/11 12:16:44 AM com.apple.SecurityServer[35] Killing auth hosts
    3/8/11 12:16:44 AM com.apple.SecurityServer[35] Session 0x22cf66 destroyed
    Then, about 2 minutes later kernel starts and the startup proceeds. Does anyone know what this could mean and how I go about fixing the problem? Thanks for the help!

    Sorry I cannot offer a solution, but I am having a similar problem.  My machine starts up just fine with no delay, so I am not expriencing the Apple logo/progress bar delay, but instead when I login to my machine the screen will go black and ask for my username and password a second time.  Also, sometimes after waking from sleep and entering my login credentials, the desktop will so up then go black for a short period before resuming.  My console output also has the three similar entries:
    5/13/11 11:29:21 AM          com.apple.SecurityServer[24]          Session 0x247439 dead
    5/13/11 11:29:21 AM          com.apple.SecurityServer[24]          Killing auth hosts
    5/13/11 11:29:22 AM          com.apple.SecurityServer[24]          Session 0x247439 destroyed
    iMac (7,1) 2.8GHz, Mac OS X (10.6.7), 4GB Ram, 500GB HDD

  • IPad 2 is getting very slow after installing iOS8. Is Apple comming with a fix for it?

    iOS8 is making ipad2 extremely slow. I can't work with it anymore. When is Apple comming with a fix?

    Now, you can downgrade your iPad from iOS 8 to iOS 7, BUT do it quickly. A few days later, the way is not available any longer:
    1. Download iOS 7.1.2 firmware for your iPad 2. (just google it)
    2. Make sure you have install the latest version of iTunes.
    2. Connect your iPad to computer via a USB cable.
    3. After detected, your iPad will be shown in the left column. Click your iPad to show the control panel.
    Note: Make sure you have backups of your iPad. if not, backup it now.
    4. Under Summary tab, hold on Shift key in Windows(Option key in Mac ) click Restore iPhone....
    5. In the pop-up window, find the firmware on your computer and click Open.
    6. Then, iTunes will downgrade your iPad to iOS 7.1.2.

  • Very slow internet and email designated an "Apple" problem by my server

    I have had my mac mini for about 15 months and recently it has become unbearably slow especially on the internet. I have DSL and only have one computer. Most of the time I am not able to send emails before it times out.
    My provider, AT&T, yesterday did several tests and told me that their services are working fine as is my DSL box. The lights on the box also indicate that it is working fine. During yesterday's test with AT&T they had me go to another website to get the speed of my sending and receiving. Sending was 295.1 kbps and receiving was 373.1 kbps. The tech said this was extremely slow and was puzzled that it was so slow, but gave no help other than that the problem must lie with my mac. I don't know what to do. I am now using the local library's computer in hopes that someone will be able to give me more assistance.
    As further information, last week when I first noticed problems I was having trouble shutting down the computer. It would take several times of initiating the shut down process before it would finally shut down. It appeared at that time that a program called "mirroragent" was my problem. It was causing the shut down to be terminated. However, I have been able to get very little information about mirroragent other than it is part of the idisk or .mac programs. I tried stopping all automization of idisk sychronization, but that failed to help.

    It sounds like you have plenty of free disc space.
    The processes by root are important, there are many things that run in the background on the machine even before any user logs in.
    You can sort the process list based on CPU usage, to see what is currently active and using up the most CPU power when the computer seems to be running slowly for no reason. Launch and quit an application and watch what happens to the CPU usage, does it go down to low usage when you have quit all other applications, or is something running pegging the CPU meter when you expect the machine to be idle?
    Also, there is an internet/network activity panel that should indicate if there is any active upload/download activity on your computer that you might not be aware of.
    ClamXav is a free file-scanning virus utility, not sure it can detect and stop an active virus running in your system, but you can scan previously downloaded files and documents to see if it finds anything, it's more of a preventative tool. I kind of doubt that is your problem though.
    http://www.clamxav.com/

  • Very Slow Streaming from MacBook Pro to Apple TV

    I am trying to stream movie from my MacBook to my Apple TV but the movies do not stream. My library shows up on my Apple TV and when I select them they do not load. After a few minutes a message will show up saying, "An error occurred loading this content, Try again later." I have had my Apple TV for about 5 months and have not had any problems streaming content before except when I had to do some port forwarding through my router but about a week ago it started with this issue. I have a PC hooked up to my network and am able to stream from that without any problems. My MacBook is running OSX 10.8.2 with iTunes 11.0.1, my Apple TV is running 5.1.1. Please help with any suggestions you might have.

    This article may give you some pointers
    http://support.apple.com/kb/TS1398

  • Curve 8520. Small clock icon appearing and very slow running

    My curve is operating really slowly and when I try to open or send a text or open a mail, I get a very small clock icon appear. After about 20 secs, the text or mail opens. Not able to send any e mails either. Thought too many stored mails may be the problem but device won't now allow me to delete. Battery also running low after just a few hours,even after fully charging.

    1. Do a reboot on the device:  With the BlackBerry device POWERED ON, remove the battery for a minute, and then reinsert the battery to reboot.
    2. To prevent freezing or lagging/slow response on any BlackBerry, the most important practice you can adopt is to be sure to CLOSE applications when you are finished using them.
    If you just hit the red "end call" key to go back to the home screen the application actually stays open and running in the background. If you do this repeatedly you will have lots of apps open and consequently your memory will get used up. Lack of memory is the biggest reason your BlackBerry slows to a crawl or locks up. If you get into the habit of actually using the menu key to close the applications this will at least slow down this memory-clogging process. You still may have to do a battery pull or use the "Quickpull" app once in a while when things get slow.
    To check what applications are running on your device in the background, press the Menu key then choose Switch Applications. You will see the icons of each application there.
    So now, check your applications running in the background. There are commonly four or five applications that will always be running (Messages, Call Logs/Phone, BlackBerry Messenger, Homescreen, and the Browser; there are other third party applications such as BeeJive, and BlackBerry Alerts which will also run in the background which you cannot close if you want them to operate). Make certain that the browser is NOT on an active webpage (open the browser and choose Menu > Close). Close any other applications that do not need to be running (the camera or a game you were playing or Google Maps).

  • IPad mini is very slow, it seems to be working harder since iOS 8 update. Does anyone have this problem?

    I have an iPad minI, since the update to iOS 8 it's been very sluggish. When you double click the home button, its not smooth and seem less like iOS 7. is anyone else having this issue??

    All that you had to do was to sign into the old account in order to update those apps. What I mean is that you just needed to sign into that account in the store settings like I described and that should have worked. You didnt need to enter the credit card information again - you justed needed to use the old ID and password.
    Anyway, I think the good news is that if everything else is OK with the new account, just download iBooks with the new ID - it's a free app so its not like you have to pay for it again. I'm not sure what the other App is that you are talking about - but if it is the Apple Store App - that is free as well.
    Try this anyway, when you try to update iBooks, just use the old password if the old ID still pops up.
    Did you try signing into the store settings with your new ID and see what happens with the updates then?

  • Very slow running SQL

    Hello I have a stored procedure that I am using to load 5 tables from a stagin table. It reads each line and populates these tables. The staging table has 200K rows in it and I commit every 10,000 rows. Once released to production the staging table will have around 23 million rows in it to be processed. It is running very poorly. I am running Oracle 9.2.0.6. Here is the stored procedure. Any suggestions on how to make it faster. Is there a way to use bulk binding/insert and would that be better?
    Thank you,
    David
    CREATE OR REPLACE procedure SP_LOAD_STAGED_CUST (runtime_minutes int)
    is
    staged_rec STAGE_CUSTOMER%ROWTYPE;
    end_time          date     default sysdate + (nvl(runtime_minutes,1440)/1440);
    test_row_id     number(38);
    in_table_cnt     number(38);
    BEGIN
    -- POPULATE LOCATION AND ASSOCIATE TABLES AS NEEDED
    insert into TMP_LOCATION (update_location_cd, country_cd, locale_cd)
    select      distinct update_location_cd,
         country_cd,
         locale_cd
    from stage_customer
    update TMP_Location
    set location_id = location_seq.nextval
    insert /*+ APPEND */ into location
    ( location_id, location_cd, location_desc, short_description, sales_channel_id, location_type_id,
    location_category_id, addr1, addr2, addr3, city, state_cd, postal_cd, country_cd, region_id,
    timezone_id, locale_cd, currency_cd, phone_num, alt_phone_num, fax_num, alt_fax_num,
    email_addr, alt_email_addr, is_default, create_modify_timestamp)
    select
    location_id,
    update_location_cd,
    null,
    null,
    fn_sales_channel_default(),
    null,
    null,
    null, null, null,
    null, null, null ,
    nvl(country_cd, 'USA'),
    null, null,
    locale_cd,
    'USD',
    null, null, null, null, null, null,
    0,
    sysdate
    from TMP_LOCATION
    where update_location_cd not in (select location_cd from location);
    commit
    insert into TMP_ASSOCIATE (associate_number, update_location_cd)
    select      associate_number, min(update_location_cd)
         from stage_customer
    where associate_number is not null
    group by associate_number;
    update TMP_ASSOCIATE
    set associate_id = associate_seq.nextval
    insert /*+ APPEND */ into associate
    select
    associate_id ,
    null,
    associate_number,
    (select nvl(location_id, fn_location_default())
         from location
         where location.location_cd = tmp_associate.update_location_cd)
    from TMP_ASSOCIATE
    where not exists (select associate_id from associate
              where associate.associate_number = tmp_associate.associate_number)
    delete from tmp_associate;
    commit;
    insert into TMP_ASSOCIATE (associate_number, update_location_cd)
    select      alt_associate_number, min(update_location_cd)
         from stage_customer
    where alt_associate_number is not null
    group by alt_associate_number
    update TMP_ASSOCIATE
    set associate_id = associate_seq.nextval
    insert /*+ APPEND */ into associate
    select
    associate_id ,
    null,
    associate_number,
    (select nvl(location_id, fn_location_default())
         from location
         where location.location_cd = tmp_associate.update_location_cd)
    from TMP_ASSOCIATE
    where not exists (select associate_id from associate
              where associate.associate_number = tmp_associate.associate_number);
    commit;
    select min(row_id) -1 into test_row_id from stage_customer ;
    WHILE sysdate < end_time
    LOOP
    select *
    into staged_rec
    from Stage_Customer
    where row_id = test_row_id + 1;
    if staged_rec.row_id is null
    then
    COMMIT;
    EXIT;
    end if;
    -- EXIT WHEN staged_rec.row_id is null;
    -- INSERTS TO CUSTOMER TABLE (IN LOOP - DATA FROM STAGE CUSTOMER TABLE)
    insert /*+ APPEND */ into customer (
         customer_id,
         customer_acct_num,
         account_type_id,
         acct_status,
         discount_percent,
         discount_code,
         uses_purch_order,     
         business_name,
         tax_exempt_prompt,
         is_deleted,
         name_prefix,
         first_name,
         middle_name,
         last_name,
         name_suffix,
         nick_name,
         alt_first_name,
         alt_last_name,
         marketing_source_id,
         country_cd,
         locale_cd,
         email_addr,
         email_addr_valid,
         alt_email_addr,
         alt_email_addr_valid,
         birth_date,
         acquisition_sales_channel_id,
         acquisition_location_id,
         home_location_id,
         salesperson_id,
         alt_salesperson_id,
         customer_login_name,
         age_range_id,
         demographic_role_id,
         education_level_id,
         gender_id,
         household_count_id,
         housing_type_id,
         income_range_id,
         lifecycle_type_id,
         lifetime_value_score_id,
         marital_status_id,
         religious_affil_id
    values (      
         staged_rec.row_id,
         staged_rec.customer_acct_num,
         nvl(staged_rec.account_type_id, fn_account_type_default()),
         1,
         staged_rec.discount_percent,
         staged_rec.discount_cd,
         staged_rec.pos_allow_purchase_order_flag,
         staged_rec.business_name,
         staged_rec.pos_tax_prompt,
         staged_rec.is_deleted,
         staged_rec.name_prefix,
         staged_rec.first_name,
         staged_rec.middle_name,
         staged_rec.last_name,
         staged_rec.name_suffix,
         staged_rec.nick_name,
         staged_rec.alt_first_name,
         staged_rec.alt_last_name,
         staged_rec.new_marketing_source_id,
         staged_rec.country_cd,
         staged_rec.locale_cd,
         staged_rec.email_addr,
         nvl2(staged_rec.email_addr,1,0),
         staged_rec.alt_email_addr,
         nvl2(staged_rec.alt_email_addr,1,0),
         staged_rec.birth_date,
         staged_rec.SALES_CHANNEL_ID,
         (select location_id from location where location_cd = staged_rec.update_location_cd),
         (select location_id from location where location_cd = staged_rec.update_location_cd),
         (select min(a.associate_id) from associate a
              where staged_rec.associate_number = a.associate_number
              and a.location_id =
                   (select location_id from location where location_cd = staged_rec.update_location_cd)),
         (select min(a.associate_id) from associate a
              where staged_rec.alt_associate_number = a.associate_number
              and a.location_id =
                   (select location_id from location where location_cd = staged_rec.update_location_cd)),
         staged_rec.customer_login_name,
         fn_age_range_default(),
         fn_demographic_role_default(),
         fn_education_level_default(),
         fn_gender_default(),
         fn_household_cnt_default(),
         fn_housing_type_default(),
         fn_income_range_default(),
         fn_lifecycle_type_default(),
         fn_lifetime_val_score_default(),
         fn_marital_status_default(),
         fn_religious_affil_default()
    -- INSERTS TO PHONE TABLE ( IN LOOP -DATA FROM STAGE CUSTOMER TABLE)
    if staged_rec.home_phone is not null
    then
    insert /*+ APPEND */ into phone ( customer_id, phone_type_id, phone_num, is_valid, is_primary)
         values (staged_rec.row_id, 1, staged_rec.home_phone, 1, 1);
    end if;
    if staged_rec.work_phone is not null
    then
    insert /*+ APPEND */ into phone (customer_id, phone_type_id, phone_num, is_valid,is_primary)
         values (staged_rec.row_id, 2, staged_rec.work_phone, 1, 0);
    end if;
    if staged_rec.mobile_phone is not null
    then
    insert /*+ APPEND */ into phone ( customer_id, phone_type_id, phone_num, is_valid, is_primary)
         values (staged_rec.row_id, 3, staged_rec.home_phone, 1, 0);
    end if;
    if staged_rec.work_phone is not null
    then
    insert /*+ APPEND */ into phone (customer_id, phone_type_id, phone_num, is_valid,is_primary)
         values (staged_rec.row_id, 4, staged_rec.work_phone, 1, 0);
    end if;
    -- INSERTS TO CUSTOMER ADDR TABLE ( IN LOOP - DATA FROM STAGE CUSTOMER TABLE)
    if staged_rec.address1 is not null
    then
    insert /*+ APPEND */ into customer_addr (customer_id, address_type_id, address1, address2, address3, city, state_cd, postal_cd, country_cd, region_id,
                   is_primary, is_valid, cannot_standardize, is_standardized)
         values (staged_rec.row_id, fn_address_type_default(), staged_rec.address1, staged_rec.address2, staged_rec.address3,
              staged_rec.city, staged_rec.state_cd, staged_rec.postal_cd, staged_rec.country_cd, staged_rec.region, 1, 1, 0, 0);
    end if;
    -- INSERTS TO CUSTOMER_STATE_TAX_ID
    if staged_rec.pos_default_tax_id is not null
    then
    insert /*+ APPEND */ into customer_state_tax_id (state_cd, customer_id, tax_id, expiration_date)
         values (staged_rec.state_cd, staged_rec.row_id, staged_rec.pos_default_tax_id,
              staged_rec.pos_tax_id_expiration_date);
    end if;
    -- REMOVE STAGE CUSTOMER ROW (IN LOOP - DELETE CUSTOMER FROM STAGE_CUSTOMER TABLE)
    delete from stage_customer
    where row_id = staged_rec.row_id;
    -- COMMIT AFTER EVERY 10,000 CUSTOMERS
    if mod(staged_rec.row_id, 100) = 0
    then
    commit;
    end if;
    -- INCREMENT ROW ID TO BE RETRIEVED
    test_row_id := test_row_id + 1;
    END LOOP;
    EXCEPTION
         WHEN NO_DATA_FOUND
         THEN
         COMMIT;
    END;
    Message was edited by:
    JesusLuvR
    Message was edited by:
    JesusLuvR

    You want to do as much processing as you can in single large sql statements, not row by row. You also want to do as few statemetns as possible. Most of what you are doing looks to me like it could be done as a series of single sql statements. For example, the three statements that populate location ca nbe condensed to a single statement like:
    INSERT /*+ APPEND */ INTO location
       (location_id, location_cd, location_desc, short_description, sales_channel_id,
        location_type_id, location_category_id, addr1, addr2, addr3, city, state_cd,
        postal_cd, country_cd, region_id, timezone_id, locale_cd, currency_cd,
        phone_num, alt_phone_num, fax_num, alt_fax_num, email_addr, alt_email_addr,
        is_default, create_modify_timestamp)
    SELECT location_seq.NEXTVAL, update_location_cd, NULL, NULL,
           fn_sales_channel_default(), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
           NVL(country_cd, 'USA'), NULL, NULL, locale_cd, 'USD', NULL, NULL, NULL,
           NULL, NULL, NULL, 0, sysdate
    FROM (SELECT DISTINCT update_location_cd, country_cd, locale_cd
          FROM stage_customer
          WHERE update_location_cd NOT IN (SELECT location_cd FROM location);You can easily do a similar change to the statemetns populating associates.
    I don't, off hand, see anything in the intert into customers that seems to require row by row processing. Just do it in a large insert. I would also be tempted to replace the many values of the form (select location_id from location where location_cd = staged_rec.update_location_cd) to a join with location. As far as I can see, you would only need one copy of location.
    I also notince that you have a number of function calls in the values list. I would look carefully at whether you need them at all, since they seem to have no parameters, so should return the same value every time. Minimally, I would consider calling them once each, storing the values in variables and use those variables in the insert.
    HTH
    John

  • Very Slow Run Time Performance OpenEdge (Progress)

    Hello everyone,
    I am working with Crystal Reports XI R2. Also we have developed an export application based on OpenEdge 10.1B (Progress 4GL).
    Problem: The export of any Crystal Reports file to PDF format takes (via application in Progress) takes 5 times or more time than when I just export that report via Crystal Reports XI. There is an ODBC connection via OpenEdge 10.1B to DWH SQL92.
    I have monitored the performance. It seems when the Crysta Reports try to communicate to the query or dataset, it takes longer time. In some situation  the temp file is already filled out in Win Temporary directory, and then it waits so long to populate the data within CR and finally exports to PDF.
    What is wrong? Please HELP!!!!!!

    A part of codes:
    if not gLog_Batch
    then do:
      if iiRelatienummer = 0
      and icActie = "VervExporteren"
      then do: /* Vanuit menu-item bij relatie nooit via batch */
        find TAB_MEDEW where TAB_MEDEW.ID_NAAM = gUSER_ID
                         and TAB_MEDEW.NR_BEDR = gNR_BEDR no-lock no-error.
        /* {assrc/a5batkon.i} */
      end.
      else do: /* menu-optie bij relatie of menu-optie bekijken vanuit browser
                  altijd direct bekijken in acrobat, dus application PDF */
        chExportOptions:DestinationType = 5.     /* Application */
        chExportOptions:FormatType      = 31.    /* PDF */
        chExportOptions:ApplicationFileName = session:temp-directory + CRYSTAL_REPORT.NAAM + ".pdf".
        chReport:SQLQueryString no-error. /* work-around, parameter scherm opstarten en dan leave */
        if error-status:num-messages > 0
        then do: /* cancel gedrukt */
          if not GetError() matches "Door de gebruiker geannuleerd"
          and not GetError() matches "user cancelled"
          then
            /* 880:Fout bij exporteren, %1 */
            run MeldingNrOK(880,GetError(),"error").
          run ReleaseCH.
          return.
        end.
        chReport:EnableParameterPrompting = false.
      end.
      if vACHTERGROND
      then do: /* Parameters opvragen en opslaan */
        repeat:
          update
            iFormatType
            cDiskFilename
            with frame fBatchVariabelen.
          if cDiskFilename = ""
          then do:
            /* 326:Bestandsnaam is verplicht. */
            run MeldingNrOk(326,"","error").
            next.
          end.
          leave.
        end. /* repeat */
        if key-function(lastkey) = "end-error"
        then do:
          run ReleaseCH.
          return.
        end.
        chReport:SQLQueryString no-error. /* work-around, parameter scherm opstarten en dan leave */
        /* chReport:GetNextRows(0,1) no-error. eerste werkende work-around */
        if error-status:num-messages > 0
        then do: /* cancel gedrukt */
          if not GetError() matches "Door de gebruiker geannuleerd"
          and not GetError() matches "user cancelled"
          then
            /* 880:Fout bij exporteren, %1 */
            run MeldingNrOK(880,GetError(),"error").
          run ReleaseCH.
          return.
        end.
        assign vCHAR        = string(iiIdCrystalReport) + "^" +
                              string(iFormatType) + "^" +      /* PDF, Excel of ... */
                              cDiskFileName + "^" +
                              "|"
               vPROGRAMNAME = "crystalbatch.p"
               vTYPE        = "IN^IN^CH^|"
               vLENGTE      = "11^2^120^|"
               vLABELS      = "IdCrystalReport^Uitvoertype^Uitvoerbestand^|"
               vBATCH       = ?.
        run asobj/a53203.p.
        if key-function(lastkey) = "end-error"
        then do:
          run ReleaseCH.
          return.
        end.
        find BATCH_SEL where recid(BATCH_SEL) = vBATCH no-lock no-error.
        do iTeller1 = 1 to chParamDefs:count:
          assign chParam = chParamDefs:Item(iTeller1).
          assign cNaam = trim(substring(chParam:name,3),"~}").
          if can-do("gUSER_ID,gNR_BEDR,gNR_ADMIN",cNaam)
          then do: /* deze zijn/worden al gedaan */
            next.
          end.
          else do:
            do iTeller2 = 1 to chParam:NumberOfCurrentValues trans:
              create BATCH_ITEMS.
              assign BATCH_ITEMS.NR_KENMERK   = iKenmerk
                     BATCH_ITEMS.NR_VOLG      = BATCH_SEL.NR_VOLG
                     BATCH_ITEMS.SELEKTIES[1] = string(chParam:GetNthCurrentValue(iTeller2))
                     BATCH_ITEMS.LABELS[1]    = cNaam
                     iKenmerk                 = iKenmerk + 1.
              assign iValueType = chParam:ValueType.
              case iValueType:
                when 7 /* Number */
                then
                  assign BATCH_ITEMS.TYPE[1] = "IN".
                when 8 /* Currency */
                then
                  assign BATCH_ITEMS.TYPE[1] = "DE".
                otherwise
                  assign BATCH_ITEMS.TYPE[1] = "CH".
              end case. /* Parameter:ValueType = data-type */
            end.
          end.
        end. /* iTeller1 */
        run ReleaseCH.
        return.
      end. /* if vACHTERGROND */
      chReport:export(icActie = "VervExporteren") no-error.
      if error-status:num-messages > 0
      then do:
        if not GetError() matches "Door de gebruiker geannuleerd"
        and not GetError() matches "user cancelled"
        then
          /* 880:Fout bij exporteren, %1 */
          run MeldingNrOK(880,GetError(),"error").
        run ReleaseCH.
        return.
      end.
    end. /* if not gLog_Batch */
    else do: /* batch-mode dus Parameters vullen vanuit BATCH_ITEMS */
      chExportOptions:DestinationType = 1.                /* diskfile */
      chExportOptions:FormatType      = iFormatType.      /* PDF, Excel etc */
      chExportOptions:DiskFileName    = cDiskFileName.
      case iFormatType:
        when 38 /* Excel standaard opties */
        then do:
          chExportOptions:ExcelAreaGroupNumber        = 0.
          chExportOptions:ExcelPageBreaks             = no.
          chExportOptions:ExcelUseConstantColumnWidth = no.
          chExportOptions:ExcelUseWorksheetFunctions  = yes.
        end. /* 38 Excel */
        when 40 /* csv standaard opties */
        then do:
          chExportOptions:CharFieldDelimiter = ";".
          chExportOptions:CharStringDelimiter = "~"".
        end. /* 40 csv */
      end case.
      do iTeller1 = 1 to chParamDefs:count:
        assign chParam = chParamDefs:Item(iTeller1).
        chParam:ClearCurrentValueAndRange().
        assign cNaam = trim(substring(chParam:name,3),"~}").
        if cNaam = "gUSER_ID"
        then do:
          chParam:ClearCurrentValueAndRange().
          chParam:SetCurrentValue(gUSER_ID).
          next.
        end.
        else if cNaam = "gNR_ADMIN"
        then do:
          chParam:ClearCurrentValueAndRange().
          chParam:SetCurrentValue(gNR_ADMIN).
          next.
        end.
        else if cNaam = "gNR_BEDR"
        then do:
          chParam:ClearCurrentValueAndRange().
          chParam:SetCurrentValue(gNR_BEDR).
          next.
        end.
        if not can-find(first BATCH_ITEMS where BATCH_ITEMS.NR_VOLG   = BATCH_SEL.NR_VOLG
                                            and BATCH_ITEMS.LABELS[1] = cNaam)
        then do:
          /* 881:De parameter '%1' is niet te vullen. */
          run MeldingNrOK(881,cNaam,"error").
          run ReleaseCH.
          return.
        end.
        assign iMultiple = 0.
        for each BATCH_ITEMS where BATCH_ITEMS.NR_VOLG   = BATCH_SEL.NR_VOLG
                               and BATCH_ITEMS.LABELS[1] = cNaam no-lock:
          assign iMultiple = iMultiple + 1.
          if iMultiple > 1
          and not chParam:EnableMultipleValues
          then do:
            /* 882:De enkelvoudige parameter '%1' kreeg meerdere waarden aangeboden. */
            run MeldingNrOK(882,cNaam,"error").
            run ReleaseCH.
            return.
          end.
          assign iValueType = chParam:ValueType.
          case iValueType:
            when 7 /* Number */
            then
              chParam:AddCurrentValue(int(BATCH_ITEMS.SELEKTIES[1])) no-error.
            when 8 /* Currency */
            then
              chParam:AddCurrentValue(dec(BATCH_ITEMS.SELEKTIES[1])) no-error.
            when 9 /* Logical */
            then
              chParam:AddCurrentValue(BATCH_ITEMS.SELEKTIES[1] = "yes") no-error.
            when 10 /* Date */
            then
              chParam:AddCurrentValue(date(BATCH_ITEMS.SELEKTIES[1])) no-error.
            when 11 /* Time */
            or when 12 /* Character */
            or when 16 /* DateTime */
            then
              chParam:AddCurrentValue(BATCH_ITEMS.SELEKTIES[1]) no-error.
          end case. /* Parameter:ValueType = data-type */
        end. /* alle waarden van deze parameter, each tParams of chParam */
      end. /* alle parameters van het report, do iTeller1 = 1 to chParamDefs:count */
      chReport:EnableParameterPrompting = false.
      chReport:DisplayProgressDialog = false.
      chReport:export(false) no-error. /* false, geen user-prompt */
      if error-status:num-messages > 0
      then
        put unformatted "Fout bij exporteren," skip
          GetError() skip.
      assign vST_BATCH = (error-status:num-messages = 0).

Maybe you are looking for

  • ASA 5505 Slow download speed

    Hello, as the title states, I have an ASA 5505 at one facility that is only getting around 16mb down on a 100mb circuit. No errors on either interface, and we've tried manually setting port speed and duplex, and auto, (both sides show it negotiating

  • Time machine recovery issue with passwords and logins

    I have 2008 MBA running 10.9 which had hardrive fail, reinstall from 10.6 DVD recovery all info from time machine backup, had to reset passwords,then ran s/w update (app store didn't work from recovered s/w) now I can't login. Takes my account passwo

  • ICal server and Email invitation config

    Hi all, I'm trying to setup email invitation with an external mail service (GMAIL.com). I used config informations from gmail (the same from mail app) but I got "IMAP factory connection failed". Exactly the error log reports: "[*twistedcaldav.mail.IM

  • Solved Intelligent Agent (dbsnmp) link problems on RH 6.0

    I just spent a good chunk of time getting Oracle Enterprise Manager Intelligent Agent to link properly on Red Hat 6.0. I figured I'd post a summary here to help someone else with the same problem. Problem summary: Running "lsnrctl dbsnmp_start" didn'

  • Deleting photos off the iPod nan 4th Genaration.

    Heyy, I have photos on my iPod and I don't want any photos on my iPod anymore. How do I delete the photos off my iPod?