Performance issues?
-
Hi. I have a problem with my program. My program schedules songs to play to fill every second of the day for 24 hours. It schedules everything correctly according to the rules specified for the first 8 hours if I comment out the other 16 hours.. I think the problem is that I have 48 (2 for each hour)datasets running which in turn fill 48 datagridviews all on one form. This form and datagridviews are not going to be seen as they run as a background process. My program stops responding if I try to schedule anything more than 8 hours (aka 16 datasets worth of data). After every hour scheduled I call the clear method of the 2 datasets for the hour which has been scheduled to try free up some memory but that doesn't help. Is there anything else I can try. I am running out of time before my project hand in and this is a major problem. I tried calling the datagridview.rows.clear() method to clear the datagridview for the Hour already scheduled vb.net says it can't clear the collection.? really need help here. (I can't change my code design now but for some reason if i place break points in the code it runs fine for more than 8 hours why could that be... everything is still in memory?) Mr Oizo
-
Hi. I have a problem with my program. My program schedules songs to play to fill every second of the day for 24 hours. It schedules everything correctly according to the rules specified for the first 8 hours if I comment out the other 16 hours.. I think the problem is that I have 48 (2 for each hour)datasets running which in turn fill 48 datagridviews all on one form. This form and datagridviews are not going to be seen as they run as a background process. My program stops responding if I try to schedule anything more than 8 hours (aka 16 datasets worth of data). After every hour scheduled I call the clear method of the 2 datasets for the hour which has been scheduled to try free up some memory but that doesn't help. Is there anything else I can try. I am running out of time before my project hand in and this is a major problem. I tried calling the datagridview.rows.clear() method to clear the datagridview for the Hour already scheduled vb.net says it can't clear the collection.? really need help here. (I can't change my code design now but for some reason if i place break points in the code it runs fine for more than 8 hours why could that be... everything is still in memory?) Mr Oizo
48 DataGridView controls on a form?? Don't you think that's a little excessive?? Why do you need 48 DGV's??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
48 DataGridView controls on a form?? Don't you think that's a little excessive?? Why do you need 48 DGV's??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Thanks for the reply Mr Kreskowiak. I changed it to just 2 datagridviews and after each hour scheduled I save to the database and dispose of any data in the dataset and rebind the dataset tables to the datagridviews again for the next hour, I repeat until each hour is scheduled and now everything works perfectly. :-D Have a good day Mr Oizo