Quote Originally Posted by 0xC0000005 View Post
You are not understanding the suggestion to debug it. You need to step into the MFC source code and determine exactly where the call is failing. MFC uses various time-related functions (time(), GetLocalTime(), GetSystemTime(), GetTimeZoneInformation(), etc.) and somewhere in that source code you should be able to determine the point of failure and why it is happening.
While debugging I noticed, right after initialization..

Code:
COleDateTime dtInstalled = COleDateTime::GetCurrentTime();
It shows the value of m_status

Code:
dtInstalled = {m_dt=40203.667685185188 m_status=invalid }
So this invalid value later in the code while making this kind of comparision

Code:
if(dtNow - dtInstalled > COleDateTimeSpan(120, 0, 0, 0))
	return 0;
Breaks the code thus causing debug assertion failure