Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Performance issues?

Performance issues?

Scheduled Pinned Locked Moved Visual Basic
performancehelpcsharpdesign
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr Oizo
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • M 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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        M Offline
        M Offline
        Mr Oizo
        wrote on last edited by
        #3

        Thanks 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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups