Re: datetime exception 0xC0000008 JRE 1.4 windows
From: nos (nos_at_nospam.com)
Date: 03/03/04
- Next message: nos: "Re: newbie q - MenuBar inside client-side applets?"
- Previous message: sonali: "got stuck with my first struts example"
- In reply to: Michael Tomlinson: "datetime exception 0xC0000008 JRE 1.4 windows"
- Next in thread: Michael Tomlinson: "Re: datetime exception 0xC0000008 JRE 1.4 windows"
- Reply: Michael Tomlinson: "Re: datetime exception 0xC0000008 JRE 1.4 windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 03 Mar 2004 02:59:49 GMT
New plan, just type in the correct time/date.
Save a day.
"Michael Tomlinson" <mjt@NOSPAM.invetech.com.au> wrote in message
news:404548b8$0$41085$c30e37c6@lon-reader.news.telstra.net...
> I finally resolved this issue and though I would share it here to
hopefully
> prevent anyone else from going through the same pain!
>
> In Australia, daylight savings is supposed to end at 2am on the last
sunday
> of march.
>
> Microsoft seem a little confused about this; on my PC the
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time
> Zones\AUS Eastern Standard Time] key had
>
"TZI"=hex:a8,fd,ff,ff,00,00,00,00,c4,ff,ff,ff,00,00,03,00,00,00,05,00,03,00,
> 00,\
> 00,00,00,00,00,00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00
> which sais 3am, but
> [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation]
> "DaylightStart"=hex:00,00,0a,00,05,00,02,00,00,00,00,00,00,00,00,00
> sais 2am.
>
> Now, some bugs:
> I was calling JAVAs date to string routine, which I found (using
> sysinternals regmon) was first reading the
> [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation] key
> and then examining each of the
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time
> Zones\] keys to find a match.
>
> Now on my workmates PC, it found and matched the "AUS Eastern Standard
Time"
> timezone, because both keys had 3am.
>
> On my PC, they didn't match, so it continued searching through all the
> timezones, didn't find a match, and then did something a little odd; it
> issued a RegCloseKey on a NULL handle.
>
> The MS documentation sais that RegCloseKey will return an error code, but
it
> actually emits a windows structured exception 0xC0000008 - bad handle.
> This exception goes up through the JAVA and kills the program - but only
> under the debugger. 0xC00000008 is ignored when running outside the
> debugger.
>
> Since we have the Java JVM (1.42) running inside a C++ program (using
> LoadLibrary and dynamic binding) I'm guessing that not too many people
have
> encountered this one before, and it's probably unique to Australia too,
> unless there's other timecodes that MS isn't so sure about.... hard for me
> to verify!
>
> Anyway I set my registry so that it was consistent, and the problem
> dissapeared.
> Only took me about a day to figure all this out :-(
>
> Either the MS code shouldn't throw the exception, or the documentation
needs
> to be update; if the exception remains then the JAVA runtime probably
needs
> to be updated to not call RegCloseKey(0) anyway...
>
> Mike
>
> http://www.jsiinc.com/SUBA/tip0300/rh0398.htm
>
> http://www.thrashmaster.com/developer/msbugs/bug1.htm
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/bas
e/regclosekey.asp
>
>
- Next message: nos: "Re: newbie q - MenuBar inside client-side applets?"
- Previous message: sonali: "got stuck with my first struts example"
- In reply to: Michael Tomlinson: "datetime exception 0xC0000008 JRE 1.4 windows"
- Next in thread: Michael Tomlinson: "Re: datetime exception 0xC0000008 JRE 1.4 windows"
- Reply: Michael Tomlinson: "Re: datetime exception 0xC0000008 JRE 1.4 windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|