PRJ41: Calendar Period Method May Cause Crash (148148)



The information in this article applies to:

  • Microsoft Project for Windows 95 4.1
  • Microsoft Project for Windows 95 4.1a

This article was previously published under Q148148

SYMPTOMS

In Microsoft Project, if you use the calendar Period method, you may receive one of the following error messages:
Out of memory or system resources. Run-time error '7': Out of memory.

-or-

The instruction at "0x77f57bfc" referenced memory at "0xaaaaaaab". The memory could not be "read".
If you click OK to the above message, your computer may crash.

CAUSE

You may experience this problem if the Period method parameters are not either entered as strings or converted to strings.

NOTE: Microsoft Project online Help notes that strings should be passed to the Period method.

RESOLUTION

To resolve this problem, use the convert string function with the parameters you supply to the Period method. For example, the following, using the CStr function, works correctly:
Set p = ActiveProject.Calendar.Period(CStr(#1/1/96#, CStr(#1/1/96#))
				
However, the following produces an error:
Set p = ActiveProject.Calendar.Period(#1/1/96#, #1/1/96#)
				

STATUS

Microsoft has confirmed this to be a problem in the versions of Microsoft Project listed above.

Modification Type:MajorLast Reviewed:9/26/2003
Keywords:kbbug kbpending kbusage KB148148