After adding the WorldMapKit into my application, I get this error in the Garbage Collector Finalizer thread when I close the program:
Note that I have assigned projections to all feature sources generated by the RenderMap class, in order to make the maps work with our other data. Do I need to explicitly remove those projections before I exit the program?
System.Reflection.TargetInvocationException was unhandled
Message="Exception has been thrown by the target of an invocation."
Source="mscorlib"
StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at ThinkGeo.MapSuite.Core.Proj4Projection.xebc36fa7da52d8d7(IntPtr x4fa9e7eeb5ea7ffa)
at ThinkGeo.MapSuite.Core.Proj4Projection.CloseCore()
at ThinkGeo.MapSuite.Core.Projection.Close()
at ThinkGeo.MapSuite.Core.Proj4Projection.x0f09c3fcb8980efd(Boolean x8d14c6905e5eb7a3)
at ThinkGeo.MapSuite.Core.Proj4Projection.Finalize()
InnerException: System.AccessViolationException
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="Proj4ExtensionX86"
StackTrace:
at Proj4Extension.Proj4Extensionx86.pj_free(IntPtr projPJ)
at Proj4Extension.Proj4Extensionx86.Free(IntPtr projPJ)
InnerException: