[Insight-developers] ITK 4.2.1: LoadDynamicFactories not called?

Wenzel, Fabian fabian.wenzel at philips.com
Tue Oct 23 19:11:16 EDT 2012


Sorry, I noticed that I don't have replied to the list. You can find my original message again below...







Hi Brad,



actually, I have looked into the mechanism of ITK and think I have understood it. I have also found the static initialization routine.



Nevertheless (see my original e-mail), LoadDynamicFactories is not called in the current version, neither in static initialization, nor in CreateInstance.



In the meantime, I have added the LoadDynamicFactories() call as the last line in InitializeFactoryList() (this part of the function is executed if there is not yet a list, so it is only called once), and now the mechanism works as expected and my .dll loads. This might be a wrong location for this kind of fix though. If you have a better suggestion in mind, please let me know.



                Fabian




________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20121023/c85082e8/attachment.htm>


More information about the Insight-developers mailing list