Create / Edit Polygons Issue in offline .geodatabase

2546
7
11-11-2014 10:10 PM
ChristosStamatopoulos
New Contributor II

Hi all,

Recently moved to 10.2.4 and now I am unable to add and edit polygons.

It was fine with 10.2.3 but now I get all kind of weird stuff happening, e.g. when adding a polygon the first point is added fine but the next is not and then the GUI kinda does not respond.

When editing if I click on one of the nodes it either crashes (vshost32.exe) or does not respond. Clicking on the circular nodes makes them disappear and then the GUI does not respond.

Anyone has similar issues ?

Note that I only get this behavior only with offline geodatabases. It works fine in other cases

0 Kudos
7 Replies
JuhoVainio
Occasional Contributor

The weird behaviour can be caused by the async code deadlocks and race conditions. Usually they are caused by defining an async void method and awaiting it. Maybe you should check your code for that.

Also see this: Async Best Practices for C# and Visual Basic | TechEd Europe 2014 | Channel 9

0 Kudos
AnttiKajanus1
Regular Contributor II

Could you share a repro application for this that I could have a look?

Cheers,

Antti

0 Kudos
ChristosStamatopoulos
New Contributor II

Its definitely not an async issue but digging a bit deeper I can see that I can get it to work fine in some cases.

The only difference between the .geodatabase that works and one that does not work is the projection where one has a Unit of

LinearUnit[Meters] vs

AngularUnit[Degrees]

0 Kudos
AnttiKajanus1
Regular Contributor II

Could you share the geodatabase that doesn't work for testing?

0 Kudos
ChristosStamatopoulos
New Contributor II

No problem,

Here are both

https://app.box.com/s/076ai4zvpn8vdpdku2k9

https://app.box.com/s/wt744eopuse0fqbxvjhz

The ones that does not work is the GDA 94

0 Kudos
ChristosStamatopoulos
New Contributor II

Also a visual studio solution along with the two files to showcase the error.

https://app.box.com/s/3hqj3nua8c6s8ob2ekdb

0 Kudos
AnttiKajanus1
Regular Contributor II

Set WrapAround to false in your MapView, that seems to be workaround in this case.

WrapAround="False"

I'll see if i can find where the issue comes from but it seems to be related to the WrapAround functionality.

0 Kudos