FIX: Visual C++ gives a GP fault if the system date is past January 18, 2038 (125494)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Windows Media Player 7
- Microsoft Windows Media Player 7.1
This article was previously published under Q125494 SYMPTOMS
When the system clock is set to any date and time after January 18, 2038
at 19:14:07, loading the Microsoft Visual C++ development environment fails with an
application error or a general protection (GP) fault, and execution
terminates.
CAUSE
The C Run-time (CRT) has a limitation with the time/date functions. Time
is measured in seconds from January 1, 1970. This value is a 32-bit signed
integer. Therefore, this value has a maximum date of Jan 18, 2038 19:14:07 or 2^31
seconds (2,147,483,648 seconds) from Jan 1, 1970 00:00:00. Because the
development environment depends on time/date routines from the CRT,
the time functions will fail and cause the error.
RESOLUTION
Make sure that the system date is set correctly before January 18, 2038.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
This bug was corrected in Microsoft Visual C++, version 6.0.
Modification Type: | Major | Last Reviewed: | 5/2/2005 |
---|
Keywords: | kbbug kbenv kbfix kbVC600fix KB125494 |
---|
|