Select to view content in your preferred language

order of adding of graphics/graphicalOverlays

791
3
03-15-2017 08:44 AM
NorbertThoden
Frequent Contributor

The initial goal is to show a problem of a symbol of the AdvancedSymbology.

Therefore i create a map and add 2 graphicalOverlays.

A DictionaryRenderer is assigned to the second graphicalOverlay.

While i was building the sample i moved two statements, leading to a reproducable crash (Windows and Linux)

  1. approach: add the 2 graphicalOverlays to the model immediately after they are created.
  2. approach: add the 2 graphicalOverlays to the model after the graphics are added the the graphicalOverlays.

This happens using the RenderingMode::Dynamic, not with Static.

I added a complete example (Winzip can process tgz files)

Compile, Link, Run and press "Symbol Failure" -> coredump

(look at define LETS_CRASH)

Can someone please verify?

Thank you very much

Tags (1)
0 Kudos
3 Replies
LucasDanzinger
Esri Frequent Contributor

Hi Norbert,

Is it because you are adding the overlay to the model around line 120 and then again around line 330? If I comment out the lines around 120, it doesn't crash anymore.

- Lucas

0 Kudos
NorbertThoden
Frequent Contributor

Hi Luke,

I add the overlay around line 120 OR around line 330.
I know that they have to be added just once. That is not the Point.

I would like to show an possible crash if someone choses the "wrong" order (like my colleague did)

My Motivation is to help YOU/ESRI in this case...

I already logged a bug at the support, but unfortunately it was not possible to reproduce the issue...

Note: During the beta phase (earlyAdapterForum) is encountered problems with moving of layers in the model.

For that use case the described crash could be relevant (annoyingly the earlyAdapterForum is closed...)

So finally, if you have time and like to avoid a Crash resulting on a simple re-ordering of the graphicalOverlays then try it out.

thx

0 Kudos
NorbertThoden
Frequent Contributor

Hi!

Nobody can check?

May i please Kirsten Strandjord‌ or Michael Greene

That would be very kind of you.

Thanks

0 Kudos