Ok, thanks Andi. On Fri, 2010-07-16 at 20:04 +0200, Andi Vajda wrote:
> On Jul 16, 2010, at 18:48, Darren Govoni <[email protected]> wrote: > > > Hi, > > I have a situation where I have multiple (4) python objects that use > > pylucene and initVM's and attach to their own threads. > > It works fine for a bit, but eventually calls to > > vm.attachCurrentThread() hangs and never returns across those > > objects - > > each in a separate thread. I only call getVMEnv() once in each objects > > init. > > > > I guess I'd like to know if this is something I'm doing wrong or can > > fix? > > > > I'm on the latest build (but this problem occurred before updating) > > Try calling attachCurrentThread() only once per thread and reusing > these threads instead of creating and throwing them away. If you still > must dispose of threads, try calling detachCurrentThread() but it's > not guaranteed to work safely if anything in Python is still holding > any java object references. > > Andi.. > > > > > thanks, > > Darren
