I wanted to fill a string with "isValidReason" when encountering an invalid feature and it seems thas isvalidreason property is not returned even if it is set. I can see it in the debug but I get always empty string I tried with toString or not same result.
Each call of Shape.get_IsValidReason in MapWinGIS clears the value (I don't see particular reason to do it apart from sparing the memory). Still the value should be retrieved fine unless you previewed / cleared it in VS before the code was executed.
It's a bit strange, I noticed that VS displays results in tooltip if I look immediately to Isvalidereason but if I come back a second time with the mouse I get an empty string value.As I'm in a loop reading spatialite or shp could it be possible that isvalidreason be cleared by a mapwingis thread when MW5 is stopped in debug ?
Anyway, I replaced the array with a string and it works. I don't understand exactly what happened. Will let you know more precisely if I find something.
Because the reporter has a work around I close this issue and mark it as "Won't fix"
If needed we can reopen this issue later again.