Perhaps your CPU is faster than mine, so maybe you could trigger this bug more easily by running something CPU-heavy at the same time?
I've done some further testing and I think the trick is to generate so many messages that the application starts getting unresponsive. I've had a few tries where there weren't many messages captured, and WD didn't crash then.
Yes, pretty consistently. I just restarted my computer and tried it twice (with Thunderbird), WD crashed both times.
Crash when stopping message capturing
That seems to have solved the problem. I was unable to reproduce the crash after applying your fix.
Would you find it helpful if I ran a debug build and sent a stack trace or a crash dump?
The window being captured doesn't get destroyed as far as I've noticed. It happens every time, I can reproduce the bug reliably. Oh and I forgot to mention, my system is Windows 10 64-bit.
Crash when capturing messages