home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Generic Keyboard/Remote Input Plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markos" data-source="post: 751664" data-attributes="member: 82319"><p>I know it's quite long since this has been discussed but I know why the hook sometimes stops working. When passing delegate to native functions (SetWindowsHookEx in this case), .NET's garbage collector does not know that it is still being used and collects the delegate. This can be avoided by storing reference to the delegate (even if it is not used in code anymore).</p><p></p><p>I have rewritten the keyboard hook so this should not happen anymore. I would be glad if original author included this fix in his project so all new versions contain the fixed code.</p><p></p><p>It is compiled against the 1.1.3 version of Mediaportal.</p><p></p><p>As I am not the original author, I did not increment version nubmer to not cause confusion.</p><p></p><p>Markos</p></blockquote><p></p>
[QUOTE="Markos, post: 751664, member: 82319"] I know it's quite long since this has been discussed but I know why the hook sometimes stops working. When passing delegate to native functions (SetWindowsHookEx in this case), .NET's garbage collector does not know that it is still being used and collects the delegate. This can be avoided by storing reference to the delegate (even if it is not used in code anymore). I have rewritten the keyboard hook so this should not happen anymore. I would be glad if original author included this fix in his project so all new versions contain the fixed code. It is compiled against the 1.1.3 version of Mediaportal. As I am not the original author, I did not increment version nubmer to not cause confusion. Markos [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Generic Keyboard/Remote Input Plugin
Contact us
RSS
Top
Bottom