Hi Robert,

The linefeed '\n' is present as the last character of the last argument of
argv when I run an application (from Visual Studio 2010). I did the change
to the ArgumentParser in order to be able to debug code in Visual Studio. A
bug in Visual Studio 2010?

Perhaps we could have  "#ifdef WIN32 .. #endif"  around the code change, or
should we wait for Microsoft to fix it ?

John Ivar Haugland

On Mon, Oct 4, 2010 at 1:36 PM, Robert Osfield <[email protected]>wrote:

> Hi John,
>
> This issue doesn't sound quite right.  I haven't seen other users
> complaining about this issue, and osconv has been in use in it's
> current for from a very long time.  Do you know what the line feed is
> being added?
>
> Robert.
>
> On Wed, Sep 29, 2010 at 8:45 PM, John Ivar Haugland
> <[email protected]> wrote:
> > I found a problem with osgconv when the last argument was a filename and
> not
> > an option. A linefeed was included with the file extension so that
> > OpenSceneGraph couldn't load the corresponding plugin dll when running in
> > debug mode. The linefeed was included as the 6th last character,
> > before "d.dll".
> >
> > To fix the problem, I replaced the linefeed (if present) with '\0' during
> > initialization of the ArgumentParser. The new ArgumentParser.cpp file is
> > attached.
> >
> > My development platform: Visual Studio 2010, x64.
> >
> > Regards
> > John Ivar Haugland
> > _______________________________________________
> > osg-submissions mailing list
> > [email protected]
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
> >
> >
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to