I seem to be getting this random crash with 10.2.20102.1004. Just have an UltraComboEditor with 4 text items and images on a modal dialog. Crash occurs on ShowDialog after randomly opening and closing the dialog a few times without doing anything and no events handled on the combo editor. The only thread is the UI thread.
System.InvalidOperationException was unhandled
Message="Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.get_InternalHandle()
at System.Windows.Forms.Control.DestroyHandle()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at Infragistics.Win.UltraControlBase.Dispose(Boolean disposing)
at Infragistics.Win.ValueListDropDown.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at Infragistics.Win.ValueList.OnDispose()
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()
InnerException:
Hello,
I just wanted to know if you were able to solve your issue or you still need help? Just let me know.
Thank you.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Hi,
i've got exactly the same problem.
it is simalar as explained in http://forums.infragistics.com/forums/p/16036/58390.aspx
Is there allready a solution for it?
Hello Rvdv, In the link you are pointing the original issue was solved after installing the all .NET service packs. Also I am suggesting you to get the latest service release of NetAdvantage. Which version are you using?Are you getting this only in a UltraComboEditor? Can you please explain a little more about your scenario and when you got this error?Thank you.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Has anyone discovered an answer to this issue? I seem to be having the same issue. When opening and closing a dialog with several ultraComboEditors.
System.InvalidOperationException: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.
Hello All,I was able to reproduce the issue after I put a lot of UltraComboEditors on the second form and click randomly on them.I have forward this issue to our development team, so we will have soon more information.Meanwhile you can use a non modal form and also the suggestion provided form “pjholla” earlier in this thread.Thank you.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
In the exception it appears that the value list is trying to dispose in the Finalize. Knowing this I figured it might not try to do this if the control was already disposed of.
I ended up wrapping the dialog form in a using statement so it always gets disposed of after I'm done using it (instead of randomly when the GC finalizes). After doing this, it appears that the exception no long occurs, even after opening and closing it many times. Still it's difficult to tell if this works 100%. FYI I am using VS2010 with my project targeting .NET 3.5. I tried with 4.0 but it still has the same issue. Additionally I tried the latest hot fix (as of today 9/29/2010 10.2.20102.2060) and it doesn't appear to be fixed yet in that.
Was a solution found for this? I'm getting the same error when using an UltraDropDown control. We have our form creation wrapped in a using statement and this error still occurs. I can see that we are calling the Dispose method on the control when we dispose of the form but we sill see this error when the Fianalizer is called.
System.InvalidOperationException was unhandled Message=Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on. Source=System.Windows.Forms StackTrace: at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.get_InternalHandle() at System.Windows.Forms.Control.DestroyHandle() at System.Windows.Forms.Control.Dispose(Boolean disposing) at Infragistics.Win.UltraControlBase.Dispose(Boolean disposing) at Infragistics.Win.ValueListDropDown.Dispose(Boolean disposing) at System.ComponentModel.Component.Dispose() at Infragistics.Win.ValueList.OnDispose() 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() InnerException:
Hi Shawn,
Are you able to reproduce the exception in a small sample project and post is here? If so, we could check it out.
I believe I am getting the same error. It only happens when I'm in the debugger and it happens when I try to Dispose of the UltraComboEditor. As far as I know, there isn't any threading in my application.
Did you figure anything out?
I am on version 13.1.20131.2079.
Hi All,
I am also not using threading in my Excel Application Level Add-in(at least not intentionally), but I receive the following error message. I am using Visual Studio 2013, update 1, with Infragistics 2013.1. Any help would be greatly appreciated. Cheers.
A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll
System.InvalidOperationException: Cross-thread operation not valid: Control 'ultraFormattedLinkLabel1' accessed from a thread other than the thread it was created on.
at Infragistics.Win.FormattedLinkLabel.UltraFormattedTextEditorBase.Dispose(Boolean disposing)
at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
at ExcelAddin_TableInformation.ucTableInfoForPane.Dispose(Boolean disposing) in c:\vs\utils\ExcelAddin_TableInformation\ExcelAddin_TableInformation\ucTableInfoForPane.Designer.cs:line 24
I think this issue still existing in the initial release version of NetAdvantage 2010.3 and was fixed in a service release. So you probably just need to get the service release.
How to get the latest service release - Infragistics Community
I am getting the same error but in 10.3 when runing from VS IDE.
System.InvalidOperationException was unhandled Message="Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on." Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Control.get_InternalHandle() at System.Windows.Forms.Control.DestroyHandle() at System.Windows.Forms.Control.Dispose(Boolean disposing) at Infragistics.Win.UltraControlBase.Dispose(Boolean disposing) at Infragistics.Win.ValueListDropDown.Dispose(Boolean disposing) at System.ComponentModel.Component.Dispose() at Infragistics.Win.ValueList.OnDispose() 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() InnerException:
Any progress in the resolution?