Slow re-adding of component

I've recently encountered the following problem: I've written an applet that creates some custom components. During the course of its execution, these components are removed from the screen and another (new) component is added. This all works fine. Then the original components are restored -- and this is where it gets strange. In the Microsoft JVM everything still works fine. However, in the latest sun 1.4 plugin the addition of the existing components (nb these are not being recreated, just re-added) is excrutiatingly slow. Here is the code to re-add the components:
//clear the applet's display area
removeAll();
add(pz); //add the puzzle component
add(ci); //add the Correct-It button component
add(spacerLabel);
add(clue); //add the cluesFurther investigation gave the following startling figures: the code was modified as follows:
removeAll();
long t1 = System.currentTimeMillis();
add(pz);
long t2 = System.currentTimeMillis();
add(ci);
long t3 = System.currentTimeMillis();                    
add(spacerLabel);
long t4 = System.currentTimeMillis();
add(clue);
long t5 = System.currentTimeMillis();
System.out.println("add(pz) = "+(t2-t1));
System.out.println("add(ci) = "+(t3-t2));
System.out.println("add(SpacerLabel) = "+(t4-t3));
System.out.println("add(clue) = "+(t5-t4));The output for a typical run was:
add(pz) = 940
add(ci) = 550
add(SpacerLabel) = 50
add(clue) = 3680
Note that, by comparison, timings for the creation and addition of the "clue" component in the init method of the applet gave a value of almost zero milliseconds.
Can anybody explain this behaviour?

It is an issue with sun's java 1.4. I believe this issue has been fixed for 1.4.2, however if you're using 1.4.0 or 1.4.1 you are kind of stuck with this problem.
Thankfully, there is a "fix" that I have found. Set the component you're adding to be not visible before adding it to your container. Once its added, you can turn visibility back on. This makes adding components very fast again. To use your example,
removeAll();
pz.setVisible(false);
add(pz); //add the puzzle component
pz.setVisible(true);
ci.setVisible(false);
add(ci); //add the Correct-It button component
ci.setVisible(true);
spacerLabel.setVisible(false);
add(spacerLabel);
spacerLabel.setVisible(true);
clue.setVisible(false);
add(clue); //add the clues
clue.setVisible(true);

Similar Messages

  • Problem showing the crystal report viewer in form after added the component on it

    Greetings
    I have a problem running a program. I created a form which I added the component Crystal Report Viewer perfecty but during program execution when I call that form my VS 2012 Ultimate show the following error:
    Translated:
    Failed to create the form. See Exception.InnerException for details. Error: An exception occurred in the type initializer for 'CrystalDecisions.Shared.SharedUtils'.
    Note: If I remove the component from the form. the applications runs fine when calling the form without the component CrystalReportViewer
    It is something related to my VS? o just that the actual version 13.0.9 is not yet compatible?

    Report.Show?
    How about you try:
    CrystalReportViewer1.ReportSource = <path to your report>
    Or:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    crReportDocument.Load(<path to your report>)
    CrystalReportViewer1.ReportSource = crReportDocument
    Or, if the report is added to the project:
    crReportDocument = New test
    CrystalReportViewer1.ReportSource = crReportDocument
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    Message was edited by: Ludek Uher

  • How to add default values when adding custom component to design view?

    I have a set of custom components (usually) extending Spark components. But when adding our custom component onto design view, how can I define defult values (in AS3).
    For example, s:Button has default label = 'Button' when added to application, or mx:DataGrid has 3 columns predefined, but when using custom components there are no predefined values like this.
    I can put this values in constructor, but they are not visible in design time, only runtime.
    Any ideas? Thanks
    Esmin

    yes, I am. By the way I've found the solution. Someone might find this usefull.
    In design.xml having
    <component name="ExtendedTextInput" namespace="mynamespace" category="beta" displayName="ExtendedTextInput"/>
    use this
    <component name="ExtendedTextInput" namespace="mynamespace" category="beta" displayName="ExtendedTextInput">
            <defaultAttribute name="text" value="ExtendedTextInput"/>
        </component>
    so when adding this component to design view, it will have text setted to value ('ExtendedTextInput' in this case).

  • [svn] 3035: * Added HTTPMultiService component - refactored the guts of HTTPService into a new

    Revision: 3035
    Author: [email protected]
    Date: 2008-08-28 23:18:11 -0700 (Thu, 28 Aug 2008)
    Log Message:
    * Added HTTPMultiService component - refactored the guts of HTTPService into a new
    class AbstractOperation which HTTPService now wraps.
    * Moved concurrency and showBusyCursor classes up to the mx.rpc level from mx.rpc.mxml.
    Partly this improves consistency and partly because it is awkward to implement them
    with the wrapping design in the subclass. This does introduce a new dependency on
    CursorManager in mx.rpc.HTTPService, though I think that should turn into a "runtime binding"
    so we remove the compile time binding altogether.
    * Added managers, operationManager, resultType, resultElementType, properties to the
    AbstractService and AbstractInvoker classes. These are used to improve the metadata information
    on these operations for better tooling in the future, and to allow management services to
    tie into the service infrastructure.
    * AsyncToken gets a default parameter for its constructor so it can be used in MXML.
    * Moved endpoint property up from the MXML to the regular mx.rpc version to improve consistency
    The blazeds RPC tests passed unfortunately I had problems getting the RPC tests in the sdk branch
    to build and run so let me know if you see any problems on those.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/manifest.xml
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractInvoker.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AbstractService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/AsyncToken.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/RemoteObject.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/remoting/mxml/RemoteObject.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/soap/mxml/WebService.as
    Added Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/Operation.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/SerializationFilter.as

    the "main" class contains the following relevant codetip: 'relevant' code is rarely read, particularly if it's more than 5 lines.
    about 75% of posts with relevant code, the problem is elsewhere.
    create a new program with only those parts related to the problem
    e.g. if your main program has a menu, and there's no problem with that,
    don't include the menu in the new program. If your program has button,
    and no problems, don't add them in. if just the tree, all you need is a frame and a tree.
    when you do this, make sure it compile and runs OK (but displaying the problem behavior),
    then post all of it here, along with the steps to reproduce the problem.
    doing it this way should drastically reduces the lines of code, therefore greatly
    improving your chances of a solution.

  • Video doesn't slow when added to timeline of different frame rate

    I'm having trouble understanding what's going on here.  I have a video shot at 59.94 fps, and I add it to a sequence that is set at 29.97 fps.  It plays back normally which makes sense if premiere is dropping frames by 1/2, but the drop frame indicator says that it isn't dropping frames.  The clip also runs the same length.  The interpret frame rate for the clip in the project window says 59.94 fps, so if it's added to a sequence that is set at 29.97 fps and it's NOT dropping frames, shouldn't it be slowed down?

    OK cool thank you very much.  So I've been doing some research to figure out the best way to edit this project.  The problem is that I have some GoPro videos shot at 1080X1920 and 59.94 fps and some at 480X840 and 240 fps.  But the catch is I want to make the final product work well for Youtube.  This is how I feel I should go about getting the best quality for my final video.
    1.  Set the sequence settings to 720X1280 (which is what I will export as so that the 480X840 doesn't loose as much quality compared to having to resize up to 1080X1920 to match the other clips).  I don't think there's much quality loss in down-scaling the 1080X1920 to 720X1280 (if any, or is there?), so it's kind of a happy medium for both frame sizes that I have and it's still good for Youtube.
    2.  Apparently Youtube really works well with 29.97 fps, so this is what I will set the sequence frame rate at.
           **Another side question I have is what if my sequence frame rate is set at 29.97fps and I interpret the frame rate of a 59.94fps clip as 29.97fps and add it to the sequence.  Now if I use the rate stretch tool to speed up the now slowed down clip to 200% so that it plays at normal speed.  Will Premiere remove frames to speed up the clip or does it really increase the rate of the frames so that I don't loose any frames?**  My guess is if I export at 29.97fps it will remove half of the frames.
    Is it not possible to have an exported movie clip that contains multiple frame rates?

  • System slow after adding sata2 hd k8n-slifi

    hi.
    recently added a 160gb 7200.9 seagate for more storage space but the system is slower now than before.
    amd64 3200+ stock speed
    k8n neo4 sli-fi
    pc4000 geil 2.5-4-4-9 at pc3200 speed.
    hitachi 7k250 160gb primary master
    ibm 30gb primary slave
    seagate 160gb 7200.9 sata2
    nec 2510a dvd-rw secondary master
    leadtek 7800gt
    leadtek tv2000 expert - tvcard.
    creative soundblaster audigy2
    antec 380w truepower S
    windows xp + sp2
    latest drivers for both motherboard and gfx card from nvidia.
    latest bios, v1.3.
    if i unpack a rar archive from the hitachi to the seagate i get serious slowdowns in both windows media player and the tv-card software.
    if i play a game installed on the seagate the computer basicly stops when loading data, even in games that used to run good from the hitachi.
    i have had some problems when browsing with firefox 1.5.0.1 due to lack of cpu power.
    installed nvidia sw-ide driver and it helped considerbly but i still get slowdowns.
    these are problems i never had before i put in the seagate.
    i have no problems with corrupted data and i have not tried changing sata port, its in number 3/4 now.
    the harddrive is configured as one big partition with ntfs filesystem.
    also noticed it takes along time to access the seagate the first time in a new explorer window.
    when i click on the designated letter the explorer locks up for 5-10seconds and the hd-led is active and then i can se the content of the harddrive.
    if i move a 700mb avi file from the hitachi to the seagate i can se in taskmanager that the process "system" consumes 45-70% of cpu power.
    if i move the same file to the ibm harddrive instead the same process never goes above 7%
    any ideas of what it can be and what i can do to fix it ?
    /Tjabo

    Quote from: slayek on 07-April-06, 09:37:51
    Yes, there is new firmware for Seagate 7200.9 160gig SATA2 drives. If your firmware has lots of 2's, you gotta chage teh firmware. Contact segate support by email and they will supply you the files.
    i know sandra is a lieng ***** but she claims the harddrive is on bios 3.AAD
    Built2Last mentioned bios 3.AAE so will take a look if their is yet another updated to try.
    Quote from: kakarocht on 07-April-06, 11:05:55
    I think it could be your PSU problem as I can see more devices that you've now. Tried to borrow a psu from your with higher wattage. Gd luck
    its not a psu error thats for sure.
    the computer is 110% stable and is 110% stable with a 25% oc on the cpu and a 20% oc on the gfx card which pushes the psu quite far.
    its all at stock at the moment.

  • How to add custom hotkey for adding specified component for specified parsys

    For example: I clicked anywhere on the page and press alt+shift+g.
    The result:specified component added on concrete parsys

    The usual way for adding components is by dragging them from the sidekick onto the page. You could certainly write something like this but I don't think it would be easy.

  • Slow Shutdown (added log-file)

    Hello Support Community,
    my 10.8.2 mpb is shutting down really slow. I already repaired the disk perimissions and the dis itself via disk utility, cleared my chaches, booted in safe-mode and tried to close all programmes and dismount all devices bevore shutdown. So I can just offer you my error log-file and hope you guys can help me!
    Cheers Flo
    02.11.12 13:09:01,947 com.apple.usbmuxd[70]: _handle_timer heartbeat detected detach for device 0x68-192.168.178.34:0!
    02.11.12 13:09:11,010 com.apple.launchd.peruser.501[154]: (com.apple.PackageKit.InstallStatus) Throttling respawn: Will start in 9 seconds
    02.11.12 13:09:11,024 WindowServer[108]: dict count after removing entry for window 0x2b is 0
    02.11.12 13:09:11,056 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,056 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,057 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,057 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,058 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,062 com.apple.launchd[1]: (com.apple.ShareKitHelper[1906]) Exited: Killed: 9
    02.11.12 13:09:11,063 com.apple.launchd.peruser.501[154]: (com.apple.rcd[1752]) Exited: Killed: 9
    02.11.12 13:09:11,070 coreservicesd[29]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=147
    02.11.12 13:09:11,078 com.apple.launchd.peruser.501[154]: ([0x0-0x26b26b].com.apple.iTunesHelper[2604]) Exited with code: 1
    02.11.12 13:09:11,078 com.apple.launchd.peruser.501[154]: ([0x0-0x29029].com.apple.AppleSpell[296]) Exited: Terminated: 15
    02.11.12 13:09:11,078 com.apple.launchd.peruser.501[154]: (com.apple.mdworker.shared.03000000-0000-0000-0000-000000000000[2664]) Exited: Killed: 9
    02.11.12 13:09:11,077 UserEventAgent[11]: Captive: [UserAgentDied:139] User Agent @port=44039 Died
    02.11.12 13:09:11,077 coreservicesd[29]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=115
    02.11.12 13:09:11,078 coreservicesd[29]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=1243
    02.11.12 13:09:11,082 coreservicesd[29]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=152
    02.11.12 13:09:11,082 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x1d requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,081 com.apple.launchd.peruser.501[154]: (com.apple.UserEventAgent-Aqua[162]) Exited: Killed: 9
    02.11.12 13:09:11,082 coreservicesd[29]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=152
    02.11.12 13:09:11,082 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x1c requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,082 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x1b requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,082 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x1a requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,083 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x19 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,083 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x18 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,084 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x17 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,084 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x16 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,084 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x15 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,084 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x14 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,085 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x13 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,085 WindowServer[108]: _CGXGetWindowOrderingGroup: Operation on a window 0x12 requiring rights 0x5 by caller Dashboard
    02.11.12 13:09:11,085 WindowServer[108]: CGXOrderWindowList: Operation on a window 0x1d requiring rights kCGSWindowRightPresenter by caller Dashboard
    02.11.12 13:09:11,085 DashboardClient[342]: CGSOrderWindowList
    02.11.12 13:09:11,086 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,086 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,086 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,086 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,086 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,113 loginwindow[85]: DEAD_PROCESS: 85 console
    02.11.12 13:09:11,180 airportd[784]: _doAutoJoin: Already associated to “Libertarian”. Bailing on auto-join.
    02.11.12 13:09:11,325 blued[64]: -[CBManager init] init returning self:0x7ffde250b960
    02.11.12 13:09:11,332 coreservicesd[29]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=145
    02.11.12 13:09:11,332 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,333 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,333 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,333 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:11,333 WindowServer[108]: CGXGetConnectionProperty: Invalid connection 45571
    02.11.12 13:09:19,399 com.apple.SecurityServer[15]: Killing auth hosts
    02.11.12 13:09:19,399 com.apple.SecurityServer[15]: Session 100051 destroyed
    02.11.12 13:09:22,161 loginwindow[85]: Application hardKill returned -600
    02.11.12 13:09:22,161 loginwindow[85]: Application hardKill returned -600
    02.11.12 13:09:22,161 loginwindow[85]: Application hardKill returned -600
    02.11.12 13:09:22,175 shutdown[2796]: reboot by Wildt:
    02.11.12 13:09:22,176 shutdown[2796]: SHUTDOWN_TIME: 1351858162 175446

    Well actually none of the solutions provided there helped to solve my problem. I just get a little bit different kind of errors which you can see in the added log file
    02.11.12 15:45:34,943 com.apple.usbmuxd[62]: _handle_timer heartbeat detected detach for device 0x3-192.168.178.59:0!
    02.11.12 15:45:36,728 com.apple.launchd.peruser.501[155]: (com.apple.PackageKit.InstallStatus) Throttling respawn: Will start in 9 seconds
    02.11.12 15:45:36,736 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,736 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,737 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,737 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,737 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,738 WindowServer[100]: dict count after removing entry for window 0x31 is 0
    02.11.12 15:45:36,745 coreservicesd[29]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=142
    02.11.12 15:45:36,752 UserEventAgent[11]: Captive: [UserAgentDied:139] User Agent @port=43783 Died
    02.11.12 15:45:36,755 com.apple.launchd.peruser.501[155]: ([0x0-0x20020].com.apple.AppleSpell[255]) Exited: Terminated: 15
    02.11.12 15:45:36,757 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,757 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,757 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,757 com.apple.launchd.peruser.501[155]: (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[232]) Exited: Killed: 9
    02.11.12 15:45:36,757 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,758 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:36,758 coreservicesd[29]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=147
    02.11.12 15:45:36,758 coreservicesd[29]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=220
    02.11.12 15:45:36,759 com.apple.launchd.peruser.501[155]: (com.apple.UserEventAgent-Aqua[163]) Exited: Killed: 9
    02.11.12 15:45:36,788 loginwindow[79]: DEAD_PROCESS: 79 console
    02.11.12 15:45:36,802 mds[76]: (Normal) DiskStore: Disk store AC wakeup
    02.11.12 15:45:36,802 mds[76]: (Normal) DiskStore: Disk store AC wakeup
    02.11.12 15:45:37,001 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:37,002 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:37,002 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:37,002 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:37,002 WindowServer[100]: CGXGetConnectionProperty: Invalid connection 60931
    02.11.12 15:45:37,134 blued[55]: -[CBManager init] init returning self:0x7fb3d3e123f0
    02.11.12 15:45:52,881 coreservicesd[29]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending notification kLSNotifyApplicationDeath to notificationID=139
    02.11.12 15:45:52,936 airportd[281]: _doAutoJoin: Already associated to “Libertarian”. Bailing on auto-join.
    02.11.12 15:46:00,959 loginwindow[79]: Application hardKill returned -600
    02.11.12 15:46:00,980 shutdown[299]: reboot by Wildt:

  • Mac Pro Slower after adding second hard drive

    My work computer is a Mac Pro 3,1 running Lion 10.7.3 with 4GB RAM and a 1TB hard drive. It was performing well running programs like Adobe CS5 and Final Cut Pro until I added a second 1TB drive (Western Digital WD1001FALS). After that upgrade Photoshop is way slower while programs like InDesign and Final Cut are noticable slower.
    Is there any reason for this?  Anything that can be done outside of a memory upgrade?

    Let me try to direct you to some tips on CS5, and suggest that more hard drives properly used (OS, scratch, data, backup, array) can help, but that one drive and 4GB RAM is under performing.
    Optimize Photoshop CS5
    Optimizing Photoshop Overview
    Adobe Photoshop FAQ
    Optimize performance Photoshop
    What are you using the WD1001FALS for? data? scratch?
    And open Activity Monitor and check pageouts. Unless your use if very very light, I can't see that as being enough for even CS5 code and some OS X let alone any more apps.
    Activity Monitor memory usage

  • Mail is running slow after adding an Exchange account

    I recently added an Exchange 2007 account to Mail in addition to 2 other accounts; MobileMe and Gmail. Since then, Mail has been very slow to respond to all interaction. While in the middle of typing, it will pause and then catch up to all my keystrokes. Clicking on a message takes a few seconds to get any response as well. This all goes for any email account, Exchange, Gmail, MobileMe.
    I have tried rebuilding the mailboxes. Not sure what else I can try. Is this a common occurrence? Does is matter much that I have over 24,000 messages?

    Seems like this process worked out. I copied over the Mail folder in Library >Application Support, replaced Mail in Library and com.apple.mail.plist in Preferences. Feels much better <3
    I'm thinking Mail just had enough after years of adding and deleting several email accounts. I also think Apple had changed the manner in which data is stored for Mail. The folder structures and file locations don't appear to be the same in the two user accounts.

  • Script Editor in Snow Leopard painfully slow after adding apps to Library

    I have four different Macs that I use from time to time, and on each of them I notice a constant: adding more items to AppleScript Editor's Library window slows performance of mundane operations (opening a dictionary, switching between Library window and editor window, scrolling in the Library window, etc).
    In Leopard, I noticed little to know latency in opening a dictionary in Script Editor, but Snow Leopard's AppleScript Editor kills my productivity by making me wait on it with most UI interactions with the Library window.

    Hello
    I read another post of yours:
    Topic : Issue with applescript and installer scripts
    http://discussions.apple.com/thread.jspa?threadID=2143147
    It seems that the installer is calling osascript which is run in 64-bit mode under OSX 10.6 whereas XSLT Tools.osax invoked in the script is in 32-bit mode only.
    Until the osax becomes 64-bit capable, you may try setting /usr/bin/osascript to run in 32-bit mode. Perhaps by setting an option in Get Info window in Finder as explained in the AppleScript Release Notes listed earlier. (?)
    I'm not sure but if Finder cannot do it for commands, you'd need to replace 'osascript' with 'arch -i386 osascript' in the installer script (if it's editable) or let /usr/bin/osascript be wrapped via arch(1) so that it is run in 32-bit mode.
    cf.
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an1/arch.1.html
    Good luck,
    H

  • CNA becomes very SLOW after adding new switch to cluster

    Added a CAT-2970 to my cluster and now CNA is acting very slow, especially when I attempt managing the new switch. I am still below the 16 node cluster limit. I did initially find a CRC on the new switch trunk port int. and noticed that it came up as Dynamic Auto/ISL and the core was at Dynamic Desireable/ISL, so I hard set it to Dyn-desire to match... still very slow CNA.
    The problem was not there before and after restarting the application, it appears to be fine... until I attempt to manage/view/reach the new switch - and then EVERYTHING in CNA goes slow again (hourglass of death) for some period of time.
    Yet, telnet & ping to new switch is always fast, no problems at all. Strictly seems to be a CNA problem...
    Ideas??
    Thanks,
    Al

    Looking at the outline given by u,there may be several reasons for this slow access such as loose connection, improper trunking and so on.Ofcourse, CNA problem can also be one cause.But, if u r sure that it is a CNA problem, why not u try for a new version of CNA?First of all, which version of CNA r u using?is it CNA 1.0 or 2.0 version.If so, try installing or upgrading CNA3.0.
    For detailed info on installing and upgrading to CNA3.0, the following URL will be useful.
    http://www.cisco.com/en/US/products/ps5931/prod_installation_guides_list.html

  • Problem adding a component into a JFrame

    public DVD_VIDEO_CLUB() {
    mainFrame = new JFrame("DVD-VIDEO CLUB");
    mainFrame.setExtendedState(Frame.MAXIMIZED_BOTH);
    aDesktopPane = new JDesktopPane();
    aDesktopPane.setBackground(Color.LIGHT_GRAY);
    aDesktopPane.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
    mainFrame.setContentPane(aDesktopPane);
    mainFrame.getContentPane().add(internalPanels.MainInternalPanel());
    atoolkit = Toolkit.getDefaultToolkit();
    mainFrame.addKeyListener(new MainFrameKeyListener());
    mainFrame.addWindowListener(new FrameListener());
    mainFrame.setIconImage(createFeatures.getImage());
    mainFrame.setSize(atoolkit.getScreenSize());
    mainFrame.setJMenuBar(aMenubar.MakeMenuBar(new ItemActListener()));
    mainFrame.setVisible(true);
    mainFrame.setDefaultCloseOperation(3);
    }//end constructor
    The argument internalPanels.MainInternalPanel() is a class (internalPanels) which have various jpanels
    that i want to display under certain events.
    But i don't know why the command
    mainFrame.getContentPane().add(internalPanels.MainInternalPanel());
    doesn't work? I look into the java tutorial and i have read that in order to add a component you have to
    call the command
    jframe.getContentPane().add(component);
    any help is appreciated!

    my problem isn't how to add internalframes but how to add a jpanel.Did you set the size of the JPanel?
    import java.awt.*;
    import javax.swing.*;
    public class Example {
        public static void main(String[] args) {
            JFrame mainFrame = new JFrame("DVD-VIDEO CLUB");
            mainFrame.setExtendedState(Frame.MAXIMIZED_BOTH);
            JDesktopPane aDesktopPane = new JDesktopPane();
            mainFrame.setContentPane(aDesktopPane);
            JPanel p = new JPanel();
            p.add(new JLabel("here is your panel"));
            p.setLocation(100, 200); //as you like
            p.setSize(p.getPreferredSize()); //this may be what you are missing
            p.setVisible(true);
            mainFrame.getContentPane().add(p);
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            mainFrame.setVisible(true);
    also i have tried not write 3 but JFrame.EXIT_ON_CLOSE but i was getting an error exception continiously.Do you mean a syntax error? That constant was introduced in 1.3 -- what version are you using?

  • Error while adding customize component to palette.

    hi
    I am trying to add customizeJList to my palette in netbaens but its showing ,No java Beans found under selected Nodes.
    public class GenericList extends JScrollPane { private Vector dv = new Vector();
    private Vector v_idvals = new Vector();
    private int width = 0;
    private int maxrows = 0;
    private JFrame frame;
    public Vector flyVector = null;
    public JList myList = new JList();
    /**

    netbeans won't add that to your pallete here is a simple example.
    import javax.swing.JComboBox;
    public class DBCombo extends JComboBox {
        // try this code and it will add to your pallete
        private int ID;
        public DBCombo() {
            ID = 12;
           // don't put any code here or just for Initializing an Object
        public int getID(){
            return ID;
         // your other method here
    }for adding this to the pallete see your other post:
    http://forum.java.sun.com/thread.jspa?threadID=5206790&tstart=0

  • Adding Engine component causes: "Compiler errors occurred when generating a Windows Forms wrapper...​"

    I got this error when I tried to drop a TestStand Engine class onto my main form in VisualStudio.NET.
    Compiler errors occurred when generating a Windows Forms wrapper for ActiveX control 'AxNationalInstruments.TestStand.Interop.API'
    The error message went on to say that it saved the source in ./obj/AxInterop.TS.cs so I added that to the project. When I try to build it, I get this error:
    The designer must create an instance of type 'System.Windows.Forms.AxHost' but it cannot because the type is declared as abstract.
    I am using TestStand 3.0 evaluation, Version 7.1.3088 of Microsoft Development Environment 2003, and .NET Framework 1.1 Version 1.1.4322 SP1.
    Is this aximp.exe problem?
    Can someone suggest how to fix this?
    Thanks,
    Jeff

    TestStand installs pre-built interop wrappers for the TestStand engine and all the TestStand UserInterface controls. You can find them in \API\DotNet\Assemblies\CurrentVersion\.
    However, the best thing to do is usually to add the ApplicationMgr control to your .NET form and then call form.axApplicationMgr1.GetEngine() to get the engine. Doing this automatically adds references to the interop assemblies to your project. You can find this control in the TestStand tab of your .NET toolbox when you have a form active.
    Ideally, you should start with the .NET simple operator interface examples which are in \OperatorInterfaces\NI\Simple\CSharp\ and \OperatorInterfaces\NI\Simple\VB.Net\
    - James

Maybe you are looking for