01-15-2010 12:56 AM
I am facing problem Too many thread error. I m using JDE 4.5 with eclipse.
I am using MapField in my application. And every time I instanciating MapField, it create a new RenderThread which goes in wait state. As VM only accept only 16 thread for an Application, it gives too many thread error, after sometime while I browsing in my application. Also I prefer new MapField object for all screen with different capabilities.
Please someone tell me how to handel situation like this.
Thanks in advanc.
01-15-2010 08:50 AM
I mean to say, I want to add new MapField in new screen. I poped out all the previous screen which contain map before push new screen.
But result is there is a RenderThread are still in wait condition which make too many thread error.
01-15-2010 08:57 AM
Did you use UIEngine.popScreen() or Screen.closo() ? If first, try second, because as you tell this, i guess MapField interrupts its render thread on screen close.
01-16-2010 09:16 AM - edited 01-16-2010 09:19 AM
I have the same Code (new MapField instance for new Screen instance) working on 4.7, but I think there are 64 Threads allowed. And there are also daemon threads. So maybe at 4.6 MapField never interrupts its render thread, because maybe there are no daemon threads. That's all I can say. And actually I don't even know whether MapField interrups its render thread in my app, but I havn't recognized anything yet.
01-17-2010 07:32 AM
Thanks for reply Hagen. I m not working on 4.7, so I don't know the behaveor of the MapField over 4.7.
Is there anyone else or BB Admin working on this.
03-01-2010 11:05 AM
I worked with OS version 5.0 (Tour 9630) and got the same issue. The maximal number of threads allowed in one applications in 5.0 seems 64 as well.