A Critical Error (Invalid hook handle)

Apr 7, 2010 at 3:45 PM

From log:

ErrorID: 269f92cf-be13-4738-8f48-18fc37901e4f
Date: 2010/4/7 下午 10:19:46
Message: invalid WindowsHook
Type: System.ComponentModel.Win32Exception
OS: Microsoft Windows NT 6.1.7600.0
Framework version: .NET CLR 2.0.50727;SLCC2;.NET CLR 3.5.30729;.NET CLR 3.0.30729;Media Center PC 6.0;Tablet PC 2.0
Data: System.Object: |
Native Code: 1404
StackTrace:    at MouseExtender.Logic.Common.WindowsHook.Stop()
   at MouseExtender.MainWindow.SetGlobalHook(Boolean start)
   at MouseExtender.MainWindow.SetLauncherDisabled(Boolean setDisabled)
   at MouseExtender.MainWindow.ShowSettings_Executed(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at System.Windows.Input.CommandManager.TransferEvent(IInputElement newSource, ExecutedRoutedEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Other info:

  • Smallest .NET told me I'm using the latest version of .Net.
  • I'm using the latest ME. (I just downloaded yesterday)
  • ME works fine on Windows XP, but somethings didn't respond on Win 7 (different computer thought).
  • My Win 7 is Traditional Chinese version.

 

ErrorID: 269f92cf-be13-4738-8f48-18fc37901e4f
Date: 2010/4/7 下午 10:19:46
Message: invalid windowsHook
Type: System.ComponentModel.Win32Exception
OS: Microsoft Windows NT 6.1.7600.0
Framework version: .NET CLR 2.0.50727;SLCC2;.NET CLR 3.5.30729;.NET CLR 3.0.30729;Media Center PC 6.0;Tablet PC 2.0
Data: System.Object: |
Native Code: 1404
StackTrace:    at MouseExtender.Logic.Common.WindowsHook.Stop()
   at MouseExtender.MainWindow.SetGlobalHook(Boolean start)
   at MouseExtender.MainWindow.SetLauncherDisabled(Boolean setDisabled)
   at MouseExtender.MainWindow.ShowSettings_Executed(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at System.Windows.Input.CommandManager.TransferEvent(IInputElement newSource, ExecutedRoutedEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Coordinator
Apr 15, 2010 at 6:16 PM

Hello, chenyijay,

Thank you for submitting the bug.

We will look into this issue. In the next version it will be fixed.

Thanks,

Alexey.

Coordinator
Apr 16, 2010 at 9:42 AM
Edited Apr 16, 2010 at 10:31 AM

Hi, chenyijay!

Is it possible to ask you to test our version with improved logging and then send the log back to us?

I cannot reproduce this issue on Virtual Machine.

Version is avaliable here: http://sorokoletov.com/mouseextenderlog.zip

Alex.

Coordinator
Jul 4, 2010 at 11:26 AM
chenyijay, At new version 1.9.0.0 we removed WindowsHook registration on every window refresh. It was a possible issue reason. Please, update your ME version and let us know if bug is reprorduced again. Thanks, Alexey,
Jul 4, 2010 at 2:32 PM
The problem I have been facing, which was caused  by invalid WindowsHook, has ceased to reoccur since I updated to 1.9.0.0.

Thanks for your help.

Jay