Hi Sascha,

 thank you for your explanation.

 However, I tstill think that something is wrong.

 1. This registering/unregistering happens only to "PlanarFigureObjectFactory" 
(as you can see from the attachment in the last post). After all this 
"PlanarFigureObjectFactory" registering/unregistering output the application 
starts lightning fast. Should there not be similar output for all other 
plugins/modules? (I compiled *everything* in, so I would expect that)

 2. This slow startup and multiple registering/unregistering does not only 
happen once after compilation (as "release" btw), but at every startup. So, the 
"re-caching" and checking of time stamps seems not to work as expected.

 3. Why is there a difference in output if I start "AwesomeApp" (or an external 
app created using the generator) or the "extapp" delivered with mitk? (both 
take long to start at *every* startup, but only the former shows this 
"PlanarFigureObjectFactory" stuff at the beginning).

 The most important question however is:

 How can I (temporarily) disable this caching mechanism (or whatever is 
responsible for the slow startup)? I currently see no advantage for us having 
this feature and it is a bit annoying during development :)


 If I can provide more information and/or if you can give me a hint at which 
places I should have a look at, please let me now. 


 Best wishes,
 Klaus


----- Ursprüngliche Nachricht -----
Von: Sascha Zelzer
Gesendet: 31.08.11 23:32 Uhr
An: Klaus Drechsler
Betreff: Re: [mitk-users] Multiple Registering/Unregistering of 
PlanarFigureObjectFactory during Startup

 Hi Klaus,

 This is not a bug.

 During the first application start-up, the CTK Plugin Framework loads and 
unloads each installed plug-in (and hence all its dependencies) to cache the 
resources compiled into them. Unfortunately, this is awefully slow on Windows 
(especially in Debug mode).

 After the first start, the framework keeps track of the mofified time stamps 
of the plug-isn and re-caches the resources only in case the plug-in was 
modified since the last start.

 Best,
 Sascha

 On 08/31/2011 12:09 PM, Klaus Drechsler wrote: Hi,

 I am encountering a problem during startup of an external app created using 
the plugin generator. Startup takes unusually long and in the dos box I see 
several time the registration and unregistration of PlanarFigureObjectFactory 
(see attached output.txt).

 This happened since I moved to the ctk-based MITK (hash: 
32fff1f68c797f392c2b98c7ae35766dc079819f ).

 Is this a known bug? Is there a quick´n dirty fix for it?


 Best wishes,
 Klaus

 PS: Startup also takes longer when I just start "extapp" and I hear that the 
hardisk is *very* busy. However, here I do not see the 
registration/unregistration of PlanarFigureObjectFactory.
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to