<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        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";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I'm building 1.11.0 as a DLL on Windows with CPL_MULTIPROC_WIN32 and <o:p></o:p></p><p class=MsoNormal>USE_WIN32_MUTEX defined. Everything builds fine, but in my workflow a debug <o:p></o:p></p><p class=MsoNormal>build always fails while the release build succeeds. I'm using a modified <o:p></o:p></p><p class=MsoNormal>version of gdalwarp.cpp as a function linked into the DLL instead of as a <o:p></o:p></p><p class=MsoNormal>standalone executable.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The reason for the debug failure is the sole CPLAssert() in ogrct.cpp. It is commented out in the snippet below. The snippet begins at line 876 of the source file. Once commented out the debug version of my workflow seems to work fine, raising the question of the need for this assertion? I don't  know enough about ogrct.cpp or the CPL mutex to be confident about my decision to ignore it. Can anyone comment?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>/* -------------------------------------------------------------------- */<o:p></o:p></p><p class=MsoNormal>/*      Do the transformation using PROJ.4.                             */<o:p></o:p></p><p class=MsoNormal>/* -------------------------------------------------------------------- */<o:p></o:p></p><p class=MsoNormal>    if( !bIdentityTransform && pjctx == NULL )<o:p></o:p></p><p class=MsoNormal>    {<o:p></o:p></p><p class=MsoNormal>        /* The mutex has already been created */<o:p></o:p></p><p class=MsoNormal>        //CPLAssert(hPROJMutex != NULL);<o:p></o:p></p><p class=MsoNormal>        CPLAcquireMutex(hPROJMutex, 1000.0);<o:p></o:p></p><p class=MsoNormal>    }<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>TIA,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.5pt;color:black'>Alan Stewart<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;color:black'>Senior Software Engineer<o:p></o:p></span></p><p class=MsoNormal><b><span style='color:#C00000'>Terra</span></b><b><span style='color:#E36C0A'>Go </span></b><b><span style='color:#C00000'>Technologies</span></b><span style='font-family:"Times New Roman","serif";color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>3200 Windy Hill Road, Suite 1550W</span><span style='color:black'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Atlanta, GA 30339 USA<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>O.  +1 678.391.9615<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><a href="applewebdata://B24C0762-C7C9-4431-8518-ACC915448B89/www.terragotech.com"><span style='color:purple'>www.terragotech.com</span></a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>