Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ArgumentOutOfRangeException (Read 6320 times)
Razieltje
YaBB Newbies
*
Offline


What does this button
do?

Posts: 3
Joined: Jul 19th, 2007
ArgumentOutOfRangeException
Jul 19th, 2007 at 1:26pm
Print Post  
Hello,

I started using the Pocketplanner trial. And evrything seems to work in Timetable view.
Yet, when  change the view to week, the next things are triggered by me..

*first i change the view
* then i clear and insert all appointments during that period (using begin- and endint)

but, when all's loaded and it should appear, i get the next error...

bij System.PInvoke.EE.Array_Copy()
bij System.Array.Copy()
bij MindFusion.SortedList.Insert()
bij MindFusion.SortedList.Add()
bij MindFusion.Scheduling.Schedule.GetAllItems()
bij MindFusion.Scheduling.Compact.CalendarCell.Draw()
bij MindFusion.Scheduling.Compact.Cell.Draw()
bij MindFusion.Scheduling.Compact.MultiCalendarCell.Draw()
bij MindFusion.Scheduling.Compact.Calendar.OnPaint()
bij System.Windows.Forms.Control.WnProc()
bij System.Windows.Forms.Control._InternalWnProc()
bij Microsoft.AGL.Forms.EVL.EnterMainLoop()
bij System.Windows.Forms.Application.Run()
bij ***.Program.Main()




code on request... (C#)

any ideas what i can check?

  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ArgumentOutOfRangeException
Reply #1 - Jul 19th, 2007 at 3:44pm
Print Post  
Hi,

Could you please post the code that clears and inserts the appointments? Or email your project to support@mindfusion.eu.

Thank you,
Stoyan
  
Back to top
 
IP Logged
 
Razieltje
YaBB Newbies
*
Offline


What does this button
do?

Posts: 3
Joined: Jul 19th, 2007
Re: ArgumentOutOfRangeException
Reply #2 - Jul 20th, 2007 at 4:29am
Print Post  
[code]
Cursor.Current = Cursors.WaitCursor;



List<***.AppointmentInfo> _lst = ***.GetAppointmentList(calAppointments.GetFirstDate(),calAppointments.GetLastDate());



calAppointments.BeginInit();



calAppointments.Schedule.Items.Clear();





foreach(***.AppointmentInfo _appi in _lst) {




MindFusion.Scheduling.Appointment _Sappi = new MindFusion.Scheduling.Appointment();




_Sappi.Id = _appi.AppointmentID.ToString();




if (_appi.AppointmentCt != null) {





_Sappi.HeaderText = _appi.AppointmentCt.DisplayName + ***.NewLine + "- "+ _appi.AppointmentSubject;




}




else {





_Sappi.HeaderText = "- " + _appi.AppointmentSubject;




}




_Sappi.StartTime = _appi.AppointmentStartDate;




_Sappi.EndTime = _appi.AppointmentEndDate;




MindFusion.Scheduling.Reminder _remi = new MindFusion.Scheduling.Reminder();




_remi.Time = _appi.AppointmentStartDate;




if (_appi.AppointmentCt != null) {





_remi.Message = _appi.AppointmentCt.DisplayName + ***.NewLine + "- " + _appi.AppointmentSubject;




}




else {





_remi.Message = "- " + _appi.AppointmentSubject;




}




_remi.TimeInterval = new TimeSpan(_appi.AppointmentWarning.Ticks);




_Sappi.Reminder = _remi;







calAppointments.Schedule.Items.Add(_Sappi);






}



calAppointments.EndInit();



Cursor.Current = Cursors.Default;


}
[/code]

calAppointments is my MindFusion.Scheduling.Compact.Calendar

friendly greetings,
Ruben
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: ArgumentOutOfRangeException
Reply #3 - Jul 20th, 2007 at 6:20am
Print Post  
How many items do you have in the schedule before and after this method?

Thanks,
Meppy
  
Back to top
 
IP Logged
 
Razieltje
YaBB Newbies
*
Offline


What does this button
do?

Posts: 3
Joined: Jul 19th, 2007
Re: ArgumentOutOfRangeException
Reply #4 - Jul 20th, 2007 at 6:25am
Print Post  
before i had 2 -timelineview for that day-,
then i clear all
Code
Select All
calAppointments.Schedule.Items.Clear();
 


then, that month i have 10 items?
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: ArgumentOutOfRangeException
Reply #5 - Jul 20th, 2007 at 9:14am
Print Post  
I am trying to reproduce this bug here but it doesn't happen. Can you save the schedule to a XML file right after you load the 10 appointments using the Schedule.SaveTo method, and send this XML file to support@mindfusion.eu. It might be also useful if you post the settings of the calendar control, such as Date, EndDate, etc.

Thank you,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint