Hi all,<br><br>First thanks for the feedbacks.<br><br>I was thinking that it was a CRT link problem between different version (as I use 3rdParty libraries compiled with VS7.1). That's why yesterday I rebuild all the libraries (jpeg, png, tiff...) using VS8 SP1 and with Multithreaded DLL set. As a side note, thanks Mike for your osgtoy repository, it helped me a lot in this task.
<br><br>But it still crash on Vista. As you mentioned Roger I tried to directly put the CRT dlls and manifest side by side with the plugins dlls but it doesn't work too. I also used <font style="color: rgb(0, 0, 0);" color="navy" face="Arial" size="2">
<span style="font-size: 10pt; font-family: Arial;">ms dependency walker and it confirms that I depend only on CRT (not MFC, ATL and others).<br><br>So I really don't know what to do next, maybe having all the depedencies (jpeg, png...) as dlls instead of building then statically.
<br><br>I have launch my application with OSG_NOTIFY_LEVEL=DEBUG_INFO and here is the last lines before the crash :<br></span></font><pre>FindFileInPath() : trying D:\demo\MgtDemo\Bin\release\osgPlugins-2.1.12\osgdb_jpeg.dll
 ...<br>FindFileInPath() : USING D:\demo\MgtDemo\Bin\release\osgPlugins-2.1.12\osgdb_jpeg.dll<br>Opened DynamicLibrary osgPlugins-2.1.12/osgdb_jpeg.dll<br>FindFileInPath(../../Media/Textures/Sky/FLARE_0.jpg): returning ../../Media/Textures/Sky/FLARE_0.jpg
</pre>It's weird because it seems that the plugin is loaded but it fails to read a file.<br>Any ideas ?<br><br><div><span class="gmail_quote">On 9/27/07, <b class="gmail_sendername">Roger James</b> <<a href="mailto:roger@beardandsandals.co.uk">
roger@beardandsandals.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="blue" lang="EN-GB">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Something I forgot. I have seen mention
that having the private assembly in a sub-directory doesn't work when
loading dlls. I have never tried it. Maybe someone who understands this maze
can comment.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">So just copy the runtime dlls and their
manifest up into the plugin directory.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Roger</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;" lang="EN-US">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">

<a href="mailto:osg-users-bounces@lists.openscenegraph.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">osg-users-bounces@lists.openscenegraph.org</a>
[mailto:<a href="mailto:osg-users-bounces@lists.openscenegraph.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">osg-users-bounces@lists.openscenegraph.org</a>] <b><span style="font-weight: bold;">
On Behalf Of </span></b>Roger James<br>
<b><span style="font-weight: bold;">Sent:</span></b> 27 September 2007 17:55<span class="q"><br>
<b><span style="font-weight: bold;">To:</span></b> 'OpenSceneGraph
 Users'<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [osg-users]
Redistribute OSG on Vista</span></span></font><span lang="EN-US"></span></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p><span class="q">

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Does your app need MFC? The redist
installs assemblies for that as well.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Do the versions in the manifest file match
the ones in the dlls and the ones in the manifests embedded in the exe and
plugin dlls?</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I found this thread useful</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=164465&SiteID=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=164465&SiteID=1</a></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">osg loads its plugins via loadlibrary (as opposed
to implicit loading via the exe loader) which is why you need private
assemblies in the plugin directory as well.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Only ms could dream up something this
Byzantine!</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I found the ms dependency walker (<a href="http://www.dependencywalker.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.dependencywalker.com</a>)
and the CFF Explorer (<a href="http://www.ntcore.com/products.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.ntcore.com/products.php</a>)
useful in tracking this stuff down.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Roger</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

</span></div>

</div>

</div>


<br>_______________________________________________<br>osg-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Serge Lages<br><a href="http://www.magrathea-engine.org">http://www.magrathea-engine.org</a>