PDA

View Full Version : Cleaning up viz.director calls


pbeeson
09-13-2006, 09:44 AM
I use viz.director to basically spawn a thread to receive xmlrpc calls to remotely control my Vizard avatar. I started using viz.director for two reasons. 1) in Vizard 2.5 if I used python threads, the Vizard programming environment (Vizard.exe) would bomb out even though the scipt would still run. 2) When I closed the Viewpoint window, it would kill the viz.director calls, so I didn't have to CTRL-ALT-DELETE and kill winviz.exe (this would happen if I used traditional threads).

In version 3.0, closing the viewpoint window doesn't seem to kill the viz.director "threads" so I have to CTRL-C to also kill the output terminal window.

farshizzo
09-13-2006, 10:51 AM
In general, you should make sure your threads are closed down properly on exit. You can handle viz.EXIT_EVENT to perform the thread clean up.