Hi,
I'm using InfragisticsWPF4.v11.2.
When I try using the XamMultiColumnComboEditor it crashes right after it opens, with the following exception. When clicking on it, it opens just fine, then when moving the mouse/hitting the keyboard it crashes.
I get this exact same exception when running the example you've supplied - when running your code as-is.
This happened on 3 different machines that I tested this on. All running Win 7 64bit (don't know if this is related). I wrote a small app that added only 3 values to the combo, and that has worked fine. When I changed it to add 10 rows it started crashing again.
The exception that I get is this:
System.NullReferenceException: Object reference not set to an instance of an object.
at Infragistics.AutomationPeers.ComboCellsPanelAutomationPeer.get_Value() at Infragistics.AutomationPeers.ComboCellsPanelAutomationPeer.GetNameCore() at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree() at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree() at System.Windows.ContextLayoutManager.fireAutomationEvents() at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(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(IntPtr 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 Itg.ProgrammableGUI.ProgrammableGUIManager.Start(StartUpFlags startUpFlags) in C:\Dev\speed\apps\ProgrammableGUI\Itg.ProgrammableGUI.Main\ProgrammableGUIManager.cs:line 346 at Itg.ProgrammableGUI.ProgrammableGUIManager.Start() in C:\Dev\speed\apps\ProgrammableGUI\Itg.ProgrammableGUI.Main\ProgrammableGUIManager.cs:line 317 at Itg.ProgrammableGUI.Program.Main() in C:\Dev\speed\apps\ProgrammableGUI\Itg.ProgrammableGUI.Host\Program.cs:line 102 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Hello Rennen,
Thank you for your reply. I am very glad that upgrading to 12.1 version solved the issue that you are having. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
IN the project that you've attached, you're using 12.1. The problem does not persist there.
Simply change the references to 11.2 and it will crash when having many items.
We've also upgraded to 12.1 to overcome this issue, so this is not a concern for us anymore.
Thanks,
Rennen
Thank you for your post. I have been looking into the issue that you have described and I could not managed to reproduce it. I have created a sample application with a XamMultiColumnComboEditor with 3 items in it and on a button click, I am setting adding more items to the ItemsSource of the control. When I open the drop down and click on an item or press the arrow keys to navigate through the items, after open the drop down, no exception is appearing when there are 3 or more items. I have tested the sample application under Windows 7 x64 using both, RTM and the latest service release of version 11.2.
Please let me know if you can reproduce the same issue using my sample application and it not, would you please modify the sample application that I have attached in order to demonstrates the issue?
Looking forward to hearing from you.