WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-24-2006, 11:06 AM
Hodge1620 Hodge1620 is offline
Member
 
Join Date: Aug 2005
Posts: 12
Parallel Threads

Hi - I have some substantial processing that needs to happen within a continuous timer, and I am trying to split the processing into multiple threads that can run in parallel. (My alternative is to stick with my current framerate of 5 frames per second.) However, it seems that any command using the 'thread' module causes vizard to crash, burn, and run away screaming. For example, the following script runs perfectly well in pythonwin, but when run in Vizard, it asks me to send an error report to Microsoft....

import thread

def sayHello(id):
print "Hello from thread", id

for i in range(5):
thread.start_new_thread(sayHello, (i,))



Is this a unique problem to Vizard 2.1 (which I am using to debug)? Do I need to do something special to prevent the crash? Alternatively, (by reading in-between the lines of your documentation) it seems that the viz.director() function might allow for seperate threads. Is this a correct assessment, or is there some other way to handle threading?


Thanks,
-Eric
__________________
Eric Hodgson
Miami University: SpaceLab
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:54 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC