I am running with a cursor on a polyline feature class.
I buffer each polylinr using GeometryEngine.Instance.Buffer
Once in a while I get error 80004004 - The operation has been canceled.
I think it is mostley with long lines.
Anybody have any idea why?
Thanks
Once in a while? What version of the SDK are you using?
2.8
Yes, the software gets lines from some outside source as XML. Write the line into polyline FC and write the buffer to different FC. I could not really found anything unusual with the polylines that fail the buffer.
Checking their properties in dubger show that most of them are longer then 1 degree (the file is geographic)
Can you share some sample data that showed the error? When it fails does it fail on the same feature?
I am working on it.
We will put the buffer command into try exception that will make the program run on all lines.
Then we will compare the buffer layer with the line layer and find the lines that was not buffered.
We will try the Buffer GP tool on the line layer with the same distance.
I hope to identify the lines that fail.
It will take a few days...
Thanks
Results are very strange.
I just added exception on the buffer that will write the error and will continue running.
All the buffers was created for all the lines even an exception did happened.
Can anyone explain it? It looks like there was some dummy buffer command that fail but all "real" buffers was created.