I traced the problem to the project's Inline Function Expansion setting of "Any Suitable (/Ob2)" applied when release mode is selected.
This is with the current patches of Visual Studio 2017. I don't know whether or not older Visual Studios have the same problem. -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/e343de8c-c2d6-4ffa-a398-163c27bda169%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

