Library not Registered

697
2
03-21-2011 01:17 PM
WilliamChristmas
New Contributor
I'm developing a Stand-a-lone query application using in vb .net visual studio 2008.  The application processes about 10000 spatial queries.  The problem I'm having is that approximately 8000 queries in, I am getting an error "Library not Registered".  See below:

System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
   at ESRI.ArcGIS.Geodatabase.ICursor.NextRow()

The code I am running looks something like this:

For i = 0 to x
     Dim cursor as ifeaturecursor = featureclass.search(queryfilter, true)
     Dim feature as ifeature = cursor.nextfeature
     Do until feature is nothing
           [record values of feature here]
           feature = cursor.nextfeature
     Loop
     ReleaseComObject(cursor)
Next

Usually the error will occur when I set the feature cursor to the result of featureclass.search (but only after I have used it many times), but it has also occurred on cursor.nextfeature.  Any ideas what might be going on?
0 Kudos
2 Replies
RichardWatson
Frequent Contributor
Do you have custom feature classes?

If so, then they must be registered.

Find out what feature is causing the problem and make sure that the type library associated with it is registered.
0 Kudos
AdityaTadakaluru
New Contributor
Did you resolve this ? Im getting the same error but with selectfeatures function in IFeatureSelection.
0 Kudos