We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

More Exceptions

Hi there

Yesterday I upgraded our version of syncfusion from version 5.1.0.51 to the lastest version (6.1.0.34) in order to fix a known problem, i.e. random "Object reference not set to an instance of an object." being raised.

During evaluation of the new version, we are now recieving a different random exception that was not raised with the older version with our codebase, namely:

Error creating window handle

Stack traces for this exception thus far:

1.

StackTrace:
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Timer.TimerNativeWindow.EnsureHandle()
at System.Windows.Forms.Timer.TimerNativeWindow.StartTimer(Int32 interval)
at System.Windows.Forms.Timer.set_Enabled(Boolean value)
at System.Windows.Forms.MouseHoverTimer.Start(ToolStripItem item)
at System.Windows.Forms.ToolStrip.OnMouseMove(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.MenuStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Transpower.SAD.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

2.

StackTrace:
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Timer.TimerNativeWindow.EnsureHandle()
at System.Windows.Forms.Timer.TimerNativeWindow.StartTimer(Int32 interval)
at System.Windows.Forms.Timer.set_Enabled(Boolean value)
at System.Windows.Forms.Timer.Start()
at Syncfusion.Windows.Forms.Grid.Grouping.GridGroupDropAreaModel.TableDescriptor_TableSourceListChanged(Object sender, TableEventArgs e)
at Syncfusion.Grouping.TableDescriptor.OnTableSourceListChanged(TableEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableDescriptor.OnTableSourceListChanged(TableEventArgs e)
at Syncfusion.Grouping.TableDescriptor.Syncfusion.Grouping.ITableEventsTarget.OnTableSourceListChanged(TableEventArgs e)
at Syncfusion.Grouping.Table.BaseSourceListChanged(TableEventArgs e)
at Syncfusion.Grouping.Table.OnSourceListChanged(TableEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.OnSourceListChanged(TableEventArgs e)
at Syncfusion.Grouping.Table.set_SourceList(IList value)
at Syncfusion.Grouping.Engine.ResetTable()
at Syncfusion.Grouping.Engine.SetSourceList(IList value)
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngineBase.SetCurrencyManager(CurrencyManager value)
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngineBase.get_CurrencyManager()
at Syncfusion.Windows.Forms.Grid.Grouping.GridEngineBase.GetSourceListBase()
at Syncfusion.Grouping.Engine.GetSourceList()
at Syncfusion.Grouping.FieldDescriptorCollection.EnsureInitialized(Boolean populate)
at Syncfusion.Grouping.FieldDescriptorCollection.get_Version()
at Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.EnsureInitialized(Boolean populate)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.Columns_Changed(Object sender, ListPropertyChangedEventArgs e)
at Syncfusion.Collections.ListPropertyChangedEventHandler.Invoke(Object sender, ListPropertyChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.OnChanged(ListPropertyChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.RaisePropertyItemChanged(GridColumnDescriptor column, DescriptorPropertyChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor.OnPropertyChanged(DescriptorPropertyChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptor.Syncfusion.Windows.Forms.Grid.Grouping.IGridTableCellAppearanceSource.RaiseAppearanceChanged(GridTableCellStyleInfoChangedEventArgs e)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellAppearance.RaiseChanged(GridTableCellType tableCellType, EventArgs inner)
at Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellAppearanceStyleInfoIdentity.OnStyleChanged(StyleInfoBase style, StyleInfoProperty sip)
at Syncfusion.Styles.StyleInfoBase.OnStyleChanged(StyleInfoProperty sip)
at Syncfusion.Windows.Forms.Grid.GridStyleInfo.OnStyleChanged(StyleInfoProperty sip)
at Syncfusion.Styles.StyleInfoBase.SetValue(StyleInfoProperty sip, Int16 value)
at Syncfusion.Windows.Forms.Grid.GridStyleInfo.set_HorizontalAlignment(GridHorizontalAlignment value)
at Transpower.SAD.Dispatch.DispatchSummary.InitializeDispatchSummary() in C:\SourceCode\MS\SAD\Dispatch\Controls\DispatchSummary.vb:line 117

In the case of the second exeption which was caught, the code at line 117 is as follows:

col.Appearance.AnyRecordFieldCell.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Right

where col is a GridColumnDescriptor of our GridGroupingControl instance. The GGC instances IsHandleCreated property is true.

I also tried using the next version up from 5.1.0.51 (version 5.2.0.39), with the same problems.

Any insight into this?

Cheers,

j



1 Reply

AD Administrator Syncfusion Team December 14, 2007 10:46 AM UTC

I searched our Direct Trac and forum databases for System.Windows.Forms.Timer.TimerNativeWindow.EnsureHandle()

and could not find any hits at all. So, we have not seen this problem before.

It looks like the first stack has no Syncfusion code in it. Did that exception get raised first? If so, tracking that down might resolve the second issue.

If you can reproduce the problem in a sample, you can submit a Direct trac incident with it and the support team can try to track down the exception in the sample. If you cannot submit a sample, you can still create a Direct Trac incident to try to work with the support team to home in on the problem.




Loader.
Live Chat Icon For mobile
Up arrow icon