Debugging MFC / C++ with printf.
At some point I should get a line that tells me what the failure error was.

There's a small chance the extra time the printf takes is enough to disrupt the race condition that's probably causing the error.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://8bitorbust.info/users/dtl/statuses/114318860850494598 on your instance and quote it. (Note that quoting is not supported in Mastodon.)