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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exception when closing ComboBoxAutoComplete

Thread ID:





70659 Dec 26,2007 02:47 AM UTC Dec 31,2007 08:56 AM UTC WinForms 4
Tags: Tools
Mike Scanlon
Asked On December 26, 2007 02:47 AM UTC

Intermittently (twice in the last month) we get the following exception when closing a dialog that has a ComboBoxAutoComplete on it. From the little info we get from Google, this appears to be a windows problem. Has anyone seen it, or know of a way we can override that OnHandleDestroyed and eat the exception if it occurs? I'm assuming the listview is used internally by ComboBoxAutoComplete, although I don't see it in Spy++.


(System.InvalidOperationException) - Number of selected items does not match actual selected items.

Stack trace:

at System.Windows.Forms.SelectedListViewItemCollection.get_SelectedItemArray()
at System.Windows.Forms.ListView.OnHandleDestroyed(EventArgs e)
at System.Windows.Forms.Control.WmDestroy(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ListView.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Mike Scanlon
Replied On December 26, 2007 02:49 AM UTC

The SyncFusion dll version is

Jisha Joy [Syncfusion]
Replied On December 27, 2007 09:25 AM UTC

Hi Mike,

Thank you for providing query to us.

On analyzing the stack trace it seems that this issue is not caused due to our ComboBoxAutoComplete control. Could you please provide the complete stack trace so that we can analyze the issue further?

Could you please provide the sample in which issue is reproducing so that we could able to sort out the cause of the issue and provide you a solution?

Kindly let me know if you need further assistance.

Mike Scanlon
Replied On December 31, 2007 02:25 AM UTC

That's the entire stack trace, the callback is being called by another thread.

The exception is not in SyncFusion code, but the problem is we don't have access to the ListView, so we can't override the OnHandleDestoyed and eat the exception.

Do you have any record of someone complaining about this in the past?


Jisha Joy [Syncfusion]
Replied On December 31, 2007 08:56 AM UTC

Hi Mike,

Thank you for your update.

I think issue is not because of the Syncfusion components and I am not able to find any past records regarding this.

Kindly let me know if you need further assistance.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon