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
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
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