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
320
AppointmentRecurrence.InitializeFrom broke in 12.2
posted

I think something broke with the Appointment Recurrence Description and InitializeFrom.  You can duplicate the issue by running the sample WinSchedule.Appointment Dialog 2007.  Add a new appointment with a double-click so the dialog window appears.  Click on Recurrence, then click OK in the Appointment Recurrence window to add the recurrence pattern.  You get a runtime error when it tries to access the Description for the recurrence object.  In the method InitializeFrom where it copies the recurrence from the form back to the original recurrence object something is failing and the Description is not filled (or the underlying objects it depends on are not filled).

This worked in 11.2 for me.  Now in 12.2 it's broken.

Runtime Error message:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object.    at Infragistics.Win.UltraWinSchedule.AppointmentRecurrence.get_Description()    at AppointmentDialog2007_CS.AppointmentDialog2007.VerifyAppointmentStatus()    at AppointmentDialog2007_CS.AppointmentDialog2007.OnToolClick(Object sender, ToolClickEventArgs e)    at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)    at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)    at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.DoClickProcessing(MouseEventArgs e)    at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.OnMouseUp(MouseEventArgs e)    at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)    at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)    at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)    at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)    at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseUp(MouseEventArgs e)    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)    at System.Windows.Forms.Control.WndProc(Message& m)    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

...

Thanks

Parents
No Data
Reply
  • 18495
    Verified Answer
    posted

    Hello,

    Thank you for contacting Infragistics.

    I followed the steps you provided, but I did not get the exception.  I was using build 2027 of NetAdvantage 2012 Volume 2.  You may be using an earlier build in which the issue was not fixed.  You can see which build you're using by selecting a NetAdvantage reference and viewing its properties.

Children