Hi Chuck,
On Wed, 2006-04-19 at 11:57 -0700, Chuck Bueche wrote:
> Hi folks,
>
> I've been through the archives and am surprised not to find mention of what
> would seem to be a common problem. I'm running from a
> built-from-source version of OpenSG using the tarball posted on the website
> (1.6.0?). My environment is Studio 2005, and I'm doing
> a debug build. Until recently everything has been fine building and running
> some simple tests, with collision and joints.
>
> The problem arose when I moved to the clustered code (straight from the
> tutorial). That code uses several functions that are
> clashing with the debug tests in the VC8 templates. The basic problem is
> that the MS debug libraries don't allow any vector index
> to exceed the bounds of the vector.
>
> For example, around line 690 of osgmfield.inl, the line
> MFieldTraits::copyToBin(pMem, &(_values[0]), _values.size()); generates an
> error, apparently because it's getting called when the vector is empty, so
> &(_values[0]) is considered insecure/illegal.
>
> Another example that generates a fault is around line 149 of
> OSGBinaryMessage.inl. The line is value.insert(value.begin(),
> (char*)&_buffer[_pos], (char*)&_buffer[_pos+size]. When the last bytes are
> read from _buffer an error is generated.
>
> The last example can be circumvented using an approach such as
> &(_buffer[_pos+size-1])+1, but this is risky and I see in the OpenSG
> code that there are many places where references to the address of an element
> just past the end of a <vector> are made.
>
> Has this problem been brought up? Is there an easy fix? I've tried using
> stlport and had no success on that front with this build.
> I can post build logs if that's the road to take.
>
> Any comments (other than the requisite don't-use-MS-templates sarcasm) would
> be greatly appreciated.
Damn, you took out my immediate response! ;)
That problem should be fixed in the current CVS version. You can get
current builds from http://www.opensg.org/dailybuild_logs/ . That said,
I've never tried cluster stuff on VS.Net 2005, so if you find a place I
missed I'd appreciate a note.
Hope it helps
Dirk
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users