Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Custom filter crashes application
posted

Hi,

I developed an app using the wingrid (2011.1 and same problem on 2011.2). The app and the grid (including filtering) in the app is working fine.

When packing the application to a selfcontained exe everything is ok, but when you want to set a custom filter by clicking on the filter symbol and select custom the app crashes:

************** Exception Text **************

System.NullReferenceException: Object reference not set to an instance of an object.

   at Infragistics.Win.AppStyling.Runtime.InboxControlStyleSettings.OnComponentRoleStyleChanged(Boolean reset)

   at Infragistics.Win.AppStyling.Runtime.InboxControlStyleSettings.OnComponentRoleStyleChanged()

   at Infragistics.Win.AppStyling.Runtime.InboxControlStyleSettings.InitializeComponentRole(ComponentRole componentRole)

   at Infragistics.Win.AppStyling.Runtime.InboxControlStyler.VerifyStyleSettingsComponentRole(InboxControlStyleSettings styleSettings)

   at Infragistics.Win.AppStyling.Runtime.InboxControlStyler.System.ComponentModel.ISupportInitialize.EndInit()

   at Infragistics.Win.UltraWinGrid.CustomRowFiltersControl.InitializeComponent()

   at Infragistics.Win.UltraWinGrid.CustomRowFiltersControl..ctor(UltraGridBase owningGrid)

   at Infragistics.Win.UltraWinGrid.CustomRowFiltersDialog..ctor(UltraGridBase ownerGrid)

   at Infragistics.Win.UltraWinGrid.ColumnHeader.RowFilterDropDownOwner.ShowCustomFilterDialogHelper(ColumnFilter columnFilter, RowsCollection rows)

   at Infragistics.Win.UltraWinGrid.ColumnHeader.RowFilterDropDownOwner.ProcessColumnFilterSelection(ColumnFilter origColumnFilter, RowsCollection rows, String text, Object dataValue)

   at Infragistics.Win.UltraWinGrid.ColumnHeader.RowFilterDropDownOwner.Infragistics.Win.IValueListOwner.OnSelectionChangeCommitted()

   at Infragistics.Win.ValueList.ProcessSelectionChangeCommitted()

   at Infragistics.Win.ValueListDropDown.OnSelectionChangeCommitted()

   at Infragistics.Win.ValueListDropDown.SelectItemByMouse(ValueListItem valueListItem)

   at Infragistics.Win.ValueListDropDown.OnMouseUp(MouseEventArgs e)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at Infragistics.Win.ValueListDropDownUnsafe.WndProc(Message& message)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

 

****************************

 

My usage of ilmerge:

ilmerge /target:winexe /log:im.log /out:C:\Daten\VBTest\UltragridTest\UltragridTest\bin\Debug\vis\Ultragridtest.exe Ultragridtest.exe Infragistics2.Shared.v11.2.dll Infragistics2.Win.v11.2.dll Infragistics2.Win.UltraWinGrid.v11.2.dll Infragistics2.Win.Misc.v11.2.dll

 

When deploy the app without do an ilmerge, the app works fine.

Does have anyone an idea?