AnsweredAssumed Answered

COM Exception - intermittent error

Question asked by bbulla on Feb 5, 2015
Latest reply on Feb 10, 2015 by bbulla

Hi,

 

I've created a tool that updates selected features (ie. a Watermain Valve) with the diameter of the pipe that it is attached to, and updates other attributes too.  Depending on the type of selected feature, things will vary.  Anyways, it seems like with one particular feature I sometimes get this error:

 

_COMPlusExceptionCode = -532459699

 

At this line of code:

 

//Update the feature and move to next feature

                            if (updated == true)

                            {

                                fCursor.UpdateFeature(feature);     **this is where the error occurs!!!!

                                updatedFeatures++;

                            }

                            feature = fCursor.NextFeature();

 

The weird thing is that it doesn't happen all the time.  For example, the first time I may get the error, but if I close the error window and then run the tool again (with the same feature selected) then it works.

 

Any ideas??

 

Thanks,

Outcomes