mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
enable crash in debug mode
This commit is contained in:
parent
6b2bbba706
commit
61133e14b5
1 changed files with 6 additions and 0 deletions
|
@ -1626,14 +1626,20 @@ namespace PersistentWindows.Common
|
|||
|
||||
private void WinEventProc(IntPtr hWinEventHook, User32Events eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
|
||||
{
|
||||
#if DEBUG
|
||||
#else
|
||||
try
|
||||
#endif
|
||||
{
|
||||
WinEventProcCore(hWinEventHook, eventType, hwnd, idObject, idChild, dwEventThread, dwmsEventTime);
|
||||
}
|
||||
#if DEBUG
|
||||
#else
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
private void WinEventProcCore(IntPtr hWinEventHook, User32Events eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue