removeMapLayer crashes

classic Classic list List threaded Threaded
2 messages Options
FF FF
Reply | Threaded
Open this post in threaded view
|

removeMapLayer crashes

Hi all,
my app crashes when I try to remove a map layer from a map:
map->removeMapLayer(layer);

and it crashes inside:

Map::removeMapLayer( MapLayer* layer )
{
......
    if ( layerToRemove.get() )
    {
        ScopedWriteLock lock( getMapDataMutex() ); // HERE's THE CRASH


Any idea why?
Thanks.

Fausto
FF FF
Reply | Threaded
Open this post in threaded view
|

Re: removeMapLayer crashes

Hi again,
never mind for this problem, I've been able to fix it and didn't depend on osgEarth.

Cheers.
Fausto