sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
792 stars 162 forks source link

Fix: crashes on windows #125

Closed ambarvm closed 3 years ago

ambarvm commented 3 years ago

Fixes #103

active-win crashes on windows when called more than once. These crashes are due to use of ref-struct-napi which is incompatible with ref-napi. Using ref-struct-di instead fixes this.

https://github.com/node-ffi-napi/ref-napi#incompatible-packages

The ref-struct-napi and ref-array-napi packages have names that sound like they are compatible with this module. They are not, and your application will experience crashes if you use them together with ref-napi. Use ref-struct-di or ref-array-di instead.