"COleDateTime::GetCurrentTime()" Crashes??
-
Hi, call to "COleDateTime::GetCurrentTime()" get crashed in my MFC aplication. I am using Windows XP, SP2. Development environment is Visual Studio 6 with Platform SDK for XP SP2. Thanx in advance.
-
Hi, call to "COleDateTime::GetCurrentTime()" get crashed in my MFC aplication. I am using Windows XP, SP2. Development environment is Visual Studio 6 with Platform SDK for XP SP2. Thanx in advance.
The following information is always helpful when diagnosing a crash: - The type of exception generated. - The machine code around the faulting instruction. - The call stack to the faulting instruction. - The source code around the faulting instruction.
Steve
-
Hi, call to "COleDateTime::GetCurrentTime()" get crashed in my MFC aplication. I am using Windows XP, SP2. Development environment is Visual Studio 6 with Platform SDK for XP SP2. Thanx in advance.
I second stephen on this. Give some code.
Prasad Notifier using ATL | Operator new[],delete[][^]
-
Hi, call to "COleDateTime::GetCurrentTime()" get crashed in my MFC aplication. I am using Windows XP, SP2. Development environment is Visual Studio 6 with Platform SDK for XP SP2. Thanx in advance.
VCSharp007 wrote:
"COleDateTime::GetCurrentTime()" get crashed in my MFC aplication
COleDateTime::GetCurrentTime()
has an issue since it uses the underlying time_t type for returning time. Now when year2038 jan
happenstime_t
reaches it's limit hence wraps around. Instead ofCOleDateTime::GetCurrentTime()
try usingGetLocalTime
.GetLocalTime
returns local system time based on your timezone. This is could be the problem. :~ More info[^]
Nibu thomas A Developer Programming tips[^] My site[^]
-
Hi, call to "COleDateTime::GetCurrentTime()" get crashed in my MFC aplication. I am using Windows XP, SP2. Development environment is Visual Studio 6 with Platform SDK for XP SP2. Thanx in advance.
Can you be more specific
WhiteSky
-
Hi, call to "COleDateTime::GetCurrentTime()" get crashed in my MFC aplication. I am using Windows XP, SP2. Development environment is Visual Studio 6 with Platform SDK for XP SP2. Thanx in advance.
-
VCSharp007 wrote:
"COleDateTime::GetCurrentTime()" get crashed in my MFC aplication
COleDateTime::GetCurrentTime()
has an issue since it uses the underlying time_t type for returning time. Now when year2038 jan
happenstime_t
reaches it's limit hence wraps around. Instead ofCOleDateTime::GetCurrentTime()
try usingGetLocalTime
.GetLocalTime
returns local system time based on your timezone. This is could be the problem. :~ More info[^]
Nibu thomas A Developer Programming tips[^] My site[^]
Nibu babu thomas wrote:
This is could be the problem.
How, since we are roughly 32 years away?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Nibu babu thomas wrote:
This is could be the problem.
How, since we are roughly 32 years away?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
DavidCrow wrote:
How, since we are roughly 32 years away?
Yeah true. But our client tested our product with year greater than 2038 to see if such issues are handled properly. Hence I thought this could be the problem, since our application crashed when it was tested like this.
Nibu thomas A Developer Programming tips[^] My site[^]
-
VCSharp007 wrote:
"COleDateTime::GetCurrentTime()" get crashed in my MFC aplication
COleDateTime::GetCurrentTime()
has an issue since it uses the underlying time_t type for returning time. Now when year2038 jan
happenstime_t
reaches it's limit hence wraps around. Instead ofCOleDateTime::GetCurrentTime()
try usingGetLocalTime
.GetLocalTime
returns local system time based on your timezone. This is could be the problem. :~ More info[^]
Nibu thomas A Developer Programming tips[^] My site[^]
Nibu babu thomas wrote:
COleDateTime::GetCurrentTime() has an issue since it uses the underlying time_t...
Actually it uses a
DATE
, which is adouble
.CTime
has the year 2038 problem.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb