I have a RotationProjection object that is shared among multiple layers. After moving to the .304 beta I'm getting exceptions complaining about the projection not being open...
Also, the map seems to come up with the 'Unlicensed' background a significant amount of time before my shapefiles are displayed...changed from the previous beta.
System.InvalidOperationException was unhandled
Message="The projection is not open. Please open it before calling this method."
Source="MapSuiteCore"
StackTrace:
at ThinkGeo.MapSuite.Core.x6d719af406ea4c2c.xed94929c048fbff7(Boolean x40fc51452dedaf8a)
at ThinkGeo.MapSuite.Core.Projection.ConvertToExternalProjection(Feature feature)
at ThinkGeo.MapSuite.Core.FeatureSource.ConvertToExternalProjection(IEnumerable`1 features)
at ThinkGeo.MapSuite.Core.FeatureSource.GetFeaturesForDrawing(RectangleShape boundingBox, Double screenWidth, Double screenHeight, IEnumerable`1 returningColumnNames)
at ThinkGeo.MapSuite.Core.FeatureLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x5e1f8125aa040824(Object x2680f14bfcc5c488)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
I also had to put an Open/Close around the projection in my MouseMove event handler because I was getting a similar exception:
bool open = false;
if (!m_projection.IsOpen)
{
m_projection.Open();
open = true;
}
feature = m_projection.ConvertToExternalProjection(feature);
if (open)
{
m_projection.Close();
}