Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Memory leak / large ram usage (Read 6174 times)
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Memory leak / large ram usage
May 11th, 2007 at 5:17am
Print Post  
I think I have found a fault? I have my control loading from a SQL server it is loading around 500 appointments into the control in timetable view (most of these have Recurrence information). When it first loads, the app uses around 35mb of ram with all the appointments loaded. But every time I refresh or add a new appointment just by typing in the control memory usage goes up and up and up!!!!!. To the point were the app has to be closed then reopened (have seen it up over 450mb). So thinking it was a fault with my code I have done some testing and have found the following. If I have a new project with a new control with no changes to it other then currentview set to timetable I then load the app and load 300 appointments it works fine very little change in memory usage, but as soon as I add recurrence items I see the same problems. Below is the code I am using.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim app As New MindFusion.Scheduling.Appointment
Dim rec As New Recurrence
Dim b As Integer = 1
For a As Double = 1 To 300

app = New MindFusion.Scheduling.Appointment
app.StartTime = DateAdd(DateInterval.Minute, a, Now)
app.EndTime = DateAdd(DateInterval.Minute, b, Now)
app.HeaderText = "test"
app.DescriptionText = "this is a test"
cal3.Schedule.Items.Add(app)
b += 1

If a < 31 Then
rec = New Recurrence
rec.Pattern = 1
rec.DaysOfWeek = DaysOfWeek.Friday
rec.Weeks = 1
app.Recurrence = rec

End If


Next

End Sub

With my code I am only adding 30 recurrences and can see the memory go up with every few new items just typed into the control. Is there a fault in the way I am adding the recurrences? If I change it to 100 recurrences then type a new item into the control the memory usage goes up by more then 2mb per new item!!! I am using vs2005
« Last Edit: May 11th, 2007 at 7:52am by bxsl »  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Memory leak / large ram usage
Reply #1 - May 11th, 2007 at 1:13pm
Print Post  
Indeed, this appears to be a bug, introduced in one of our recent versions. We are preparing a fix which will be available in the next few days.

Thank you,
Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: Memory leak / large ram usage
Reply #2 - May 11th, 2007 at 4:17pm
Print Post  
Cheers that would be great!! Can you e-mail me the fix once it is done as I am a registered user and my app has gone live and need to have this fixed ASAP!!
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Memory leak / large ram usage
Reply #3 - May 15th, 2007 at 9:13am
Print Post  
We have just released a new minor version of Planner.NET control which addresses the mentioned malfunction. My colleague informed me that the upgrades are sent to registered users and you should be receiving yours shortly.

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: Memory leak / large ram usage
Reply #4 - May 19th, 2007 at 9:59am
Print Post  
when will this be e-mailed out still waiting for it, need it asap!!!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint