|Riena-App requires more than 3 minutes, if it's closed. [message #728534]
||Fri, 23 September 2011 12:43
| Tihomir Todorov
Registered: September 2011
And today too, I got another problem.
I've created a tree with about 150 000 sub modules (ISubModuleNode)s.
I've created the entire tree not a lazy loading tree,
because of "SWTException: Widget is disposed" (more about this see: Bug 358193 [bugs.eclipse.org/bugs/show_bug.cgi?id=358193]).
To start the application, it takes about 40 seconds. I think it's totally ok.
But to close the application, it takes about 3 minutes and
the application will blocked completely. I think that is generally not ok.
When i create 250 000 sub modules, the application crashed.
So the question is, why Riena needs so long when I have 150 000 sub modules.
That is to say, I can not create an application that has about 2 000 000 sub moduels. Am I right?
I think, that this is so, because of the registration of each sub module
That is to mean, that i create the tree recursive and i call for each sub module the following code fragment:
ISubModuleNode subModule = new SubModuleNode(new NavigationNodeId(String.valueOf(treeNode.getId())), treeNode.getLabel());
WorkareaManager.getInstance().registerDefinition(subModule, GenericWorkframeSubModuleController.class, GenericWorkframeSubModuleView.ID);
And may be, when i close the applicaiton, all sub modules must be unregistered again.
So i can't understand what really happend under the hat and why the applicaiton needs so long, when it's closed.
Powered by FUDForum
. Page generated in 0.05055 seconds