Hi!
We had a crash we thought was related to the new aspect
syncing code, but it turned out to be in OSGWindow.
When field.size() happens to be equal to id the
vector wont be resized and is indexed outside.
Patch below:
Index:
C:/home/johang/Projects/Trainer/work/OpenSG/Source/System/Window/OSGWindow.cpp
===================================================================
---
C:/home/johang/Projects/Trainer/work/OpenSG/Source/System/Window/OSGWindow.cpp
(revision 259)
+++
C:/home/johang/Projects/Trainer/work/OpenSG/Source/System/Window/OSGWindow.cpp
(revision 274)
@@ -712,7 +712,7 @@
UInt32 lastinv = (*it)->getGlObjectEventCounter() + 1;
MFUInt32 &field = (*it)->_mfGlObjectLastRefresh;
- if(field.size() < id)
+ if(field.size() <= id)
field.getValues().insert(field.end(), id - field.size() + 1, 0 );
field[id] = lastinv;
(*it)->setGlObjectEventCounter(lastinv);
Best regards,
Johan Grafström
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users