Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On 21/06/11 15:17, Markus Mohrhard wrote:
Hello Noel, all,

I have attached a test document and a diff. I don't understand why this still crashs calc even if there is nothing anymore that can create any problems.
well it doesn't crash for me ( even worse it doesn't crash without the patch either ) and even worse still valgrind doesn't even complain. Welll we know that erase invalidates vector iterators so I don't see a problem with your patch ( or doubt it's validity ) but still interested in reproducing at least this problem. Is there something else I need to do?

Noel

probably though I would just do the following rather than saving the iterator and doing the delete and erase outside the loop

    if ( (*it)->mnID == nID )

   {
       delete *it;
       maPersistTable.erase( it );
       break;
   }



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.