PRJ98: Crash When Running Macro to Access List Properties

ID: Q191403

The information in this article applies to:

SYMPTOMS

In Microsoft Project 98, when you run a Microsoft Visual Basic for Applications macro that accesses one of the List properties, you may receive one of the following error messages:

In Windows 95

   This program has performed an illegal operation
   and will be shut down.

   If the problem persists, contact the program vendor.

When you click Details, you receive the following message:

   WINPROJ caused an invalid page fault in module WINPROJ.EXE at <address>

In Windows NT

   An application error has occurred
   and an application error log is being generated.

   WINPROJ.EXE
   Exception: access violation <number>, Address: <address>.

CAUSE

This problem occurs when the summed total length of all names returned by the property exceeds approximately 32,000 characters.

WORKAROUND

Shorten the names in the collection. For example, if all of your project's filter names are about 30 characters long, make the name of each filter shorter.

STATUS

Microsoft has confirmed this to be a problem in the versions of Microsoft Project listed at the beginning of this article.

MORE INFORMATION

The List properties return the names of views, tables and filters. The property names are:

   ReportList
   ResourceFilterList
   ResourceTableList
   ResourceViewList
   TaskFilterList
   TaskTableList
   TaskViewList
   ViewList

Additional query words:
Keywords          : kberrmsg kbdta projwin 
Version           : WINDOWS:98
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbpending

Last Reviewed: August 16, 1998