Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotkey already in use exception #18

Closed
a-x- opened this issue Oct 13, 2014 · 7 comments
Closed

Hotkey already in use exception #18

a-x- opened this issue Oct 13, 2014 · 7 comments
Assignees
Labels

Comments

@a-x-
Copy link

a-x- commented Oct 13, 2014

image

// Excuse my beginner's English

When i attempt open options causing this exception window and options window is not opening.

Window debug text:

Подробная информация об использовании оперативной 
(JIT) отладки вместо данного диалогового 
окна содержится в конце этого сообщения.

************** Текст исключения **************
ManagedWinapi.HotkeyAlreadyInUseException: Выдано исключение типа "ManagedWinapi.HotkeyAlreadyInUseException".
   в ManagedWinapi.Hotkey.updateHotkey(Boolean reregister)
   в Switcheroo.HotKey.LoadSettings()
   в Switcheroo.OptionsWindow..ctor()
   в Switcheroo.MainWindow.Options()
   в System.Windows.Forms.Command.Invoke()
   в System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Загруженные сборки **************
mscorlib
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18444 built by: FX451RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
switcheroo
    Версия сборки: 0.8.0.50
    Версия Win32: 0.8.0.50
    CodeBase: file:///C:/Program%20Files%20(x86)/Switcheroo/switcheroo.exe
----------------------------------------
PresentationFramework
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
PresentationCore
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Xaml
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
ManagedWinapi
    Версия сборки: 0.8.0.50
    Версия Win32: 0.8.0.50
    CodeBase: file:///C:/Program%20Files%20(x86)/Switcheroo/ManagedWinapi.DLL
----------------------------------------
System.Windows.Forms
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
PresentationFramework.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.resources/v4.0_4.0.0.0_ru_31bf3856ad364e35/PresentationFramework.resources.dll
----------------------------------------
PresentationFramework.Aero
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
mscorlib.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Версия сборки: 4.0.0.0
    Версия Win32: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.

Например:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.

Have any ideas?
Thanks!

@a-x-
Copy link
Author

a-x- commented Oct 13, 2014

I was edit manually switcheroo.exe.config for enable Switcheroo alt-tab hook now.

@a-x-
Copy link
Author

a-x- commented Oct 13, 2014

p.s. Alt + Space hotkey is binded in my system for language switching.

@kvakulo
Copy link
Owner

kvakulo commented Oct 13, 2014

Thanks for the report! That is for sure a nasty bug in Switcheroo.

I'll fix the issue as soon as possible :)

  • Regin

@kvakulo kvakulo added the bug label Oct 13, 2014
@kvakulo kvakulo self-assigned this Oct 13, 2014
@a-x-
Copy link
Author

a-x- commented Oct 13, 2014

Thanx! :-)

I so so happy because i found this grand app!
Thank you for for the work!

kvakulo added a commit that referenced this issue Oct 14, 2014
If the hotkey was reserved by another program, then the "Options"
window could not be opened, because a HotkeyAlreadyInUseException
was being thrown but not handled.
@kvakulo
Copy link
Owner

kvakulo commented Oct 14, 2014

The issue should be fixed now. Would you mind trying out the latest release?
https://github.com/kvakulo/Switcheroo/releases/tag/v0.8.1

Please let me know if you experience other issues or have suggestions for further features :)

@a-x-
Copy link
Author

a-x- commented Oct 15, 2014

Yeah!

Thank you!

If I'll find ideas for features then I suggest them for you.

@kvakulo
Copy link
Owner

kvakulo commented Oct 15, 2014

👍

@kvakulo kvakulo closed this as completed Oct 15, 2014
teglsbo pushed a commit to teglsbo/Switcheroo that referenced this issue May 18, 2020
Number first ten entries to ease alt+number quick access.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants