Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

Error: The Hook Procedure is not installed


Bradley Smith
 Share

Recommended Posts

Bradley Smith
Posted
Posted (edited)

Hi,

When launching Xpilot in Windows I get the following:

image.png.c04eb321d91fce68191a1760a764a151.png

I have .NET 4.8 installed.

image.png.4e2dafdf26588976bc13bfa53e45a2af.png

Below is the Global Exceptions Output.

<START>

xPilot, Version=1.3.27.0, Culture=neutral, PublicKeyToken=null
============================================================
Culture     : en-US
OS          : Microsoft Windows NT 6.2.9200.0
Framework   : 4.0.30319.42000
Time        : 08/14/2020 19:06:12
------------------------------------------------------------
Details: System.ComponentModel.Win32Exception (0x80004005): The hook procedure is not installed
   at Gma.System.MouseKeyHook.WinApi.HookHelper.ThrowLastUnmanagedErrorAsException()
   at Gma.System.MouseKeyHook.WinApi.HookHelper.HookGlobal(Int32 hookId, Callback callback)
   at Gma.System.MouseKeyHook.WinApi.HookHelper.HookGlobalKeyboard(Callback callback)
   at Gma.System.MouseKeyHook.Implementation.BaseListener..ctor(Subscribe subscribe)
   at Gma.System.MouseKeyHook.Implementation.KeyListener..ctor(Subscribe subscribe)
   at Gma.System.MouseKeyHook.Implementation.GlobalKeyListener..ctor()
   at Gma.System.MouseKeyHook.Implementation.GlobalEventFacade.CreateKeyListener()
   at Gma.System.MouseKeyHook.Implementation.EventFacade.GetKeyListener()
   at Gma.System.MouseKeyHook.Implementation.EventFacade.add_KeyDown(KeyEventHandler value)
   at XPilot.PilotClient.MainForm.GlobalHookSubscribe() in C:\xpilot-project\pilot-client\MainForm.cs:line 207
   at XPilot.PilotClient.MainForm..ctor(IEventBroker eventBroker, IAppConfig appConfig, IFsdManger networkManager, IUserInterface userInterface, ITabPages tabPages, IControllerAtisManager atisManager) in C:\xpilot-project\pilot-client\MainForm.cs:line 163
   at DynamicInjector7dbbcbd96b3c453cbddfae38d5eeb60d(Object[] )
   at Ninject.Activation.Providers.StandardProvider.Create(IContext context)
   at Ninject.Activation.Context.ResolveInternal(Object scope)
   at Ninject.Activation.Context.Resolve()
   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)
   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)
   at Ninject.KernelBase.Resolve(IRequest request)
   at Ninject.ResolutionExtensions.GetResolutionIterator(IResolutionRoot root, Type service, Func`2 constraint, IEnumerable`1 parameters, Boolean isOptional, Boolean isUnique)
   at Ninject.ResolutionExtensions.Get[T](IResolutionRoot root, IParameter[] parameters)
   at XPilot.PilotClient.Program.Main() in C:\xpilot-project\pilot-client\Program.cs:line 72
============================================================
xPilot, Version=1.3.27.0, Culture=neutral, PublicKeyToken=null
============================================================
Culture     : en-US
OS          : Microsoft Windows NT 6.2.9200.0
Framework   : 4.0.30319.42000
Time        : 08/14/2020 19:10:17
------------------------------------------------------------
Details: System.ComponentModel.Win32Exception (0x80004005): The hook procedure is not installed
   at Gma.System.MouseKeyHook.WinApi.HookHelper.ThrowLastUnmanagedErrorAsException()
   at Gma.System.MouseKeyHook.WinApi.HookHelper.HookGlobal(Int32 hookId, Callback callback)
   at Gma.System.MouseKeyHook.WinApi.HookHelper.HookGlobalKeyboard(Callback callback)
   at Gma.System.MouseKeyHook.Implementation.BaseListener..ctor(Subscribe subscribe)
   at Gma.System.MouseKeyHook.Implementation.KeyListener..ctor(Subscribe subscribe)
   at Gma.System.MouseKeyHook.Implementation.GlobalKeyListener..ctor()
   at Gma.System.MouseKeyHook.Implementation.GlobalEventFacade.CreateKeyListener()
   at Gma.System.MouseKeyHook.Implementation.EventFacade.GetKeyListener()
   at Gma.System.MouseKeyHook.Implementation.EventFacade.add_KeyDown(KeyEventHandler value)
   at XPilot.PilotClient.MainForm.GlobalHookSubscribe() in C:\xpilot-project\pilot-client\MainForm.cs:line 207
   at XPilot.PilotClient.MainForm..ctor(IEventBroker eventBroker, IAppConfig appConfig, IFsdManger networkManager, IUserInterface userInterface, ITabPages tabPages, IControllerAtisManager atisManager) in C:\xpilot-project\pilot-client\MainForm.cs:line 163
   at DynamicInjector8eeee2423fbf4766a21cc9fc202613a5(Object[] )
   at Ninject.Activation.Providers.StandardProvider.Create(IContext context)
   at Ninject.Activation.Context.ResolveInternal(Object scope)
   at Ninject.Activation.Context.Resolve()
   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)
   at Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings)
   at Ninject.KernelBase.Resolve(IRequest request)
   at Ninject.ResolutionExtensions.GetResolutionIterator(IResolutionRoot root, Type service, Func`2 constraint, IEnumerable`1 parameters, Boolean isOptional, Boolean isUnique)
   at Ninject.ResolutionExtensions.Get[T](IResolutionRoot root, IParameter[] parameters)
   at XPilot.PilotClient.Program.Main() in C:\xpilot-project\pilot-client\Program.cs:line 72
============================================================

<END>

Kind Regards,

Bradley

Edited by Bradley Smith
Link to comment
Share on other sites

 Share