search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Calendar generates OutOfMemoryException

Asked by Pavel Shyrko
13 years ago.

Hi Dan,

If first day of weekly recurrence is Sunday, then 'System.OutOfMemoryException' was thrown. Please find a simple project attached.

Also if I replaced code

RecurrenceRule rule = RecurrenceRule.FromDateTime("1", start).Weekly().Until(start.AddYears(1));

with

RecurrenceRule rule = RecurrenceRule.FromDateTime("1", start).Weekly().Times(5);

then all events are generated in one day

All works fine if first day is Monday, Tuesday, Wednesday etc.

Comment posted by Dan Letecky [DayPilot]
13 years ago.

I'll take a look at it, thanks.

Answer posted by Dan Letecky [DayPilot]
13 years ago.

There was a bug in weekly recurrence code. It has been completely rewritten in 6.4 SP2.

http://www.daypilot.org/daypilot-pro-6-4-sp2.html

It seems that you are using build 6.4.2251 (6.4 SP1). Could you please give it a try with the latest release?

Answer posted by Pavel Shyrko
13 years ago.

it works in the 6.5

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.