RecurrencePattern.GenerateOccurrences(int nextNOccurrences) never returns

Hello, I'm using Aspose.Email version 3.6.0.0. I've found an issue with the RecurrencePattern.GenerateOccurrences(int nextNOccurrences) method. If no end date or count is specified in the pattern, the method never returns. I never get an exception so I'm not sure what's wrong, but the method seems to go on forever.
If I use the GenerateOccurrences(DateTime rangeStart, DateTime rangeEnd) overload with the same RecurrencePattern object, it works fine. However, I need to use the nextNOccurrences method sometimes just to generate the next 2 occurrences.
Could you please look into the code below and let me know why this happens? I can work around it but I would also like to know why it happens, so I can anticipate it in other use cases.


public void GetOccurrencesDailyAsposeTest()
{
RecurrencePattern asposeProvider = new RecurrencePattern();
asposeProvider.StartDate = new DateTime(2014, 2, 12);
RecurrenceRule rule = asposeProvider.RRules.Add();
rule.Frequency = Frequency.Daily;
rule.Interval = 3;

DateCollection predictedDates = asposeProvider.GenerateOccurrences(2);
}

Thank you,
Nicole

Hi Nicole,


Thank you for contacting Aspose Support team.

I have tested the code and have faced the same issue here. This bug is logged in our issue tracking system under id:NETWORKNET-34269. Development team will look into it and will share their findings with us. I will write back here as soon as some feedback is received from the developers.

Please feel free to write us back if you have any other query related to Aspose.Email.

Hi, has there been any progress on getting to the root of this issue?

Thanks,
Nicole

Hi Nicole,


I have checked the status of this issue and would like to share that it has already been fixed. The fix for the issue will be available in the upcoming version of Aspose.Email for .NET 3.9.0 that is likely to be released in the last week of this month. We’ll notify you here once the fix version is available in this regard.

The issues you have found earlier (filed as NETWORKNET-34269) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.