<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 14 May 2020, at 4:42 am, Peter Bennett <<a href="mailto:pb.mythtv@gmail.com" class="">pb.mythtv@gmail.com</a>> wrote:</div></blockquote><div><br class=""></div>...<br class=""><blockquote type="cite" class=""><div class=""><div class="">There may be a better place to put the call to MythDB::destroyMythDB().<br class=""></div></div></blockquote><br class=""></div><div><br class=""></div><div><br class=""></div><div>Haven’t looked al latest source code (in a LONG time :-), but</div><div><br class=""></div><div>MythCoreContextPrivate::~MythCoreContextPrivate()</div><div class=""><br class=""></div>used to have:<div class=""><br class=""></div><div class="">    GetMythDB()->GetDBManager()->CloseDatabases();<br class=""><br class="">    if (m_database) {<br class="">        DestroyMythDB();<br class="">        m_database = NULL;<br class="">    }<br class=""><br class=""><div><br class=""></div><div><br class=""></div><div>I suspect there is now a race condition where the context is not being destructed in time? </div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: 'Harmony Text'; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><br class="">--<br class="">Nigel Pearson, 02 9792 6998, 0408 66 44 35<br class=""><a href="mailto:nigel.pearson.au@gmail.com" class="">nigel.pearson.au@gmail.com</a></div>

</div>
<br class=""></div></body></html>