Hi there,
Good news, it seems :)
On December 16, Robert committed a patch that included the following
lines in FreeTypeLibrary.cpp
if (font) font->setImplementation(0);
fontImplementation->_facade = 0;
However, they are clearly wrong (at least, when the program exits)
because after the first one is executed, fontImplementation points to
unallocated space. Thus setting the _facade to 0 creates the "memory
was modified after it was freed" error.
I have tried to comment out the 2nd line, and the program exits correctly.
As a side note, adding the
osgDB::Registry::instance()->clearObjectCache();
suggested by Jari before the program exists (this would prevent the
problem from happening before my fix trial) does not create any memory
leak. I guess it means that the second instruction above is redundant.
I have also tested the fix in my application, and the error message at
exit went away.
I have not had the opportunity to test on Linux yet because I'm not in
synch with SVN on this platform. Could you guys try this fix in your
various environments ?
On Feb 7, 2008 2:50 PM, Jean-Sébastien Guay
<[EMAIL PROTECTED]> wrote:
> Hello Thibault,
>
> > I am using VS 2008 and Mike's DLL compiled for 7.1. I have had no
> > problem so far, so I guess the problem is inside the OSG, and not
> > exactly related to FreeType.
> >
>
> First of all, if you're using VS 2008 you really should use the 8.0
> precompiled binaries at a minimum, and I don't think we've done enough
> testing yet to even confirm if that's a good idea or not. Up until now,
> it seems fine, but it could lead to problems in the future. Ideally, we
> should have binaries for 9.0, as historically using libs/dlls compiled
> with a version of VC++ different from the one you're using to compile
> your executable would lead to weird problems/crashes. In this case it's
> too early to tell.
>
You are quite right, I should take the secure route, but as far as I
know, pure C libs have absolutely no problem being used by other
versions of the compiler.
Anyway I'll change my 3rd party libs soon, we never know what
Microsoft will do in the next version of their compiler :)
Thibault
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org