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
Support
General Support
DVD insert notification more then 3 times
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="tourettes" data-source="post: 407848" data-attributes="member: 10858"><p>There are two different issues:</p><p></p><p>#1 device monitor instances aren't cleaned properly</p><p></p><p>[code]</p><p>StopListeningForEvents()</p><p></p><p>should have</p><p></p><p> _deviceMonitor.OnVolumeInserted -= new DeviceVolumeAction(VolumeInserted);</p><p> _deviceMonitor.OnVolumeRemoved -= new DeviceVolumeAction(VolumeRemoved);</p><p>[/code]</p><p></p><p>#2 DeviceVolumeMonitor objects aren't disposed (GC won't remove those when the handle is not released by fInternal.ReleaseHandle();</p><p></p><p>1st one is easy to fix (this will slow down the system resource leaking as it will not leak the resources in power of two...) but the 2nd one is nasty as the previos fix was done to cure some bug with music visualization and Moving Pictures plugin (if I remember correctly).</p><p></p><p>DeviceMonitor.Enabled = false; is doing the same as the commented code i.e. releasing the handle.</p></blockquote><p></p>
[QUOTE="tourettes, post: 407848, member: 10858"] There are two different issues: #1 device monitor instances aren't cleaned properly [code] StopListeningForEvents() should have _deviceMonitor.OnVolumeInserted -= new DeviceVolumeAction(VolumeInserted); _deviceMonitor.OnVolumeRemoved -= new DeviceVolumeAction(VolumeRemoved); [/code] #2 DeviceVolumeMonitor objects aren't disposed (GC won't remove those when the handle is not released by fInternal.ReleaseHandle(); 1st one is easy to fix (this will slow down the system resource leaking as it will not leak the resources in power of two...) but the 2nd one is nasty as the previos fix was done to cure some bug with music visualization and Moving Pictures plugin (if I remember correctly). DeviceMonitor.Enabled = false; is doing the same as the commented code i.e. releasing the handle. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
DVD insert notification more then 3 times
Contact us
RSS
Top
Bottom