iaminsu12

HRESULT E_FAIL has been returned from a call to a COM component.

Discussion created by iaminsu12 on Jul 7, 2012
Latest reply on Jul 9, 2012 by Hornbydd
Hello,

I suffer from error  HRESULT E_FAIL has been returned from a call to a COM component in .Net.

I developed code that work through large dataset iteratively. It repeats almost same function for each iteration.

But in the middle of iteration, I meet  HRESULT E_FAIL has been returned from a call to a COM component.

The point of error looks random.

Sometimes it crashes here, next time in there.

It crashes at such as

                    fc2Poly.in_features = inBoundary + ";" + pairline;
                    fc2Poly.out_feature_class = "polyMerged";
                    gp.Execute(fc2Poly, null);

or


fcOuterBarriers = gpUtils.OpenFeatureClassFromString("polyMerged_erased");




Error occurs at data open or writing, so I think it could be problem with GDB that I use for process.

Each iteration, I make several temporary featureclass files at GDB, and overwrite those in next iteration.

Is it possible overwriting repeatedly cause problem of GDB?



Please help me.



Thnks.


Insu

Outcomes