Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) New Release (Read 10006 times)
MichaelH
YaBB Newbies
*
Offline


Did you not get the memo?

Posts: 17
Joined: Jun 12th, 2007
Re: New Release
Reply #15 - Aug 28th, 2007 at 1:27pm
Print Post  
I seemed to have worked around the issue.

Basically, I was filling the calendar with appointments, then adding one of them to the ItemSelection collection to ensure it was highlighted.

If I issue a ItemSelection.Clear, then add the appointment to ItemSelection, the problem goes away.

I'm not sure why it works but it does seem to have cured the problem.

Thanks
Michael.

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: New Release
Reply #16 - Aug 29th, 2007 at 4:43am
Print Post  
I will still appreciate if you can send me or post the fraction of your code regarding item creation and selection so that I can investigate what might be the reason for this exception to happen.

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


Did you not get the memo?

Posts: 17
Joined: Jun 12th, 2007
Re: New Release
Reply #17 - Aug 29th, 2007 at 5:47am
Print Post  
Hi,

I have a test project that I have put together which shows the problem.
Is there an address I can use to send it to you?

Whilst writing the test project it struck me what the problem probably is - when you issue a Calendar.Schedule.Items.Clear it does not clear the Calendar.ItemSelection collection.

Therefore, when you press delete and it enumerates through the ItemSelection collection to see what needs deleting, it will still have an old reference to an appointment that has been removed from Calendar.Schedule.Items

Let me know if you still need the test project and can email to you.

Thanks
Michael.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: New Release
Reply #18 - Aug 29th, 2007 at 7:21am
Print Post  
Ah, that's exactly what is causing the exception. Cheesy It's amazing we haven't noticed this bug by now. Thanks for all the efforts, Michael. My colleague will contact you with an updated version later today.

Cheers,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint