Unusual Date behavior

Hi everyone:
I've run into a strange issue with the Date and cal
Given a calendar with this state:
Current local time: Jan 2, 2005 04:00 SGT (GMT +8)
Current GMT time: Jan 1, 2005 20:00 GMT
Setting time zone to GMT and then setting time components to zero will actually
roll the time ahead to
Jan 2, 2005 00:00 GMT
I'm thinking that this is a bug because I can't believe that this would be the desired behavior. Taking a local time and setting the time component to zero rolls the date ahead?
This occurs only for time zones east of GMT (to the international date line), and only when GMT < midnight < localTime.
Anybody else have any experience with this?

Read the part of the Calendar documentation that says (something like) that calls to "set" change the internal state but that multiple changes of state aren't made consistent until you call a "get" method. It's under "Field manipulation methods". I think that's what's happening in your example.

Similar Messages

  • Need Help with Unusual Table Behavior

    I've been asked to create a table with unusual behaviors, and I'm a little stuck on how to implement it. The table has cells with dates and blanks in it. The following rules need to work:
    1. If the cell has a date in it, then:
    a. If the user single-clicks on the cell, the cell should be selected. At most, the date could be highlighted and copied, but not changed
    b. If the user double-clicks on the cell, a popup window should appear that allows entry of detailed data about the date. This overrides the default behaviors of entering edit mode on double-click.
    c. If the user presses F2, the cell should enter edit mode and allow the user to edit or remove the date. This prevents the user from accidently changing an existing date, which is supposed to be a rare occurance anyway.
    2. If the cell has no date, then:
    a. If the user single-clicks a cell, double-clicks a cell, or uses the keyboard to navigate to a cell and then begins typing, the cell should enter edit mode and allow the user to enter a date. Once a valid date has been entered, the rules for #1 apply.
    Optional:
    The user can remove a date by clearing the date, but it would be nice if they could select multiple dates for deletion.
    Any ideas would be appreciated. Right now, I'm stuck on how to make the cell editable with a single click depending on whether there is a date already in it.

    Torgil wrote:
    PatrickRThomas wrote:
    Fair enough, but in all the topics I've seen on this site, I almost never see someone respond once they've been given an answer to their question. Why call me out on it and not everyone else?It's not just you. It's becoming more and more common actually. Here's an example from only yesterday (reply 3):
    [http://forums.sun.com/thread.jspa?threadID=5340766]
    Now, you may not like this, but the fact remains that this is how this particular forum works, and if you want help from the regulars here it's in your best interest to stick to the forum rules. Arguing about it almost never helps your case. (Personally I don't care much either way, but that's just me and as you can see from my posting history I'm not here very often so my opinion doesn't matter much.)
    Finally, if you want help on JTables in particular, camickr is your man, so you might want to stay on his good side :-)In that thread you cited, it's fair to point out that the person never responded, but calling him a louse, etc. was uncalled for and unprofessional. If someone had politely said that I should reply to my other threads, I would have apologized and moved on. However, that's not what happened. I was called out in a way intended to humiliate me for 2 instances, not for my failure to reply, but for failing to reply quickly enough. That's what I found to be so ridiculous, and hence, my sarcasm. In the third instance, perhaps I should have responded with a "thank you" to the second response that I received. I'll take my lumps for that one. I also took offense to the suggestion that I only replied to my previous thread because I wanted help on this one. That was just a baseless accusation.
    And for the record, the reason that I'm responding to this topic so quickly is that my email notifications are working this time. I do check my watchlist when I have a question that needs answering, but if I get pulled off onto another task, I may not check it for a while. I can't help that.

  • MAC BOOK AIR Unusual Data Consumption by Mountain Lion OS

    Hi,
    I am using MAC Book Air and my OS is upgarded to Mountain Lion. After upgradation I am facing a problem of data consumption by my MAC all the time from my wifi modem, even without opening any brpwser or Mail. Kindly provide solution for this proble. Please note that all the settings in icloud is off.
    Regards,
    Desikachary

    this never happened to Windows unless you have a virus , So is this normal for a Mac ?
    It certainly can be. Free RAM is wasted RAM. Inactive RAM is as good as free RAM (it can and will be freed immediately when needed), but can be used to speed up your machine by holding cached data. As an example, suppose you quit Mail. Perhaps it was accidental (command-W is right next to command-Q), or perhaps you forgot to look at something you meant to look at, but in any event, you re-open Mail. It should pop back open very quickly, because everything is still cached in RAM.
    So, in other words, don't worry about it. Even if you were having a problem, the source would be elsewhere.

  • Unusual data logs  help want to know what this means thanks alot

    hi all - please help me with this down below is the strangest data history that i have found on spouses phone iphone 4- I am suspicious that is is jailbroke which was asked and denied doing to the phone -- becuase in january in data it said something along the lines as the battery or sim card was removed and ya ya -- anyways I want to know what the **** is it i have never seen such a thing ever and if a phone is jailbroke -- could you easier hide the amount of time you use internet on phone , can you use apps without anybody knowing can you have text chat sites that are hidden -- please help thanks so much SORRY ALL BELOW IN A SEP DISCUSSION IS WHERE I COPIED AND PASTED DATA FRM THE IPHONE WOULD NT LET ME DO IT ON HERE THX

         HI CAN SOMEONE HELP ME W THIS DATA - I NEVER SEEN SUCH A THING AND I ASKED SPOUSE IF IPHONE WAS JAILBROKE THEY SAID NO ............. ALSO WHAT CAN YOU DO W A JAILBROKE PHONE -- CAN YOU HIDE THE AMT OF TIME U R ON THE INTERNET BECAUSE DOES NOT USE THE CELLPHONES PLAN ANYLONGER AND BILL YOU -- CAN YOU HIDE APPS LIKE CHATS ETC FROM ALL OTHERS BESIDE YOUR SELF AND DOES THAT MAKE IT WHERE THERE IS NO HISTORY LEFT ON THE PHONE FROM USING APPS THAT ARE SECRETIVELY USED -- I NEED HELP PLEASE THANKS FOR YOUR TIME
    Incident Identifier: 46F73E54-F26D-4A8A-AECB-ABC150A54778
    CrashReporter Key:   6862972defc3a9ccf2f2656ba688398507946e4b
    Hardware Model:      iPhone3,1
    OS Version:          iPhone OS 6.1.3 (10B329)
    Kernel Version:      Darwin Kernel Version 13.0.0: Wed Feb 13 21:36:52 PST 2013; root:xnu-2107.7.55.2.2~1/RELEASE_ARM_S5L8930X
    Date:                2013-04-01 20:18:27 -0700
    Time since snapshot: 45 ms
    Free pages:        887
    Active pages:      7802
    Inactive pages:    3637
    Throttled pages:   97174
    Purgeable pages:   0
    Wired pages:       18972
    Largest process:   AppStore
    Processes
         Name                    <UUID>                       rpages       recent_max       [reason]          (state)
    MessagesViewServ <941381b881163a9981e0ea26f265ac20>         2902             2902         [vm]         (suspended)
                xpcd <27ba4c754cc3320fb864588368901246>          174              174         [vm]         (daemon) (idle)
            BlueTool <c7e035cd853e3196b1d7643d97324e87>          172              172         [vm]         (daemon) (idle)
               gamed <39f68f690fcf3fde822c757aa30c3c6f>         5931             5931      [highwater]     (daemon) (idle)
             deleted <65a1b98862613ec9b704cb304cec308d>          269              269         [vm]         (daemon) (idle)
            BejBlitz <b19680bc479b33ed8a4a847c0bb1f737>        22323            22323                      (suspended)
                Pool <94c63fc5884b31f896c8d12dc9dd7f55>        15056            15056                      (suspended)
    AppleIDAuthAgent <b37f7a6048a33556a8230d3a759fc4ae>          216              216                      (daemon) (idle)
                geod <d180dd46c4bd3ffbb856b5eb8589a45c>          578              578                      (daemon) (idle)
            installd <117f65beb8cb38da8e0844256c65e402>          417              417                      (daemon) (idle)
       webbookmarksd <41a1bb7133063e13af5d04d5a4bed98b>          515              515                      (daemon) (idle)
    coresymbolicatio <b0c9f54634443ac7a86bade85c7be91c>          139              139                      (daemon) (idle)
               timed <129ae7acc9bc3209a60ac42d49b0d89f>          450              450                      (daemon) (idle)
          Bejeweled2 <55fb9fc60f1734e7972490243afb579f>         7878             7878                      (suspended)
             assetsd <22bfe2389c9a3c3581185a82527b1f6a>         1107             1107                      (daemon) (idle)
    softwareupdatese <e691b2b13ba2312fa8aab199b7343846>          437              437                      (daemon) (idle)
           accountsd <e6ceba0e6e053a3ea02d0a916903cff8>         1040             1040                      (daemon) (idle)
        Music~iphone <e0d24b3d0ea23e658456a7c26429dcd5>         1861             1861                      (suspended)
                 lsd <566268cf717b335e98ddba10ca9315ab>          424              424                      (daemon) (idle)
        itunesstored <44d1bc6b3088390bb5c58d052a71f8f2>         2427             2427                      (daemon) (idle)
    networkd_privile <cd5f76fd767c31428f411ecf03540546>          141              141                      (daemon) (idle)
           MobileSMS <3d75b813ead134998225651ca662356a>         2090             2090                      (background)
          MobileMail <e07ca7a7280736c7bf301451f89d1c02>         1296             1296                      (resume) (continuous)
         MobilePhone <51866c9bc9f93c9d8526e8acf9efc64c>         2268             2268                      (continuous)
                 kbd <f7341c9a161a39acb5bc18ea47d6ebb7>          840              840                      (daemon)
                tccd <2778744d99a530c9a7d5e57a19b60008>          285              285                      (daemon)
            AppStore <6b48000b4ce9366db95e1e0ca1696917>        26780            26780                      (frontmost) (resume)
        mediaserverd <af72564bf8713fb8b16ee64c5ee85568>         1029             1029                      (daemon)
         dataaccessd <abc7f74d5d683d4c9a04e7ade5b1126b>         1637             1637                      (daemon)
             syslogd <da215e2d3de133bf8f52590727b9bdfe>          179              179                      (daemon)
          aosnotifyd <47126a998bb5308f9d5cbe028dc47d60>          707              707                      (daemon)
       iaptransportd <9b3cf56b4db13761bbd8ac2e0ff099be>          309              309                      (daemon)
               wifid <72eda25ccdd737a79d6cd172e9bf99a5>          522              522                      (daemon)
           locationd <137100f254373daeb894f665c413f8b0>         1394             1394                      (daemon)
         SpringBoard <bd1d77d154ef3dffbb53d89337c8a08f>         7912             7912                    
          backboardd <e1dc74434e0e3938b17ff0f7ad85d138>        10430            10430                      (daemon)
             imagent <2b64c6111aa63b179a15afd6a76a6696>          625              625                      (daemon)
        mediaremoted <ecae0f5d9a023c45ab885f2e02db6138>          333              333                      (daemon)
            recentsd <3e01ce59923d3b0381c36d62682b58b8>          673              673                      (daemon)
           absinthed <b5e167e1b2dc3bf9b5f704afb30aed5f>          156              156                      (daemon)
    filecoordination <28ca39773e933ed2aa92c117c661d056>          238              238                      (daemon)
            SCHelper <4c6b59d5d6643784ba776dfb7e336199>          176              176                      (daemon)
           distnoted <699b8253736233b29180419f139e8c01>          190              190                      (daemon)
                apsd <5be27dc5ea5234319bc4b47380e42174>          464              464                      (daemon)
            networkd <49064febbe553338bd98051399022da4>          272              272                      (daemon)
          aggregated <c5a375854c3c31d59548ab53ea86d194>          130              130                      (daemon)
           fseventsd <3ea853cb95de3aa48972aa42637af69a>          447              447                      (daemon)
            BTServer <af0150d5085e326598edff072a23d146>          524              524                      (daemon)
           securityd <eeb8bd36f685306db25c302d7f3e18b4>          319              319                      (daemon)
             configd <b6a4d70640b63e8f82e0e9f3d6ee2bb9>          561              561                      (daemon)
           lockdownd <a123aa04ddf83a5fae8e5bc08f0b5771>          268              268                      (daemon)
       fairplayd.N90 <178af330594b392eab2c7b4499001e75>          193              193                      (daemon)
              powerd <63673a83ac9c3cf98fdc75df8ba70fd0>          231              231                      (daemon)
       mDNSResponder <1e651badfb7033a68a73a667ec480a08>          361              361                      (daemon)
      UserEventAgent <7ee3410c25e4372d84e93318fe42696b>          613              613                      (daemon)
    CommCenterClassi <19c784a3f93a35208de01bd47343facc>          978              978                      (daemon)
             notifyd <67a17b0c297e3785a9e09b8e72f3636a>          216              216                      (daemon)
    **End**
    Sent from my iPhone

  • How to set the default date behavior

    Hi,
    I am using type date in inputfield.In F4 help i am getting thecalender.Now my calender is behaving based on the SAP user date settings.How can i override the user setting date to my F4 calender.Is there any options to specify the date format as mm/dd/yyyy to calender attributes.
      Regards
      USman

    USman,
        Have you tried converting the date to your mm/dd/yyyy format before it is
    sent back to the screen?
    HTML:
    <htmlb:inputField id       = "startDate"
                type           = "date"
                required       = "false"
                size           = "7"
                maxlength      = "10"
                firstDayOfWeek = "0"
                showHelp       = "X"
                value          = "<%= model-sdate %>" />
    DO_HANDLE_EVENT:
    inputfield ?= CL_HTMLB_MANAGER=>GET_DATA(
            request = runtime->server->request
            name    = 'inputfield'
            id      = 'startDate' ).
        IF inputfield->value IS NOT INITIAL.
          call method model->convert_to_sap_date
            EXPORTING
              in_date  = inputfield->value
            IMPORTING
              out_date = model->sdate.
            IF model->sdate IS INITIAL.
               me->messages->add_message(
                   condition = 'start'
                   message   = 'Start Date is invalid'
                   severity  = me->messages->CO_SEVERITY_ERROR ).
            ENDIF.
        ELSE.
          me->messages->add_message(
               condition = 'start'
               message   = 'Start Date is required'
               severity  = me->messages->CO_SEVERITY_ERROR ).
        ENDIF.
    method CONVERT_TO_SAP_DATE .
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
        EXPORTING
          DATE_EXTERNAL            = in_date
        IMPORTING
          DATE_INTERNAL            = out_date
        EXCEPTIONS
          DATE_EXTERNAL_IS_INVALID = 1
          OTHERS                   = 2.
    endmethod.

  • Please Help - Highly Unusual AddressBook Behavior

    I'm having a really strange problem with Apple's address book that I was hoping somebody could give me a hand with.
    For some reason, every time I open the address book app, no application window opens, though I do see the 'address book' app menu appear in the finder's menu bar. The only way I can get the address book application to appear is by going to the 'Window' menu and choosing the menu option 'Address Book'.
    Doing so does cause the app's main window to appear, however the problem that occurs at this point is that it doesn't allow me to click anything on the window (meaning I cannot select any of my contacts because clicking doesn't highlight them or do anything).
    In tinkering with it a bit, I've discovered that the only way I can actually select anything (and thereby even use the address book) is do the following:
    -- Choose 'address book' from the 'window' menu, wait for the un-clickable window to appear, then drag the lower right-hand corner of the window to resize the apps main window... Doing so causes the address book window to appear all white (as if it has frozen and is about to force quit itself ~ +though it's not frozen+);
    -- Then I press Cmd+W to close the white window;
    -- Finally, I then if I go to the 'window' menu one more time and choose 'address book', it hides the white address book window from view, and selecting it a second time immediately afterwards, brings the address book window to the front again and I can now click on it and use it normally...
    As I stated in my post I realize that this is a highly unusual phenomenon and I really don't expect anyone here have an answer for what the heck is going on!
    I have done the following troubleshooting steps to try to fix the issue myself, and nothing has worked:
    -- I've trashed the address book preference file
    -- I've temporarily disabled MobileMe & Google Contacts Syncing (which are both normally enabled)
    -- I've used Disk Utility repair permissions
    -- I've used Cocktail to run a battery of maintanence techniques (such as emptying caches, running daily weekly and monthly cron scripts, cycling logs, etc...)
    -- I have of course restarted several times,
    -- And I've tried restoring an old exported 'Address Book Archive' file
    Needless to say, nothing has fixed my problem!!
    I would be beyond grateful if anyone could help me out with this issue, as I've run out of options here...
    Any suggestions would be greatly appreciated... thanks for your help!

    Create a new account, name it "test" and see how your AddressBook works in that User acct? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
    Open System Preferences >> Accounts >> "+" make it an admin account.
    If the problem is present in the test account also, then it is systemwide. In this case try repairing this with the 10.5.5 Combo Update This is a fuller install, as opposed to an incremental "delta" update so it should overwrite any files that are damaged or missing. It does not matter if you have applied it before.
    Remember to Verify Disk before update and repair permissions after update from /Applications/Utilities/Disk Utility.
    If the problem does not appear in the test account try starting in "Safe Mode" (It will take a bit more time to startup because it runs a directory check first).
    If that works go to System Preferences >> Accounts >> Login Items and remove them. Boot normally and test. If there are still problems, go to ~(yourHome)/Library/Contextual Menu Items and move whatever is there to the desktop. Then do the same with /Library/Contextual Menu Items. Lastly, try moving /Users/Home)/Library/Fonts to your desktop and restarting.
    Log out/in or restart, if that sorts it start putting items back one at a time until you find the culprit.
    Let us know.
    -mj

  • Unusual iCal Behavior - Duplicates and Crashes

    Over the past week or so, my iCal and MobileMe setup hasn't been working properly. First, my iPhone keeps getting duplicate calendar entries when there is only one unique appointment in iCal. Second, iCal has been responding really slowly and crashing a lot when I try to do simple things like advance to the next week or move an appointment. The only significant change in my system since the problem began was that I installed anti-virus software a few days ago. After uninstalling it, there appears to be no change in iCal's erratic behavior. Perhaps this is MobileMe-related? Any help? Thanks.

    Found the cause of this, but not the solution to stop it while troubleshooting another iPhone issue I have. Here's what I posted in that thread (contacts breeding like cockroaches):
    If anyone has a way to stop this, other than not using the repeat/remind me later feature of the calendar, please chime in.
    Okay, I just ran a test on my recurring events, and this is definitely related to using the remind me later feature. If you select remind me later instead of closing an alarmed event, then iSync places a new copy of the event on the iPhone. An interesting angle to that is the new event has an Alert time 8 hours (I'm Pacific Time) later than the Desktop's time.
    I'll acknowledge this could be a design limitation of the iPhone's calendar, but it seems more like a bug.
    You can duplicate this issue easily by doing the following:
    On your computer, create a new recurring event with an alarm time a minute or two in the future, far enough to give you time to sync your iPhone.
    Sync your iPhone and make sure the event copied over.
    Let the alarm go off on your desktop machine, and then select the repeat in 5 mins option.
    Sync your iPhone again.
    Now check your iPhone, there will be a new non-recurring copy of the event with an alert time offset to GMT time on the iPhone.
    I'm going to send this as a bug report to Apple and hope they see it as such. The iPhone's calendar is a crowded enough view to not need duplicates of events showing up on it.
    That answers the calendar portion of this question, but the address book issue is uncertain. This calendar question was asked some time ago, so I'll copy this info into that old unanswered question in case someone else misses this one. Apologies to anyone who might end up reading it twice.

  • Unusual Globals Behavior

    <p>Hi there,</p><p> </p><p>I have in my accounts dimension a set of global parameters:</p><p> </p><p>Number of Days</p><p>FX Rate</p><p>Constant 1</p><p>Constant 2</p><p> </p><p>All have been set to store data. Accounts is my only densedimension.</p><p> </p><p>When I lock/send data to populate these constants for eachmonth, all of them correctly store data, except "Number ofDays". When I retrieve, it resets to #MISSING.</p><p> </p><p>If I add new siblings below Constant 1, Constant 2, theyproperly store data . If I add siblings above "Number ofDays", they have the same storage problem, and "Number ofDays" begins to store properly. Why is this happening, and whyonly on the first member?</p><p> </p><p>Thanks</p>

    <p>Thanks , that seems to be the fix ... but I'm a littleconfused about <b>why</b> <b>implied share</b> would cause thebehavior.</p><p> </p><p>It seems to me like an implied share would only mess up theparent and not the children - and I'm not worried about what valueis shown in the parent in this case. Does Essbase work backwards inthis scenario, and take the "label only" #Missing at theparent, and implicitly share it with the child? That seems to bethe opposite of what I had learned about consolidation order. Plus,this non-working scenario actually works properly for me in anotherversion of this cube with dense accounts and time.</p><p> </p><p>(Not Working Scenario)</p><p>Global Inputs (~) Label Only</p><p>    Days (~) <--------- Storing #Missingafter a lock-send</p><p>    FX Rate (~)<------------- stores thecorrect FX Rate</p><p>    Other (~) <-------------- Stores thecorrect other parameter</p><p> </p><p>(Working Scenario)</p><p>Global Inputs (~) Label Only</p><p>    Days (+)</p><p>    FX Rate (+)</p><p>    Other (+)</p>

  • Calendar, Data behavior on Vista

    I am fairly new to Java, so please excuse me if this happens to be a very basic question.
    I'm working with a simple console app to just print the local date, time, timezone and locale. It works perfectly on Windows XP - the time and zone settings match with the current zone settings on the machine. However on Vista, the time is always returned in GMT and the time zone also displays "Greenwich Mean Time" regardless of the zone settings on the machine. The code and JDK versions on both systems are identical.
    Is there any other way to get the local time which would be based on the time zone settings.
    Thanks

    The code and JDK versions on both systems are identical. What version of Java are you using ?
    http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=700a3551bbaeceffffffffbb5219c619b50f9?bug_id=6440819

  • Safari's Unusual Download Behavior

    Morning -
    I've been a long time Chrome user, but after some performance and slowness issues, I've come back to Safari and have really been enjoying the quickness of the browser.
    The only thing causing me problems is the way Safari downloads files. In Chrome, if I open a page linked to a PDF, an MP3 or something similar, it automatically downloads the file to my Downloads folder, and even shows a small tab in the bottom of thr browser indicating which files have been downloaded (That might be an extension...)
    On the other hand, when I open a tab or a link to a download file in Safari, Safari just loads a blank page, and nothing downloads. When I try to save the page by going to the File Menu and selecting Save, the only option is to save it as a Webarchive. Do I have some weird setting that's making it unable to download like a "normal" browser?

    From the Safari menu bar, select
    Help ▹ Installed Plug-ins
    Besides the following, what plugins are listed?
    iPhotoPhotocast
    Java
    QuickTime
    Shockwave Flash
    WebKit built-in PDF (absent in OS X 10.9 and later)

  • Unusual isight behavior

    Recently, I have been experiencing problems with my built in isight camera. All works fine after a recent start up. Then after 345 min- a couple of hours, I get the camera in use by another application error and my video icon disappears in ichat and I cannot use Photobooth. Apple has replaced the camera, done an archive and install of Snow Leopard and replaced the motherboard. Still stuck at the same place. I have tried in a test account and it takes longer to fail there. I have unplugged all USB devices.k
    We are really lost and confused.
    I am a simple user with very few third party applications.
    Any help or suggestions would be wonderful.
    Debbie

    singerdf wrote:
    Recently, I have been experiencing problems with my built in isight camera. All works fine after a recent start up. Then after 345 min- a couple of hours, I get the camera in use by another application error and my video icon disappears in ichat and I cannot use Photobooth. Apple has replaced the camera, done an archive and install of Snow Leopard and replaced the motherboard. Still stuck at the same place.
    Unless one or more of your third-party add-ons is interfering, it seems to me that Apple may need to fix your problem again.
    Try restarting the Mac next time the problem appears. If the problems persist after restarting, try all relevant suggestions from:
      http://support.apple.com/kb/HT2090
    If your iSight problem still occurs in more than one  app and more than one user account, the reset suggested there often restores proper function of inbuilt iSight.
    However, if your built-in iSight still does not work after carefully following all the suggestions in the "How to Troubleshoot iSight" article, and especially if iSight does not show as a USB hardware device in your Mac's System Profiler utility, yours is most likely a hardware problem. In that case, contact Apple or an Apple-Authorized Service Provider for service.
    I have tried in a test account and it takes longer to fail there. I have unplugged all USB devices.k
    I do not understand this.
    Do you mean that you can somehow make it work again after it has failed without taking it to an Apple Service Technician?
    If so, does the problem reappear under exactly the same circumstances as before you managed to get your iSight working again?
    We are really lost and confused.
    I am a simple user with very few third party applications.
    *If onset of your problem occurs while you are using some Flash-based video web functions*, user bcus28's suggestions about your Flash Plugin merits consideration.
    For Adobe's Flash Player help, see http://www.adobe.com/support/flashplayer/
    If you have not done so, also check to be sure you are using the latest Flash Player that is compatible with your Mac OS X (10.6.7):
      http://get.adobe.com/flashplayer/otherversions/
    Any help or suggestions would be wonderful.
    Debbie
    We will watch for your status update and may be able to offer other suggestions based on the details in your response.
    EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.7); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.7)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.3.1

  • Unusual lParam behavior upon creating a thread

    Hello,
    I need some help passing a struct as a parameter to my thread.
    I have a few variables in a structure and what happens is that only 2 specific values change their values upon calling CreateThread(...). I will post the code here to simplify the explanation:
    struct ThreadParams {
    HINSTANCE hInstance; // duh
    HANDLE *hevent; // pointer to an array of 3 event handles
    HWND *hwnd; // pointer to an array of 2 valid window handles
    And the piece of code where the error occurs:
    tParams.hInstance = hInstance; // tParams is a ThreadParams struct
    tParams.hwnd = hwnd; // In the main(calling) thread I have a pointer to a 2 dimensional array(to avoid confusion: it points to the first HWND element) and I just copy the address to the pointer inside the struct.
    tParams.hevent = hevent;
    htrd[0] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)render_thread_proc, (LPVOID)&tParams, 0, NULL);
    htrd[1] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)compute_thread_proc, (LPVOID)&tParams, 0, NULL);
    So to the problem:
    Using the debugger, upon executing this line:
    htrd[0] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)render_thread_proc, (LPVOID)&tParams, 0, NULL);
    the value of the object(s) pointed to by hwnd change. The address is correct in the child and main thread, it's only their values. And as far as I can tell, nothing else happens, even in the child thread no statement has been executed. But in any case, here
    is the beginning of the child thread proc:
    ThreadParams p = *(ThreadParams*)tParams;
    LARGE_INTEGER currentTime;
    LARGE_INTEGER prevDrawTime;
    LARGE_INTEGER frequency;
    LARGE_INTEGER frameTime;
    prevDrawTime.QuadPart = 0;
    QueryPerformanceFrequency(&frequency);
    frameTime.QuadPart = (frequency.QuadPart * DRAW_TIME) / 1000000;
    WaitForMultipleObjects(2, &(p.hevent[1]), TRUE, INFINITE);
    I hope someone can help me with this little problem and I thank you in advance.

    I can show it if needed, but the declaration of tParams is at the very beginning of the WinMain, so it should be okay, I also tried declaring it as a global variable,  but there was no change.
    That's a good point, I am using the same values for both threads, in the end I will probably declare a global variable, but I am intrigued by this problem since tParams does not go out of scope and all the other values are correct and remain the same in
    both the child and main thread, it's only the window handles that change.
    Here is the complete WinMain and render_thread_proc, keep in mind that there is another thread being created immediately after the render thread, if I comment out the first thread's creation, the second one has the same effect on the window handles.
    WinMain
    int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
    ThreadParams tParams;
    MSG msg;
    bool shouldClose = false;
    HANDLE htrd[] = { NULL, NULL }, hevent[] = { NULL, NULL, NULL };
    LMB = false, SHIFT = false, constant = complex();
    hevent[0] = CreateEvent(NULL, TRUE, FALSE, NULL);
    hevent[1] = CreateEvent(NULL, FALSE, FALSE, NULL);
    hevent[2] = CreateEvent(NULL, FALSE, FALSE, NULL);
    HWND *hwnd = create_windows(hInstance, hevent);
    if (hwnd[0] == NULL) {
    PostMessage(hwnd[0], WM_ERROR, NULL, 0x1001);
    shouldClose = true;
    if (hwnd[1] == NULL) {
    PostMessage(hwnd[0], WM_ERROR, NULL, 0x1002);
    if (shouldClose) return 0x1003;
    else shouldClose = true;
    if(!shouldClose) {
    tParams.hInstance = hInstance;
    tParams.hwnd = hwnd;
    tParams.hevent = hevent;
    htrd[0] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)render_thread_proc, (LPVOID)&tParams, 0, NULL);
    htrd[1] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)compute_thread_proc, (LPVOID)&tParams, 0, NULL);
    shouldClose = false;
    while (!shouldClose)
    PeekMessage(&msg, NULL, NULL, NULL, PM_REMOVE);
    if (msg.message == WM_QUIT) {
    shouldClose = true;
    else {
    TranslateMessage(&msg);
    DispatchMessage(&msg);
    SetEvent(hevent[0]);
    if (msg.wParam == 0x4000) SetEvent(hevent[2]);
    WaitForMultipleObjects(2, htrd, TRUE, INFINITE);
    DestroyWindow(hwnd[0]);
    DestroyWindow(hwnd[1]);
    CloseHandle(hevent[0]);
    CloseHandle(hevent[1]);
    CloseHandle(hevent[2]);
    CloseHandle(htrd[0]);
    CloseHandle(htrd[1]);
    return (int)msg.wParam;
    render_thread_proc:
    int render_thread_proc(LPVOID tParams) {
    ThreadParams p = *(ThreadParams*)tParams;
    LARGE_INTEGER currentTime;
    LARGE_INTEGER prevDrawTime;
    LARGE_INTEGER frequency;
    LARGE_INTEGER frameTime;
    prevDrawTime.QuadPart = 0;
    QueryPerformanceFrequency(&frequency);
    frameTime.QuadPart = (frequency.QuadPart * DRAW_TIME) / 1000000;
    WaitForMultipleObjects(2, &(p.hevent[1]), TRUE, INFINITE);
    if (glContext.create_context(p.hwnd[0], p.hInstance)) {
    SendMessage(p.hwnd[0], WM_ERROR, NULL, glContext.error);
    return glContext.error;
    if (glContext.setup(read_file("tex_vs.glsl"), read_file("tex_fs.glsl"))) {
    glContext.destroy(); // Could cause an additional error, look into it.
    SendMessage(p.hwnd[0], WM_ERROR, NULL, glContext.error);
    return glContext.error;
    SetEvent(p.hevent[0]);
    WaitForSingleObject(p.hevent[2], INFINITE);
    SetEvent(p.hevent[1]);
    while (WaitForSingleObject(p.hevent, 0) == WAIT_TIMEOUT) {
    QueryPerformanceCounter(&currentTime);
    if (currentTime.QuadPart - prevDrawTime.QuadPart > frameTime.QuadPart) {
    prevDrawTime.QuadPart = currentTime.QuadPart;
    glContext.render_scene();
    glContext.destroy();
    return 0;

  • Need help trying to figure out unusual browser behavior

    Every couple of days the browser on my balckberry 9300 refuses to connect to the internet. When I type in an adress the loading bar will appear at the bottom but then it will just stop and the browser will go back to the start page.Facebool and bbm still work properly. I can solve the problem via a battery pull but the problem returns again after 2 days or so

    Spotify has 2 different account types. You can see the difference between the two at the bottom of the homepage: http://spotify.com
    1: Each Spotify account can only play on one device at a time. You can have the account logged into as many devices as you want, but you can only play on one device at a time.
    2: With Spotify family, there are several Spotify accounts under one plan. Each account is able to play on one device at a time.
    Check out the family help guide here:
    https://support.spotify.com/learn-more/guides/#!/article/spotify-family
    Also check out this thread for information:
    https://community.spotify.com/t5/Help-Accounts-and-Subscriptions/Spotify-Family-Q-amp-A/td-p/988520
    3: Yes, as stated above
    4: You wouldn't necessarily have to have speakers hooked up to the laptop. If the laptop has speakers or you input headphones, that should work. Spotify doesn't work with MP3 players/iPods. To use Spotify you have to have the Spotify app.
    You can find a list of compatible devices here:
    https://support.spotify.com/learn-more/guides/#!/article/spotify-system-requirements
    7: Yes you can search Spotify and add any song you want to a playlist. And you can also make lots of playlists. Each playlist has a limit of 10,000 songs. The 3,333 limit you saw is for the offline limit on premium accounts. Up to 3,333 songs can be downloaded for offline listening.
    Hopefully this information helps. The family plan can have up to 5 accounts. It might end up being too expensive for what you need. The free plan has ads, but it still might be worth looking into.
     

  • Unusual keyboard behavior in landscape.

    when in landscape, my cursor always moves back to the previous letter, with each keystroke. to demonstrate,
    edomepacsdnalnIyllamrongnIpytwonmaI
    Wtf is that?
    Samsung galaxy sii
    firefox beta 18.0 android

    This will be fixed in Firefox 19. If you are willing to try a pre-release build you can install http://www.mozilla.org/en-US/mobile/aurora/

  • Unusual Battery behavior: Possibly Obsolete??

    I have an old version PalmOne LifeDrive (TM) with a 1660mAh battery.
    1) can I replace the battery with the new standard 1850mAh without damaging my device?
    2)The battery has been charging with power rating jumping to 55% dropping to 7% etc... while charging. Is this a battery issue or is my palm going bad? I read somewhere about soft reset and did that but the problem persisted. Before I did this I have charged the battery for hours but it was dead in the field.
    Post relates to: LifeDrive

    1. You can replace the battery as long as it states it is for the lifedrive. It should not damage the device as long as it is a compatible replacement.
    2. the charging issue could be related to 3 things. The battery, AC charger or the charging circuit in the handheld.
    I would replace each item separately to see if it makes a difference. Start with the AC charger then the battery and last repair the lifedrive.
    It has to be one of the 3 that is causing the issue.
    For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
    http://kb.palm.com/wps/portal/kb/na/lifedrive/lifedrive/unlocked/home/page_en.html
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.

Maybe you are looking for