<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.EmailStyle17
        {font-family:"Arial","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
span.PlainTextChar
        {font-family:"Calibri","sans-serif"}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText"><span lang="EN-US">Sorry, I noticed that I don’t have replied to the list. You can find my original message again below…</span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US">Hi Brad,</span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US">actually, I have looked into the mechanism of ITK and think I have understood it. I have also found the static initialization routine.</span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US">Nevertheless (see my original e-mail), LoadDynamicFactories is not called in the current version, neither in static initialization, nor in CreateInstance.</span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US">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.</span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US"> Fabian</span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">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.<br>
</font>
</body>
</html>