GP Fault with Calendar Name Greater Than 51 Characters
  
PSS ID Number: Q113135
Article last modified on 09-18-1994
 
3.00 3.00a 4.00
 
WINDOWS
 

--------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Project for Windows, versions 3.0, 3.0a, 4.0
--------------------------------------------------------------------
 
SUMMARY
=======
 
If you manually modify a Microsoft Project MPX file so that a calendar name
contains more than 51 characters, you receive a general protection (GP)
fault when you attempt to edit the calendar within Microsoft Project.
 
STATUS
======
 
Microsoft has confirmed this to be a problem in the Microsoft
products listed at the beginning of this article. We are researching
this problem and will post new information here in the Microsoft
Knowledge Base as it becomes available.
 
WORKAROUND
==========
 
To avoid receiving the GP fault when you edit calendars, avoid creating
calendar names with more than 51 characters.
 
If you open a project file that uses a calendar with a name that
contains greater than 51 characters, to avoid receiving the GP fault,
do either of the following:
 
 - Remove the invalid calendar by saving the project file to the .MPX file
   format.
 
   -or-
 
 - Open the project file that contains the invalid calendar name in the
   application in which you created the name and rename the calendar to a
   name with fewer than 51 characters.
 
MORE INFORMATION
================
 
In Microsoft Project, when you create or rename a calendar, the name
is limited to 51 characters. The GP fault does not occur with
calendars created in Microsoft Project. However, if you use a text
editor, or another application that can edit .MPX files and this
application has no limit on the number of characters you can give a
calendar name, you receive the GP fault when you then open the .MPX
file in Microsoft Project and edit this calendar.
 
Other problems that occur when you use a calendar name with greater
than 51 characters include the following:
 
Microsoft Project version 4.0
-----------------------------
 
Set As Base Calendar:
 
When you choose Summary Info from the File menu, and you select a
calendar name that contains greater than 51 characters from the
Calendar list, when you choose OK, you receive the following error
message:
 
   Project calendar (calendar name) has been deleted; the Standard calendar
   substituted.
 
Delete:
 
When you select the Calendars tab in the Organizer dialog box, and
you select a calendar name that contains greater than 51 characters
and choose Delete, you receive the following error message:
 
   Name not valid
 
Microsoft Project versions 3.0 and 3.0a
---------------------------------------
 
Set As Base Calendar:
 
When you choose Project Info from the Options menu, and you select a
calendar name that contains greater than 51 characters from the
Calendar list, when you choose OK, you receive the following error
message:
 
   Cannot find project calendar (calendar name); Standard calendar
   substituted.
 
Delete:
 
When you choose Base Calendars from the Options menu, and you select
a calendar name that contains greater than 51 characters and choose
Delete, you receive a GP fault.
 
Steps to Reproduce Problem
--------------------------
 
Note that the following steps are for reproducing the problem in
Microsoft Project version 4.0.
 
1. In a new project, choose Save As from the File menu. In the File Name
   box, type "Test" (without the quotation marks). From the Save File As
   Type list, select MPX 4.0 and choose OK.
 
2. Open the file TEST.MPX in Windows Notepad.
 
3. In line number 20, change the name Standard to the following:
 
      aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeff
 
   NOTE: You can use any name that contains greater than 51 characters.
 
4. In Notepad, save and close the file.
 
5. In Microsoft Project version 4.0, choose Open from the File menu.
   From the File Name list, select TEST.MPX and choose OK.
 
6. From the Tools menu, choose Change Working Time. From the For list,
   select aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeff.
 
You receive a GP fault.
 
KBCategory: kbprb
KBSubcategory:
 
Additional reference words: 3.00 3.00a 4.00 gpf
=============================================================================
Copyright Microsoft Corporation 1994.
