I would like to update some values in a postgis layer. As I got memory write error, I tried to reduce the code as simple as possible :
var sites = GeoSource.OpenFromDatabase(pgCnx, "ccpav_v4_suf_rgf93");
ok = sites.Data.StartEditingShapes(true); => Ok is true
ok = sites.Data.StopEditingTable(true); => crash as follow
What is wrong ?Am I doing correctly ?
When you call StartEditingShapes() you should also call StopEditingShapes() and not mix it with StopEditingTable().
Could you change your code and report back?
That's what I did at the beginning, and as I was not able to save my table modifications I thought I could find problem more easily.
If I do
ok = sites.Data.StartEditingShapes(true);
ok = sites.Data.StopEditingShapes(true,true);
the second "ok" is false
Even if I try
ok = sites.Data.StopEditingShapes(false,false)
ok is still false
I tried with differents table, I get the same crash with this line
var join = sites.Data.Table.IsJoined;