[Zope] Auto restart (at Zope's own initiative !!!)
Brian Lloyd
brian@zope.com
Tue, 29 Jan 2002 16:02:33 -0500
> Would that make a difference between dying when imported at the
> beginning of a script, and not dying when imported within a run()
> method? Knowing C, I'd expect randomness, but this behavior is
> consistent.
Sure it could. If the dll you are calling maintains
per-thread data structures or uses API calls that are
sensitive to threading, you may well need to load and
call it within the same thread to avoid a crash. When
you import outside of a Thread.run(), you are loading
the dll in a different thread than you are calling it
from.
Brian Lloyd brian@zope.com
Software Engineer 540.361.1716
Zope Corporation http://www.zope.com