Hi Robert,

On 6/10/2013 4:48 AM, Robert Osfield wrote:
Hi Judson,

When you say the WriteResult is different could you explain what the
result is in each case?  Is there file written out OK in ech case.
First pass, result status is FILE_NOT_HANDLED message is "Warning: Write to "path" not supported." Second pass, result status is ERROR_IN_WRITING_FILE message is "Warning: Could not find plugin to write nodes to file "path." The file is not written out in either case, because I was specifically interested in testing the non-successful code paths.

The reason for the difference is based on whether or not the plugin DLL has been loaded or not.


W.r.t binary planting, the most secure way to avoid any plugins being
loaded that aren't purka is to build your application as a static
binary with all plugins that you'll need explicitly compiled in.

It still seems like an attempt to load DLLs would be made for unregistered file extensions (maybe?). Perhaps I did not see an ifdef or condition for the static libary case. However, calling Registry::setLibraryFilePathList() manually might work for my case.


Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to