Page 1 of 1

Designer Crash

Posted: Fri Sep 10, 2010 8:54 am
by rchecketts
Hi

We have just purchased Stimulsoft Reports WPF and I have upgraded my project from the demo version 2010.2.749 (called SWPF_2010.08.10_D2008) to the latest registered version 2010.2.761 (called SWPF_2010.09.07).

All worked ok with the demo version but now when I call the Designer with stiReport.DesignWithWpf(); I get a last chance exception:

Dispatcher Unhandled Exception
Error: Object reference not set to an instance of object.
Source: Stimulsoft.Report.WpfDesign.

I only get the error if I first register any Busines object.

Stack Trace:
" at Stimulsoft.Report.WpfDesign.StiWpfDataBuilder.GetDictionaryImageFromColumn(StiDataColumn column)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDataBuilder.BuildColumns(StiBusinessObject businessObject, StiDataColumnsCollection columns, TreeViewItem parentNode, Boolean includeCalcColumn)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDataBuilder.BuildBusinessObject(StiBusinessObject businessObject, TreeViewItem parentNode, Boolean includeCalcColumn)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDataBuilder.BuildBusinessObjects(StiBusinessObjectsCollection objects, TreeViewItem parentNode, Boolean includeCalcColumn, Boolean showCategories)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDataBuilder.BuildBusinessObject(StiBusinessObject businessObject, TreeViewItem parentNode, Boolean includeCalcColumn)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDataBuilder.BuildBusinessObjects(StiBusinessObjectsCollection objects, TreeViewItem parentNode, Boolean includeCalcColumn, Boolean showCategories)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDataBuilder.BuildBusinessObjects(StiBusinessObjectsCollection objects, TreeViewItem parentNode, Boolean includeCalcColumn)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDictionaryControl.BuildBusinessObjects(StiDictionary dictionary)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDictionaryControl.Build(StiReport report, Boolean showUsedObjects)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDictionaryControl.Build(StiReport report)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDictionaryPanelService.OnRefreshDictionary(Object sender, EventArgs e)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDesignerControl.OnRefreshDictionary(EventArgs e)\r\n at Stimulsoft.Report.WpfDesign.StiWpfDesignerControl.InvokeRefreshDictionary()\r\n at Stimulsoft.Report.WpfDesign.StiBuilder.BuildReport()\r\n at Stimulsoft.Report.WpfDesign.StiWpfDesignerControl.b__a(Object , RoutedEventArgs )\r\n at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)\r\n at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)\r\n at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)\r\n at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)\r\n at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)\r\n at MS.Internal.LoadedOrUnloadedOperation.DoWork()\r\n at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()\r\n at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()\r\n at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)\r\n at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)\r\n at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)\r\n at System.Windows.Interop.HwndTarget.OnResize()\r\n at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)\r\n at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)\r\n at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)\r\n at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)"

Rick


Designer Crash

Posted: Fri Sep 10, 2010 9:16 am
by rchecketts
I have gone back to registered version 2010.2.754 (called SWPF_2010.08.24) as this was the closest registered version to my working demo version.

All now works OK again. It seems that something has changed in later version(s) that causes a problem when registering complex Business Objects.

Rick

Designer Crash

Posted: Fri Sep 10, 2010 3:01 pm
by Jan
Hello,

Thank you for your bug report. We have changed our source code. Please check build from next prerelease build.

Thank you.

Designer Crash

Posted: Mon Sep 20, 2010 5:24 am
by rchecketts
I have checked out version 2010.2.764 (called SWPF_2010.09.15) and the problem is fixed.

Thank you.

Designer Crash

Posted: Mon Sep 20, 2010 5:28 am
by Andrew
Hello,

Thank you for letting us know about this.