Hi Chen,

The changes to the code you've made change what it does and starts
mixing iterators from two different containers (that aren't event the
same type), so you've almost certainly broken the code.

It's a while since I wrote this particular code so exactly what it
does and how it's used escapes me right now - I'll need to do a wider
code review to uncover this.  I really don't know whether there is a
bug here or not, lowering the amount of memory your system has
available will eventually introduce memory errors at some point - but
that would happen for almost all apps, a memory itself doesn't not
indicate a bug in the code that end up crashing at.

Could you please post a stack trace so we can analyse the issue
further, as well as info on exactly which VPB apps you are using, OS,
how much memory you set, etc.

Robert.

On Wed, Jun 10, 2009 at 4:20 AM, wind<509459...@qq.com> wrote:
> Hi,
>  Robert, when i set my machine's virtual memory to a lower value for some
> test related to vpb, thousands of image files as input, then vpb jumps into
> this error:
>     //system.cpp, Line 305,
>     void eraseFrom(System::DatasetMap& datasetMap)
>     {
>         for(TimeIteratorMap::iterator itr = _timeIteratorMap.begin();
>             itr != _timeIteratorMap.end();
>             ++itr)
>         {
>             datasetMap.erase(itr->second);
>         }
>     }
>    Evidently, the iterator was used incorrectly. So i changed it:
>      void eraseFrom(System::DatasetMap& datasetMap)
>     {
>         for(TimeIteratorMap::iterator itr = _timeIteratorMap.begin();
>             itr != _timeIteratorMap.end();)
>         {
>             itr = datasetMap.erase(itr->second);
>         }
>     }
>   Then it works. My version is r973. Hope to correct it in later version.
>
>   Xuex, Chen
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to