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
45
Crash with DayView component ( Infragistics2.Win.UltraWinSchedule.v7.1 - File Version: 7.1.20071.40)
posted

I have problems with Infragistics.Win.UltraWinSchedule.UltraDayView component with the combination of appointments listed above ( thrown an exception ). : System.IndexOutOfRangeException

Class:
Infragistics2.Win.UltraWinSchedule.v7.1
File Version: 7.1.20071.40

I have four appointments in calendarInfo.Appointments collection with the data above: ( All with the same owner ).
1º Appointment
StartDateTime    {2/20/2009 2:15:00 PM}
EndDateTime    {2/20/2009 2:45:00 PM}

2º Appointment
StartDateTime    {2/20/2009 2:16:00 PM}
EndDateTime    {2/20/2009 2:39:00 PM}

3º Appointment
StartDateTime    {2/20/2009 2:44:00 PM}
EndDateTime    {2/20/2009 2:47:00 PM}

4º Appointment
StartDateTime    {2/20/2009 2:53:00 PM}
EndDateTime    {2/20/2009 5:06:00 PM}

All with the same owner.

calDayView = Infragistics.Win.UltraWinSchedule.UltraDayView
calMonthView = Infragistics.Win.UltraWinSchedule.UltraMonthViewSingle
calWeekView = Infragistics.Win.UltraWinSchedule.UltraWeekView

Viewing that appointments in calMonthView or calWeekView components is ok, but viewing in calDayView component occurs the exception:

Exception: System.IndexOutOfRangeException
Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Infragistics.Win.UltraWinSchedule.DayView.DayUIElement.CreateAppointmentElements(UIElementsCollection oldElements)
   at Infragistics.Win.UltraWinSchedule.DayView.DayUIElement.PositionChildElements()
   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive)
   at Infragistics.Win.UIElement.VerifyChildElements()
   at Infragistics.Win.UltraWinSchedule.DayView.DayAreaUIElement.PositionChildElements()
   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive)
   at Infragistics.Win.UIElement.VerifyChildElements()
   at Infragistics.Win.UltraWinSchedule.DayView.MainUIElement.PositionChildElements()
   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
   at Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean

clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics)
   at Infragistics.Win.UIElement.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean

forceDrawAsFocused, Boolean preventAlphaBlendGraphics)
   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size

elementSize, Boolean preventAlphaBlendGraphics)
   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size

elementSize)
   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)
   at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe)
   at Infragistics.Win.UltraWinSchedule.UltraScheduleControlBase.OnPaint(PaintEventArgs pe)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.SafeNativeMethods.UpdateWindow(HandleRef hWnd)
   at System.Windows.Forms.Control.Update()
   at Infragistics.Win.UIElement.Invalidate(Boolean update)
   at Infragistics.Win.UltraWinSchedule.UltraDayView.ReloadVisibleDays(Boolean verifySelectedTimeSlotRange, Boolean updateUI, DateTime[] dates)
   at Infragistics.Win.UltraWinSchedule.UltraDayView.ReloadVisibleDays(Boolean verifySelectedTimeSlotRange, Boolean updateUI)
   at Infragistics.Win.UltraWinSchedule.UltraDayView.CalendarInfoChanged(Object sender, CalendarInfoChangedEventArgs e)
   at Infragistics.Win.UltraWinSchedule.CalendarInfoChangedEventHandler.Invoke(Object sender, CalendarInfoChangedEventArgs e)
   at Infragistics.Win.UltraWinSchedule.UltraCalendarInfo.OnCalendarInfoChanged(CalendarInfoChangedEventArgs e)
   at Infragistics.Win.UltraWinSchedule.UltraCalendarInfo.FireCalendarInfoChangedEventHelper(PropChangeInfo propChangeInfo, PropertyIds propId)
   at Infragistics.Win.UltraWinSchedule.UltraCalendarInfo.set_ActiveDay(Day value)
   at Infragistics.Win.UltraWinSchedule.UltraMonthViewMultiBase.Infragistics.Win.ISelectionManager.ActivateItem(ISelectableItem item)
   at Infragistics.Win.SelectionStrategyExtended.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo, Boolean forceDrag)
   at Infragistics.Win.SelectionStrategyExtended.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo)
   at Infragistics.Win.SelectionStrategyExtended.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)
   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
   at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(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(Int32 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 System.Windows.Forms.Application.Run(Form mainForm)


Appointments data:

1º)
{Infragistics.Win.UltraWinSchedule.Appointment}   
base    {Infragistics.Win.UltraWinSchedule.Appointment}
Action    {Infragistics.Win.UltraWinSchedule.AppointmentAction}
AllDayEvent    false
Appearance    {4 properties modified.}
BarColor    "{Name=Blue, ARGB=(255, 0, 0, 255)}"
BindingListIndex    -1
BindingListObject    null
CalendarInfo    { [Infragistics.Win.UltraWinSchedule.UltraCalendarInfo]}
DataKey    15015   
Day    {Day {Date = 2/20/2009 12:00:00 AM}}
Description    ""    string
EndDateTime    {2/20/2009 2:45:00 PM}
HasAppearance    true
HasReminder    false
IsMultiDay    false
IsRecurringAppointmentRoot    false
IsRemoved    false
IsSelected    false
IsVariance    false
Location    ""
Locked    true
LockedResolved    true
OriginalStartDateTime    {2/20/2009 2:15:00 PM}
Owner    {Infragistics.Win.UltraWinSchedule.Owner}   
OwnerKey    ""   
Recurrence    null   
RecurrenceId    {00000000-0000-0000-0000-000000000000}   
RecurringAppointmentRoot    null   
Reminder    {Infragistics.Win.UltraWinSchedule.Reminder}
Selected    false
StartDateTime    {2/20/2009 2:15:00 PM}
Subject    "0010038478-BARENBOIM E CIA LTDA\r\nR SAO CRISTOVAO 950 LJ"
Tag    {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}   
object {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}
Visible    true
VisibleResolved    true
Static members       
Non-Public members       


2º)
{Infragistics.Win.UltraWinSchedule.Appointment}   
base    {Infragistics.Win.UltraWinSchedule.Appointment}
Action    {Infragistics.Win.UltraWinSchedule.AppointmentAction}
AllDayEvent    false
Appearance    {4 properties modified.}
BarColor    "{Name=Blue, ARGB=(255, 0, 0, 255)}"
BindingListIndex    -1
BindingListObject    null
CalendarInfo    { [Infragistics.Win.UltraWinSchedule.UltraCalendarInfo]}
DataKey    15015   
Day    {Day {Date = 2/20/2009 12:00:00 AM}}
Description    ""    string
EndDateTime    {2/20/2009 2:39:00 PM}
HasAppearance    true
HasReminder    false
IsMultiDay    false
IsRecurringAppointmentRoot    false
IsRemoved    false
IsSelected    false
IsVariance    false
Location    ""
Locked    true
LockedResolved    true
OriginalStartDateTime    {2/20/2009 2:16:00 PM}
Owner    {Infragistics.Win.UltraWinSchedule.Owner}   
OwnerKey    ""   
Recurrence    null   
RecurrenceId    {00000000-0000-0000-0000-000000000000}   
RecurringAppointmentRoot    null   
Reminder    {Infragistics.Win.UltraWinSchedule.Reminder}
Selected    false
StartDateTime    {2/20/2009 2:16:00 PM}
Subject    "0010005911-DROGARIAS PACHECO S/A\r\nRODOVIA PRESIDENTE DU"
Tag    {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}   
object {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}
Visible    true
VisibleResolved    true
Static members       
Non-Public members       

3º)
{Infragistics.Win.UltraWinSchedule.Appointment}   
base    {Infragistics.Win.UltraWinSchedule.Appointment}
Action    {Infragistics.Win.UltraWinSchedule.AppointmentAction}
AllDayEvent    false
Appearance    {4 properties modified.}
BarColor    "{Name=Blue, ARGB=(255, 0, 0, 255)}"
BindingListIndex    -1
BindingListObject    null
CalendarInfo    { [Infragistics.Win.UltraWinSchedule.UltraCalendarInfo]}
DataKey    15015   
Day    {Day {Date = 2/20/2009 12:00:00 AM}}
Description    ""    string
EndDateTime    {2/20/2009 2:47:00 PM}
HasAppearance    true
HasReminder    false
IsMultiDay    false
IsRecurringAppointmentRoot    false
IsRemoved    false
IsSelected    false
IsVariance    false
Location    ""
Locked    true
LockedResolved    true
OriginalStartDateTime    {2/20/2009 2:44:00 PM}
Owner    {Infragistics.Win.UltraWinSchedule.Owner}   
OwnerKey    ""   
Recurrence    null   
RecurrenceId    {00000000-0000-0000-0000-000000000000}   
RecurringAppointmentRoot    null   
Reminder    {Infragistics.Win.UltraWinSchedule.Reminder}
Selected    false
StartDateTime    {2/20/2009 2:44:00 PM}
Subject    "0010004857-A NOSSA DROGARIA DE CAXIAS LTDA\r\nRUA JOSE DE"
Tag    {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}   
object {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}
Visible    true
VisibleResolved    true
Static members       
Non-Public members       

4º)
{Infragistics.Win.UltraWinSchedule.Appointment}   
base    {Infragistics.Win.UltraWinSchedule.Appointment}
Action    {Infragistics.Win.UltraWinSchedule.AppointmentAction}
AllDayEvent    false
Appearance    {4 properties modified.}
BarColor    "{Name=Blue, ARGB=(255, 0, 0, 255)}"
BindingListIndex    -1
BindingListObject    null
CalendarInfo    { [Infragistics.Win.UltraWinSchedule.UltraCalendarInfo]}
DataKey    15015   
Day    {Day {Date = 2/20/2009 12:00:00 AM}}
Description    ""    string
EndDateTime    {2/20/2009 5:06:00 PM}
HasAppearance    true
HasReminder    false
IsMultiDay    false
IsRecurringAppointmentRoot    false
IsRemoved    false
IsSelected    false
IsVariance    false
Location    ""
Locked    true
LockedResolved    true
OriginalStartDateTime    {2/20/2009 2:53:00 PM}
Owner    {Infragistics.Win.UltraWinSchedule.Owner}   
OwnerKey    ""   
Recurrence    null   
RecurrenceId    {00000000-0000-0000-0000-000000000000}   
RecurringAppointmentRoot    null   
Reminder    {Infragistics.Win.UltraWinSchedule.Reminder}
Selected    false
StartDateTime    {2/20/2009 2:53:00 PM}
Subject    "0010004861-A NOSSA DROGARIA DE CAXIAS LTDA A NOSSA DROG"
Tag    {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}   
object {SpringWireless.Biz.CrossPlatform.Routing.Model.VisitInstanceTO}
Visible    true
VisibleResolved    true
Static members       
Non-Public members       


The owner for all appointment is:
Key    "{unassigned_owner}"

 

Thanks.

Parents
No Data
Reply
  • 45
    Verified Answer
    posted

    After the hotfix installation ( Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 NetAdvantage 2007 - Vol. 1\Hot Fix 1071) the problem is fixed.

    Thanks for the help.

    Clodoval.


Children
No Data