custom components and threads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • strontiumpaul
    New Member
    • Jun 2007
    • 2

    custom components and threads

    I've created a customer panel that works as a RSS scrolling banner. If I start two scrolling banners (Component.Add) , as one of the panels gets a new RSS feed it completely stops the other panel from scrolling until it has finished downloading the feed. I've put the RSS fetch on its own thread but to no avail. I guess I need to start each component on its own thread. How is this achieved?

    Many thanks in advance
  • balabaster
    Recognized Expert Contributor
    • Mar 2007
    • 798

    #2
    Originally posted by strontiumpaul
    I've created a customer panel that works as a RSS scrolling banner. If I start two scrolling banners (Component.Add) , as one of the panels gets a new RSS feed it completely stops the other panel from scrolling until it has finished downloading the feed. I've put the RSS fetch on its own thread but to no avail. I guess I need to start each component on its own thread. How is this achieved?

    Many thanks in advance
    I would suggest you fire the download of the feed into a separate thread and then call a delegate from your download thread to update the feed on screen when the download is finished. This way the UI won't be interrupted when the download commences. I have to say, I'm not 100% familiar with the RSS process but it sounds similar to any data load situation that you don't want affecting UI performance. You spin off the data-request into a new thread so that the UI is still reactive to the user.

    Comment

    Working...