Hi,
I was using version 2.1.1 of MindfusionDiagram and was using the LaneDiagram of the Diagram.
When I upgraded to the newer version 2.2.1 my application threw an exception and the application crashed.
I tried to reproduce the same in sample application but due to time constraints I was not able to reproduce it.
The following is the exception which i got.
Quote:--------------------------------------
DateTime: 10/30/2009 11:38:54 AM
Exception: Value cannot be null.
Parameter name: textToFormat
Stack Trace: at System.Windows.Media.FormattedText..ctor(String textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, Double emSize, Brush foreground, NumberSubstitution numberSubstitution)
at System.Windows.Media.FormattedText..ctor(String textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, Double emSize, Brush foreground)
at MindFusion.x09d6340d05b7af69.xaab109ce2050e76a(String xb41faee6912a2313, Font x26094932cf7a9139, Brush xd8f1949f8950238a, Size xd795812a0a73a33b, StringFormat x89ac3f1d7b03605d)
at MindFusion.x09d6340d05b7af69.x9609f90f13149bac(DrawingContext x41347a961b838962, String xb41faee6912a2313, Font x26094932cf7a9139, Brush xd8f1949f8950238a, Rect xd795812a0a73a33b, StringFormat x89ac3f1d7b03605d)
at MindFusion.Diagramming.Wpf.Lanes.Grid.x6f527739acb8e9eb(Header x6b0ad9f73c48ad53, Rect xda73fcb97c77d998, Object x70bb49687dfea062)
at MindFusion.Diagramming.Wpf.Lanes.Grid.x055bf12d5ead37b4(x9a6028c0a8f4ef4a x7d1bf994956f1081, Double x27d9e9f754a77a2c, Double xe44fb7dc05e0221a, Object x70bb49687dfea062)
at MindFusion.Diagramming.Wpf.Lanes.Grid.x5fae5426891c7f2a(DrawingContext x41347a961b838962)
at MindFusion.Diagramming.Wpf.Lanes.Grid.x7f078bc29923174b(DrawingContext x41347a961b838962)
at MindFusion.Diagramming.Wpf.Lanes.xe0c0814411a0d057.OnRender(DrawingContext drawingContext)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
Exception Source: PresentationCore
InnerException:
--------------------------------------
Please provide some pointers to solve the problem.
Thanks,
Priyanka