Christian,
thanks for the pointer - knowing that my users are not really of the
savvy kind this one: "Running vcredist_x86.exe on Windows Vista requires
elevation." will be a bit of a problem.
My limited testing today actually revealed that the problem appeared in
OpenSceneGraph 2.8 - and is constraint to the 3ds, lwo and dae plugins
in cases when these plugins need to load other files like texture
images. OpenSceneGraph 2.6.1 also build with VS9 works fine.
Cheers,
Hartmut
On 5/5/09 10:28 PM, Christian Buchner wrote:
If you're still deploying the VC 2008 runtime as private assemblies
(both manifest and directory Microsoft.VC90.CRT copied to both the OSG
top level folder, as well as the OSG plugins folder) - you might want
to a note I found attached to the following MSDN article
http://msdn.microsoft.com/en-us/library/ms235291.aspx
Could it be that the plugin is allocating memory that the viewer is
then releasing or vice versa? This would explain the crashing, because
the runtime is effectively loaded twice (given that the plugin DLLs
have an embedded manifest, which may or may not be CMAKE option to
enable and disable)
-------------------- snip: Note is quoted here --------------------
"Installing Microsoft.VC90.CRT as private assembly in several folders
is not a good idea!
If you install Microsoft.VC90.CRT in more than one folder, you have to
keep in mind that there may be more than one instance (*) of the
runtime-library in memory if you embed a manifest in a DLL. This
results in many problems. In example you cannot allocate memory in one
instance and free this in a different one.
The best way is to create a dependency manifest in only one place (the
executable). And build the extension DLL without a manifest.
(/manifest:no as linker option).
(*) This behavior occurs only, if the runtime is not installed in WinSxS
-------------------- end snip ------------------
Christian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Hartmut Seichter, PhD (HKU), Dipl-Ing.(BUW), Postdoctoral Fellow, HITLabNZ
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org