The code I just wrote smells (but works correctly and without presenting warning messages), but the alternatives I can think of all look worse.

Follow

So I tried cleaning this code up and now the program crashes instead of working UNLESS there's a debugger attached, at which point everything works perfectly.

· · Web · 1 · 0 · 0

Fixed. Uninitialized member. Was getting set to nullptr with a debugger attached but not without.

Sign in to participate in the conversation
Typica Social

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!