Hi,I am Using Infagistics 10.1 Winform .I am getting this exception when I am exiting my application.
Please let me know incase anyone has any clue or idea as to how to proceedon resolving this issue.Thanks in advance,
StackTrace:- at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) at System.Windows.Forms.Control.CreateHandle() at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.PointToClientInternal(Point p) at System.Windows.Forms.Control.PointToClient(Point p) at Infragistics.Win.UltraWinEditors.StyleUtils.IsHottracking(Control ctrl) at Infragistics.Win.UltraWinEditors.TextEditorControlBase.ResolveAppearance(AppearanceData& appearance, AppearancePropFlags& requestedProps, Boolean includeNullTextAppearance) at Infragistics.Win.UltraWinEditors.TextEditorControlBase.ResolveAppearance(AppearanceData& appearance, AppearancePropFlags& requestedProps) at Infragistics.Win.UltraWinEditors.EditorWithComboOwner.ResolveAppearance(Object ownerContext, AppearanceData& appearance, AppearancePropFlags& requestedProps, EmbeddableEditorArea area, Boolean hotTracking, String customArea) at Infragistics.Win.EmbeddableEditorOwnerBase.ResolveAppearance(Object ownerContext, AppearanceData& appearance, AppearancePropFlags& requestedProps, EmbeddableEditorArea area, Boolean hotTracking) at Infragistics.Win.EditorWithTextAndDropDownUIElementBase.InitAppearance(AppearanceData& appearance, AppearancePropFlags& requestedPropFlags) at Infragistics.Win.EmbeddableUIElementBase.InitAppearanceInternal(AppearanceData& appearance, AppearancePropFlags& requestedProps) at Infragistics.Win.EmbeddableTextBox.ApplyAppearance() at Infragistics.Win.EditorWithCombo.Infragistics.Win.IValueListOwner.OnSelectedItemChanged() at Infragistics.Win.ValueList.ProcessSelectedIndexChanged(Int32 selectedIndex, Boolean commit) at Infragistics.Win.ValueList.set_SelectedIndex(Int32 value) at Infragistics.Win.BindableValueList.SetDataSource(Object value, Boolean notify) at Infragistics.Win.BindableValueList.OnDispose() at Infragistics.Shared.DisposableObject.Dispose() at Infragistics.Win.UltraWinEditors.UltraComboEditor.DisposeValueList() at Infragistics.Win.UltraWinEditors.UltraComboEditor.Dispose(Boolean disposing) at System.ComponentModel.Component.Finalize()
Quick Update:-
I Did UltraComboEditor.DataSource to NULL in Dispose methods.
I am not sure about how can we change StyleUtils.IsHottracking method ? Can you send me some Link which shows how to do that ?
Thanks,
That looks like a bug that we should be able to fix easily, either by changing the StyleUtils.IsHottracking method to return false if the specified control's IsHandleCreated property returns false, or by bypassing that logic altogether when the control is in the process of being disposed. You might want to report this as a bug.
Note that in the meantime, you might be able to work around this by assigning null to UltraComboEditor.DataSource in response to the FormClosing event, or whatever it is that triggers disposal.