<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Arial-BoldMT-TT;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I think I found a bug in the following function:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">void ObjectCache::removeExpiredObjectsInCache(double expiryTime)<o:p></o:p></p>
<p class="MsoNormal">{<o:p></o:p></p>
<p class="MsoNormal">    OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_objectCacheMutex);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">    // Remove expired entries from object cache<o:p></o:p></p>
<p class="MsoNormal">    ObjectCacheMap::iterator oitr = _objectCache.begin();<o:p></o:p></p>
<p class="MsoNormal">    while(oitr != _objectCache.end())<o:p></o:p></p>
<p class="MsoNormal">    {<o:p></o:p></p>
<p class="MsoNormal">        if (oitr->second.second<=expiryTime)<o:p></o:p></p>
<p class="MsoNormal">        {<o:p></o:p></p>
<p class="MsoNormal">           // _objectCache.erase(oitr++);                      << This line was causing unpredictable issues.
<o:p></o:p></p>
<p class="MsoNormal">            oitr = _objectCache.erase(oitr);                    << replaced with this line.
<o:p></o:p></p>
<p class="MsoNormal">        }<o:p></o:p></p>
<p class="MsoNormal">        else<o:p></o:p></p>
<p class="MsoNormal">        {<o:p></o:p></p>
<p class="MsoNormal">            ++oitr;<o:p></o:p></p>
<p class="MsoNormal">        }<o:p></o:p></p>
<p class="MsoNormal">    }<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Guy Volckaert</span></b><b><span style="color:#1F497D;mso-fareast-language:EN-CA">, ing.</span></b><span style="color:#1F497D;mso-fareast-language:EN-CA"><br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Snr Software Engineer</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA"> </span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><b><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Meggitt Training Systems (Quebec) Inc.</span></b><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><b><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Systèmes d’entraînement Meggitt (Québec) Inc.</span></b><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">6140 Henri Bourassa West</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Montreal, Quebec, H4R 3A6</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Canada</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA"> </span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Tel: 1 (514) 339 9938 Ext 617</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Fax: 1 (514) 339 2641</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">Cell: 1 (514) 928-5641</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">email: </span><span style="color:#1F497D;mso-fareast-language:EN-CA"><a href="mailto:brian.bakker@meggitt.com"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">guy.volckaert@meggitt.com</span></a>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">url;
</span><span style="color:#1F497D;mso-fareast-language:EN-CA"><a href="http://www.meggitt.com"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">www.meggitt.com</span></a>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA">skype: guy.volckaert</span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><span style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-CA"> </span><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><b><span style="font-size:7.5pt;font-family:Arial-BoldMT-TT;color:#287739;mso-fareast-language:EN-CA">Svp. Considérez l’environnement avant d’imprimer</span></b><span style="color:#1F497D;mso-fareast-language:EN-CA">
<br>
</span><b><span style="font-size:7.5pt;font-family:Arial-BoldMT-TT;color:#287739;mso-fareast-language:EN-CA">Please consider the environment before printing this e-mail.</span></b><span style="color:#1F497D;mso-fareast-language:EN-CA">
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"></font><font face="Arial" color="Gray" size="1"><br>
<br>
<font></font></font><font face="Arial" color="Gray" size="1">This e-mail may contain proprietary information and/or copyright material. This e-mail is intended for the use of the addressee only. Any unauthorized use may be unlawful. If you receive this e-mail
 by mistake, please advise the sender immediately by using the reply facility in your e-mail software.<br>
<br>
Information contained in and/or attached to this document may be subject to export control regulations of the European Community, USA, or other countries. Each recipient of this document is responsible to ensure that usage and/or transfer of any information
 contained in this document complies with all relevant export control regulations. If you are in any doubt about the export control restrictions that apply to this information, please contact the sender immediately.<br>
<br>
Be aware that Meggitt may monitor incoming and outgoing e-mails to ensure compliance with the Meggitt IT Use policy.<br>
<br>
<font></font></font>
</body>
</html>