will875

Library not Registered

Discussion created by will875 on Mar 21, 2011
Latest reply on May 18, 2011 by adityaiiii
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?

Outcomes