How Do You Disable This Dialog in ArcMap?

**UPDATE**Check the comments for the resolution to this. 9.2 offers a registry setting and, since I’m upgrading, I’ll make use of that. I got pretty far on my API hack though.

My question is twofold: First: Can you stop this dialog from appearing in ArcMap 9.1? Second: If not, does 9.2 give you the option to turn this thing off?

ArcMap Drawing Errors Dialog

I have posted a similar query on the ESRI forums but I thought the blogosphere may be able to weigh in on this. This dialog was introduced at 9.1 as a “feature” but it’s not the most developer-friendly thing in the world. A little background:

I have an application running as a Windows service that is receiving data and stuffing it into ArcSDE. I have another app that’s an ArcMap extension. It refreshed the map on a specified interval and shows the new data as it comes in. There is no syncronization between the two. As you would expect, there are occaionally collisions. The ArcSDE layer may be in load-only mode or something similar. I have a lot of exception-handling in place to trap all of those kinds of things.

This dialog defies all of that. Despite my exception handling, it still pops up and it completely freaks out my users. I would like to turn it off. (I would really like to kill it.) I can’t find a registry setting or any other such option that allows me to do that so I’m stumped. Any help would be appreciated and I promise to sing your praises on this blog if you have the solution.

For background: we are using 9.1 (for a number of reasons). We are starting the upgrade planning to go to 9.2. If 9.2 fixes this, then I’ll stop worrying about it. Any useful info would be very helpful. My next step is some slimy Windows API hack to suppress the damned thing.

Advertisements
This entry was posted in arcgis desktop, arcobjects, arcsde, esri, software development. Bookmark the permalink.

One Response to How Do You Disable This Dialog in ArcMap?

  1. Bill Dollins says:

    I got a reply from Jeremy Wright of ESRI on the user forums today. Here’s the answer:

    “In 9.2 we added a registry value (and also added an easy way to change it in ArcMap Advanced Settings) that suppresses this error dialog.

    It’s in ArcMap Advanced Settings on the DataFrame/TOC tab, at the bottom. The option is called “Suppress the Drawing Errors Window when a layer cannot be drawn”.

    If you’re curious, the corresponding registry value is under HKEY_CURRENT_USER\Software\ESRI\ArcMap\Settings\
    it’s a DWORD value, the name is SuppressDrawingErrors and the value can be set to 0 (not suppressed) or 1 (suppress the errors).

    I’d recommend using ArcMap Advanced Settings instead of manually editing the registry.

    You can find it under \ArcGIS\Utilities.”

Comments are closed.