Microsoft KB Archive/227864

= Error Messages Adding .adm File with Long Path in System Policy Editor =

Article ID: 227864

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q227864



SYMPTOMS
When you are using System Policy Editor (Poledit.exe), attempting to add an .adm file with a path length longer than 256 characters results in the following error message and event ID:

Dr. Watson For Windows 2000

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

POLEDIT.EXE Exception access violation (0xc0000005), Address: 0xXXXXXXX

The application event log records the following information:

Event ID: 4097

Source: DrWatson

The application, exe\poledit.dbg, generated an application error. The error occurred on  @. The exception generated was c0000005 at address 0xXXXXXXX.



CAUSE
Poledit.exe uses a global variable named MAX_PATH. Poledit.exe is limited to a 256-character string because of the MAX_PATH variable. When the path is longer than 256 characters, the MAX_PATH value exceeds its limit and overruns its memory allocation, causing the error message.



RESOLUTION
To work around this problem, reduce the length of the path to less than 256 characters.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: spe

Keywords: kberrmsg kbprb KB227864

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.