[osg-users] png loader loads and unload

Robert Osfield robert.osfield at gmail.com
Sun Feb 5 11:29:08 PST 2017


Hi Jonny,

I'm not a Windows users so can't comment on the platform specifics,
this could well be a factor in your case so hopefully others will
pitch in.

As a general note, the OSG's osgDB::Registry will automatically
attempt to load a plugin to load a file if non of the existing plugins
that have already been loaded.  Once a plugin is loaded the OSG
doesn't automatically unload, even if that plugin can't load the file.
This default behaviour looks quite out of step with what you are
seeing.  The warnings you are seeing aren't ones I recognize either,
but then I'm not a Windows/OSG user so perhaps there is some Win32
specific code that is generating these warnings.

Alternatively it could be VisualStudio, your application or just
something in Windows that is causing problems.  Is there a chance that
there are problems with linkage of the plugin itself and because of
errors in it it's failing to load and is being unloaded automatically
by Win32 functions?

Robert.


On 5 February 2017 at 18:30, Johny Canes <petrussijsma at gmail.com> wrote:
> Hi,
>
> I've built libpng and linked it successfully into the plugin: plugins/osgdb_pngd.dll
>
> However, when I start my program, it says
>
>
> Code:
> 'lwosg.exe' (Win32): Loaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'. Symbols loaded.
> 'lwosg.exe' (Win32): Unloaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'
> 'lwosg.exe' (Win32): Loaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'. Symbols loaded.
> 'lwosg.exe' (Win32): Unloaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'
> 'lwosg.exe' (Win32): Loaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'. Symbols loaded.
> 'lwosg.exe' (Win32): Unloaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'
> 'lwosg.exe' (Win32): Loaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'. Symbols loaded.
> 'lwosg.exe' (Win32): Unloaded 'D:\osg\made\bin\osgPlugins-3.5.6\osgdb_pngd.dll'
>
>
>
> (Once for every .png it tried to load)
>
> The console says
>
> Code:
> Error reading file C:/.../image.png: file not handled
>
>
>
> Some help would be appreciated.
>
> Thank you!
>
> Cheers,
> Johny
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70105#70105
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list