Menu

#3 Consider multi-threading

open
None
5
2009-01-17
2009-01-16
avi
No

I'm not much of a app-programmer (web-dev is my thing), but i think you should consider the extra work of adding multi threading to your message loop, since at it's current version (0.1.1.0) the program freezes when busy (try loading a large SRT file and dragging the window to a new position while the load is taking place).

My apologizes if this is already on your TODO list.

Discussion

  • Brendan

    Brendan - 2009-01-17

    Any feedback is always appreciated. In the meantime maybe a loading bar would suffice for now

     
  • Lefteris Aslanoglou

    During development of the first version, I had tried using a background thread to load the subtitles and display a progress bar, however I wasn't able to make it work and I prioritized other things.

    If anyone thinks they could have the job assigned to them and want to try creating some multi-threading code for everyone to test, feel free to respond here.

     
  • Lefteris Aslanoglou

    • assigned_to: nobody --> leftos
     
  • Lefteris Aslanoglou

    BackgroundWorkers, the way VB.NET implements threading, does not allow them to mess with the UI, so that won't be an option, as we're updating each line directly on the DataGridView while loading the subtitles or while applying delays. An option would be to have an array in memory of all the subtitle entries each time a file is loaded, and do all our work there, leaving the updating the DataGridView for last. All the same though, updating the interface in any kind of loop will make it freeze.

    If I'm thinking something the wrong way through or anyone has any suggestions, feel free to speak up.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.