See report of crashes with Wine. It is not clear what the root cause is, as there is no stack trace to show which method call fails, the error message, or what exception class it throws. Typically, catching Win32Exception is good enough, but it may also be a native fault in unmanaged code.
It may also be smart to double-check that it doesn't crash in older Windows versions that, like Wine, don't contain the required DWM methods. I already tested this in Windows 7 before, but there may be a problem there now given the Wine crashes.
KeePass has good instructions of how to run .NET programs with Mono and Wine.
See report of crashes with Wine. It is not clear what the root cause is, as there is no stack trace to show which method call fails, the error message, or what exception class it throws. Typically, catching
Win32Exceptionis good enough, but it may also be a native fault in unmanaged code.It may also be smart to double-check that it doesn't crash in older Windows versions that, like Wine, don't contain the required DWM methods. I already tested this in Windows 7 before, but there may be a problem there now given the Wine crashes.
KeePass has good instructions of how to run .NET programs with Mono and Wine.