In the previous post "Overall component performance" from Carlos I was reading the comment from Edgar about things to do to improve performance. One of the tips was to set LockLayerMode to DoNotLock. When I do this none of my shape file layers draw.
In a test-bed application I have I set LockLayerMode to DoNotLock and I get a SerializationException, details of the exception are below.
Any information as to what might be causing this exception. As long as I do not set DoNotLock my applications are fine.
I too am concerned about drawing performance and so am looking at anything to help speed up my application.
Thanks,
Dennis
System.Runtime.Serialization.SerializationException was unhandled
Message=Type 'OverrideTextStyle.MainWindow+MyTextStyle' in Assembly 'OverrideTextStyle, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Source=mscorlib
StackTrace:
at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)
at ThinkGeo.MapSuite.Core.Layer.pRM=(Object gxc=)
at ThinkGeo.MapSuite.Core.Layer.CloneDeepCore()
at ThinkGeo.MapSuite.Core.ShapeFileFeatureLayer.CloneDeepCore()
at ThinkGeo.MapSuite.Core.Layer.CloneDeep()
at ThinkGeo.MapSuite.WpfDesktopEdition.LayerOverlay.UBc=(Layer URc=)
at ThinkGeo.MapSuite.WpfDesktopEdition.LayerOverlay.<>c__DisplayClass2.<UpdateCopiedLayers>b__0()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()