Code52 / carnac

A utility to give some insight into how you use your keyboard
http://carnackeys.com/
Microsoft Public License
4.2k stars 506 forks source link

the process may not exist, and that's okay #129

Closed shiftkey closed 7 years ago

shiftkey commented 7 years ago

Fixes #89

This is probably a naive fix for the issue reported:

Try to create a scenario where you input a key and the console exits before carnac displays your key. The app will stop working since GetAssociatedProcess() method won't find the process Id associated and an exception arises.

So this tries a steps to be more resilient:

Make sense @alfhenrik?