Knowledge Base - Technical Articles


Technical Article   Error:  ArcMap.exe has encountered an error and needs to close. We apologize for the inconvenience

Article ID: 32797
Software:  ArcGIS - ArcEditor 8.3, 9.0, 9.1, 9.2, 9.3, 9.3.1 ArcGIS - ArcInfo 8.3, 9.0, 9.1, 9.2, 9.3, 9.3.1 ArcGIS - ArcView 8.3, 9.0, 9.1, 9.2, 9.3, 9.3.1
Platforms: N/A

Error Message

ArcMap or ArcCatalog randomly crashes and Windows returns one of the error messages shown below:

"ArcMap.exe has encountered an error and needs to close. We apologize for the inconvenience."

"The instruction at 0x000xx00 referenced memory at 0x000000. The memory could not be 'read'. Click OK to terminate the program."

The instructions provided in this article address general solutions that may help avoid the above errors.

Cause

This error can be caused by one or more system conflicts.

 If this error occurs when performing a specific operation, check the Related Information section below for an article that addresses the situation. If the instructions in this article do not resolve the problem, and there is not an article related to your issue, please contact ESRI Support Services.


Solution or Workaround

The following is a list of the most common solutions to this error. Please note that this is a general Windows error that has many causes and many solutions. Contrary to the error message, there is no log file created.

  • Rename the Normal template for the application that generates the error:
    1. Close any ArcCatalog or ArcMap sessions that are running.

    2. Start Windows Explorer. The location of the user profile depends on the operating system:

    On Windows 2000, Windows 2003 Server or Windows XP, browse to: C:\Documents and Settings\<your user name>\Application Data\ESRI

    On Windows Vista, browse to: C:\Users\<your user name>\AppData\Roaming\ESRI

     The Application Data or AppData folder is hidden by default. If this folder is not visible, navigate to Tools > Folder Options > View tab, and select the option to show hidden files and folders.


    3. Open the folder for the component of ArcGIS, ArcCatalog or ArcMap that is generating the error message.

    4. Each component of the software has a template that stores settings and customizations for that part of ArcGIS. These are:

    ArcCatalog: normal.gxt
    ArcMap: normal.mxt, stored in the Templates folder
    ArcToolbox: arctoolbox.dat

    5. Rename the file, for example, OLDNORMAL.GXT. When that component of ArcGIS is started again, a new template is created. This resolves many problems with ArcGIS software.
  • Change the TEMP Environment Variable for Windows:
    Verify the following user variables are set:

    Variable: TMP Value: <drive>:\TEMP
    Variable: TEMP Value: <drive>:\TEMP

    Set the environment variable based on the operating system.
  • Clean out the TEMP directory:
    The original path for the user variables TEMP and TMP depends on the operating system:

    Windows 2000, Windows 2003 Server, and Windows XP: C:\Documents and Settings\<your_user_name>\Local Settings\Temp
    Windows Vista: C:\Users\<your user name>\AppData\Local\Temp

    This directory can become filled with hundreds or thousands of files and folders.

    After resetting TEMP and TMP as described in the previous step and rebooting the computer, go to the original TEMP directory at the path above and delete all of the files and folders. Deleting the files in the new TEMP directory on a regular basis is also recommended to maintain good performance.
  • Verify that a default printer is installed:
    Check that the default printer is a valid, working printer by doing a test print. If the default printer is on a network, be sure there is access to that printer. If no printers are installed, use the following steps to install a dummy default printer. -show me-
    Summary
    Instructions provided describe how to create a high-resolution 'dummy' printer, and set it as the default.

    This procedure is used to test various output problems encountered with ArcGIS Desktop applications. For more information about the interaction of the default printer with ArcMap's export, see the link in the Related Information section.
    Procedure
    Windows XP

    1. Navigate to Start > Control Panel > Printers and Faxes.

    2. Double-click Add printer. Click Next.

    3. Check the first available local printer port, for example: LPT1. Clear Automatic if it is selected. Click Next.

    4. Select Agfa as the manufacturer and AGFA-AccuSet v52.3 as the printer. Click Next.

      If your operating system is Windows Vista or newer, you may not see an entry for the printer listed above. In this case, choose a large format, high resolution printer such as an HP DesignJet. The key is to choose a printer that has a large form size and a high resolution.

    5. Select Not Shared. Click Next.

    6. Select No for the option to print a test page. Click Finish.

    7. Right-click this printer in the Printer Manager window and select Default.


    Windows 7

    1. Click the Start button, and click Devices and Printers.

    2. Click Add a printer.

    3. In the Add printer dialog, click Add a local printer.

    4. Under Choose a printer port, select Use an existing port, and use the first available port (LPT1). Click Next.

    5. Under Install the printer driver, select a large-format, high-resolution printer. Click Next.

    6. Type a name for the printer and click Next.

    7. Under Printer Sharing, select Do not share this printer. Click Next.

    8. Select Set as default printer, and click Finish.


      • Print or save to file with ArcMap
        Instructions provided describe how to print or save to file with ArcMap. Use the 'Print to file' option for printing additional copies of a map, or when there is no immediate access to a printer.
      • How are graphic properties set for exporting, printing or viewing maps?
        This article explains how ArcMap sets the graphic properties of maps when they are viewed on a screen, printed, or exported to PDF or JPEG format. Microsoft’s Graphics Device Interface (GDI) is used for drawing to screen, to printer, and to map...
    1. Remove any customizations, add-on scripts, and third-party extensions for ArcGIS and unregister any custom DLLs that may be present:
      If removing all customizations fixes the problem, then the customizations can be added back in one at a time to determine which one is causing the problem.

       Methods to remove customizations vary depending on the customization type. Contact the vendor or author of the customization to determine the best method.

    2. Maximize the virtual memory for the operating system:
      Verify that a minimum of 500 MB of virtual memory is present. The initial and maximum size can be set as high as twice the computer's RAM, up to 4GB or approximately 4096 MB. -show me-
      Summary
      Instructions provided describe how to adjust the system's virtual memory setting. For the maximum benefit, set this to the maximum available on the Windows operating system. For Windows 2000, XP and Vista, the maximum available is 4096MB (4GB).

       Windows 2003 Server, Windows 2008 Server and Windows 7 can be set higher values than 4GB. See the link in the Related Information section below.

      Procedure
      The drive selected for the virtual memory should have enough free space to store the page file, as defined by the initial and maximum settings. If the amount of free space on the drive is less than the virtual memory settings, the page file size uses all the available drive space. In that case, clear some space on the drive or set the virtual memory to another drive.

      Select an operating system below.

      • Windows XP and Windows 2003 Server:

        1. Click Start > Settings > Control Panel.
        2. Double-click the System icon.
        3. In the System Properties dialog, click the Advanced tab.
        4. Click Settings under Performance.
        5. In the Performance Options dialog, click the Advanced tab, and under Virtual memory, click Change.
        6. In the Virtual Memory dialog box, select a drive to store the paging file.
        7. Set Initial size (MB) and Maximum size. For the initial size, Microsoft recommends using the recommended value in the 'Total paging file size for all drives' box.
        8. Click Set, and click OK twice.
        9. Click Restart Now.

         To have Windows select the best paging file size, click 'System managed size' in the Virtual Memory dialog box.


         Windows 2003 Server, Windows 2008 Server and Windows 7 can be set with a page file size larger than 4GB. See the link in the Related Information section below.

      • Windows 2000:

        1. Click Start > Settings > Control Panel.
        2. Double-click the System icon.
        3. In the System Properties dialog box, click the Advanced tab and click Performance Options.
        4. In the Performance Options dialog, under Virtual memory, click Change.
        5. In the Virtual memory dialog box, select a drive.
        6. Under 'Paging file size for selected drive', type new values for initial and maximum sizes for the disk.
        7. Click Set, click OK twice.
        8. In the Performance Options dialog, click OK.
        9. Click OK in the System Properties dialog, and click Yes in the System Settings Change dialog to restart the computer.

         When the Virtual Memory dialog box is first displayed, it shows the initial and maximum page file sizes stored on each disk.

      • Windows Vista:

        1. Click Start > Control Panel > System.
        2. Under Tasks, click 'Advanced system settings'.
        3. In the System Properties dialog, click the Advanced tab.
        4. Click Settings under Performance.
        5. Click the Advanced tab, and click Change under Virtual Memory.
        6. Select the drive to use to store the paging file.
        7. Set Initial size (MB) and Maximum size. For the initial size, Microsoft recommends using the recommended value in the 'Total paging file size for all drives' box.
        8. Click Set, and click OK twice.
        9. Click Restart Now.
    3. Verify that the operating system and the Microsoft Data Access Components are up-to-date:
      Check the Microsoft Windows Update Web page, linked in the Related Information section below, to check for updates.

      Download and install the latest Microsoft Data Access Components (MDAC) available. Use the MDAC Utility, Component Checker, to determine if this is necessary. Refer to the links in the Related Information section below.
    4. Run a repair of the ArcGIS Desktop software:
      1. Insert the ArcGIS Desktop or ArcView installation CD or DVD, or skip to Step 3 if the software was installed from a network administrative install.
      2. Click Exit.
      3. Navigate to Start > Settings > Control Panel and double-click on Add or Remove Programs.
      4. Highlight ArcGIS Desktop and click the Change button. Select Repair and follow the prompts.

    Related Information


    Created: 3/9/2007
    Last Modified: 6/19/2012

    Article Rating: (1)
    If you would like to post a comment, please login

    Comments

    By Ivanzztop - 10/08/2013 9:08 AM

    The article needs to be updated.

    mmm este problema se soluciona reinstalando el driver de video... sobretodo con las tarjetas Nvidia GForce...

    Rating: