NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 52 53 54 55 56 … 93 Next »
getting back to the main thread?

 
  • 0 Vote(s) - 0 Average
getting back to the main thread?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2006-07-24, 08:36 AM
im trying to get back to the main thread when a event occurs, but im not sure how to do this without having access to the main gbpvr class that started gbpvr.

so i need something like
Code:
public void someevent(){
if(notonmainthread){
something.Invoke(someeventdelegate(someevent));
}
// on main thread, so continue doing what needs to be done

anyone know a nice easy way to do it like described above? i know a really messy way but i really dont want to do it that way.

TIA
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#2
2006-07-25, 08:18 AM
well if anyone else ever wants to do this, i found a little gem called "BackgroundWorker" which handles this all for you, it will call a method you specify on a seperate thread and will fire an event on your original thread when that thread is complete.

new thing to .net 2.0
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Client: Slow with separate thread and date not obscured cncb 32 15,690 2016-10-10, 02:01 PM
Last Post: mvallevand
  Add another element to the horizontal main menu Northpole 7 2,804 2011-08-25, 06:18 PM
Last Post: imilne
  SkinHelper fall back to Default ACTCMS 4 1,936 2010-10-31, 03:03 PM
Last Post: ACTCMS
  Main menu plugin - how? McBainUK 5 2,438 2010-07-29, 01:55 AM
Last Post: sub
  CommunitySkin 4 Open development thread. Fatman_do 110 24,221 2008-12-14, 09:04 PM
Last Post: McBainUK
  onKeyDown called on main plugin from Popup whurlston 1 1,345 2008-04-01, 07:59 AM
Last Post: whurlston
  Skinning the main menu alibert 2 1,681 2007-11-18, 03:53 PM
Last Post: alibert
  Community Skin 3.0 Open development thread. Fatman_do 99 21,537 2007-07-30, 08:32 AM
Last Post: McBainUK
  Main Menu Panel McBainUK 5 2,090 2007-06-03, 05:29 PM
Last Post: McBainUK
  Calender plugin - Early versions feedback thread McBainUK 44 12,073 2007-03-28, 10:14 PM
Last Post: McBainUK

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode