Select to view content in your preferred language

Application hangs with GraphicsLayer with added Graphics

704
1
12-09-2011 04:50 AM
BjørnarSundsbø
Deactivated User
I am experiencing a rather strange thing here. My application hangs when features are added to a GraphicLayer. We do some "magic" with scaling of symbols as well as hiding them depending on Map.Resolution. Doing a pan/zoom operation makes the application hang for up to 20 seconds. GPU load is at about 28%. CPU hardly notices any load.

The problem is really hard to reproduce, and I don't experience it all the time, and only on one machine. Deactivating any scaling of symbols does not help. I have also been working with the same application on the same machine without any problems for three days, and then suddenly it starts acting up again. Rebooting does not help. If I start the application without adding anything to the map, there is no problem. This is an oddly specific problem, which is quite difficult to explain.

This is a new machine running Windows 7 64-bit. Core 2600 GB RAM, 8 core CPU. Gainward ASUS EAH5450 Series (Powered by AMD) graphics card (will update with more exact information when I receive it).

I suspect this is a graphics card/driver issue. Does anyone have any experience with issues like this, and can help me out? Because of the randomness of the problem, I'm not quite sure where to start troubleshooting.
0 Kudos
1 Reply
BjørnarSundsbø
Deactivated User
It seems the issue is present when running in debug from Visual Studio. When starting it from Explorer, it seems to work as it shold. The debugger is the culprit, somehow. Any input is welcome.

Starting application and navigating the map with nothing except basemap works just fine. Adding any graphic to it makes the debugger hang the application for 10-20 seconds.

Application is compiled as x86 on 64-bit system because of dependencies to ESRI ArcObjects COM (compiling as AnyCPU makes no difference).

I'm updating this thread as I go along, in case the information I provide is helpful to anyone else.
0 Kudos