<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Sep 26, 2018 at 8:03 AM Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One could instead write to a temporary/random file name and then<br>
rename when finished.  CMake generates most of its files that way.<br></blockquote><div><br></div><div>Thanks for the advice (and for taking the time to read this thread.)  This may</div><div>be the ultimate solution, though I still want to do some digging to see what</div><div>what magic cl.exe itself uses to avoid this AV interference.</div><div><br></div><div>For now, though, I'll put together a patch that prints the value of errno when</div><div>fopen() fails.  I'll probably print the result of GetLastError() too, since this is</div><div>a Windows issue.  Hopefully Andrew will be able to see those and report on</div><div>them.</div><div><br></div><div>Andras, you used to see similar errors with cmake when it was configuring,</div><div>so I have to ask, have you seen vtkWrapPython itself fail this way?  I'm still</div><div>trying to get a feel for how widespread this issue is.</div><div><br></div><div> - David</div></div></div>