Napivo1972
Regular
- Joined
- Aug 31, 2004
- Messages
- 85
I suck at threading but now I really need it...
I have an VideoTexture class that uses an internal thread to monitor the events of the video. when the video is done it raises an event complete.
Now the event is captured in my XNA game class and it loads another video (Actually switches to another one that was loaded in the background)
Since the videoTexture is pretty heavy on resources I need to dispose of it. I can't call a thread abort since that would kill my thread I use to make the switch.
How do I solve this?
I have an VideoTexture class that uses an internal thread to monitor the events of the video. when the video is done it raises an event complete.
Now the event is captured in my XNA game class and it loads another video (Actually switches to another one that was loaded in the background)
Since the videoTexture is pretty heavy on resources I need to dispose of it. I can't call a thread abort since that would kill my thread I use to make the switch.
How do I solve this?