NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 59 60 61 62 63 … 193 Next »
MDAPI Systray Icon

 
  • 0 Vote(s) - 0 Average
MDAPI Systray Icon
observer_11
Offline

Senior Member

Posts: 315
Threads: 52
Joined: Dec 2005
#1
2008-09-13, 03:43 PM (This post was last modified: 2008-09-13, 06:33 PM by observer_11.)
From this DVBN thread:
Doefus Wrote:
observer_11 Wrote:Longstanding nuisance with the MDAPI systray icon remaining after exit in GBPVR. If I manually hover the mouse pointer over top it disappears. MDAPI has always behaved this way regardless of software versions. Not a huge issue, more of a wishlist fix for future.

Already have a fix for this, only works for a single active instance of mdapi though. It actually is a bug in gbpvr.

It would be nice if this could be fixed in a future version, currently I have to exit the GUI and hover the systray icon (or reboot the HTPC) in order to reset MDAPI. This problem forces me to have to enable the option for Re-use MDAPI Filter.
.

HTPC Server: AMD Athlon XP 3200+, 768Mb RAM, Gigabyte 6200 AGP, Hauppauge 500MCE Capture Tuner, WinXP Pro SP3 (concurrent users), NPVR 2.5.9
Client1: PCH A110 Client2: AMD Opteron 2.6Ghz, 2Gb DDR, ATI 1650, WinXP Pro SP3, NPVR 2.5.9 Client3: Intel E6420, 2Gb RAM, XFX Radeon HD 7850, WinXP Pro SP3, NPVR 2.5.9 Client 4: Intel E2120, 4Gb DDR2, Nvidia 7600GS, Vista SP1 32-bit, NPVR 2.5.9
JePe
Offline

Junior Member

Posts: 29
Threads: 5
Joined: Jul 2008
#2
2008-09-13, 08:41 PM
And the bug is a missing Release call on the mdapi COM object...

IMDAPIFilter *IMyObject;

// Now we will intialize COM
hr = CoInitialize(0);

// Use the SUCCEEDED macro and see if we can get a pointer
// to the interface
if(SUCCEEDED(hr))
{
hr = CoCreateInstance( CLSID_MyObject, NULL, CLSCTX_INPROC_SERVER,IID_IMyObject, (void**) &IMyObject);

hr = IMyObject->Release();//missing
}

// Uninitialize COM
CoUninitialize();
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#3
2008-09-13, 08:44 PM
It should be released if you dont have the 'reuse MDAPI filter' enabled. This was required until very recent versions of the filter that fixed other bugs.

The reason it didnt release it was because old versions of the mdapi filter would crash during the release, and would crash the process. The app would instead create an instance of the MDAPI filter when it was first needed, and not release it, and continue to use the single instance until the app was closed.
observer_11
Offline

Senior Member

Posts: 315
Threads: 52
Joined: Dec 2005
#4
2008-09-13, 11:16 PM
sub Wrote:It should be released if you dont have the 'reuse MDAPI filter' enabled.

It doesn't seem to release - when I disable Reuse MDAPI Filter I literally end up with several instances of the MDAPI icon in the systray and no subsequent channel changes work. :confused:
.

HTPC Server: AMD Athlon XP 3200+, 768Mb RAM, Gigabyte 6200 AGP, Hauppauge 500MCE Capture Tuner, WinXP Pro SP3 (concurrent users), NPVR 2.5.9
Client1: PCH A110 Client2: AMD Opteron 2.6Ghz, 2Gb DDR, ATI 1650, WinXP Pro SP3, NPVR 2.5.9 Client3: Intel E6420, 2Gb RAM, XFX Radeon HD 7850, WinXP Pro SP3, NPVR 2.5.9 Client 4: Intel E2120, 4Gb DDR2, Nvidia 7600GS, Vista SP1 32-bit, NPVR 2.5.9
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#5
2008-09-14, 12:31 AM
I'll put it on my list of things to check for the next release.
JePe
Offline

Junior Member

Posts: 29
Threads: 5
Joined: Jul 2008
#6
2008-09-14, 05:34 AM
sub Wrote:It should be released if you dont have the 'reuse MDAPI filter' enabled. This was required until very recent versions of the filter that fixed other bugs.

The reason it didnt release it was because old versions of the mdapi filter would crash during the release, and would crash the process. The app would instead create an instance of the MDAPI filter when it was first needed, and not release it, and continue to use the single instance until the app was closed.

It doesn't even release upon application exit, so if you can look at it, would be nice.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#7
2008-09-14, 05:42 AM
When reusing the MDAPI filter it purposefully wouldnt call Release() even when the app exited, since the user would see an ugly crash message. At app shutdown it'd call the IMDAPIFilter->Close() method to remove the tray icon. In later versions of the MDAPI filter some bright spark changed the interface without versioning it, so apps using it would have no way of knowing if it had a version of the MDAPI filter with the Close() method in the right place in the interface, so this may or may not work for you. (probably will with older versions though - versions that only had three methods on IMDAPIFilter inteface)

I'll look into why it wasnt being released with 'reuse MDAPI filter' disabled though.

I intend to keep the existing behaviour with the 'reuse MDAPI filter' setting enabled, because I'm still using a very old version of the MDAPI filter. As the saying goes, if aint broke...
JePe
Offline

Junior Member

Posts: 29
Threads: 5
Joined: Jul 2008
#8
2008-09-14, 06:48 AM
Ok, I'm getting the point. I was indeed under the impression that 'reuse MDAPI filter' enabled keeps mdapi alive within gbpvr even if you're not watching livetv but releases mdapi upon application exit. Apparently this crashed gbpvr. If you're keeping the existing behaviour, then we'll have to create a workaround in mdapi to keep track of created references and destroy them ourselves.

The Agarwal version also has more than 3 methods in the interface so I'm curious to what version you're referring to.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Make channel icon filename matching case insenstive. RetiredWithDogs 0 701 2024-04-03, 07:17 AM
Last Post: RetiredWithDogs
  Taskbar icon for settings and check if not already open tripkip 0 1,759 2016-08-20, 08:35 AM
Last Post: tripkip
  NPVR notification area icon right click to settings without having to "Start N-PVR" tripkip 4 2,742 2015-12-20, 05:36 PM
Last Post: sub
  Tray Icon wish roy 14 5,333 2011-09-24, 03:24 AM
Last Post: SFX Group
  Skip MDAPI and interface directly to ACAMD Reddwarf 6 6,096 2010-02-03, 08:51 AM
Last Post: 7ore
  the Small recording Status icon on taskbar Zeno110 1 1,503 2010-01-29, 04:16 AM
Last Post: Zeno110
  MDAPI enabled for config preview of scanned channels Barsk 7 3,540 2009-09-17, 07:30 AM
Last Post: Barsk
  Separate MDAPI plugins per tuner kendrak24 5 3,839 2009-09-13, 07:36 PM
Last Post: Sheik Yerbouti
  Tray Icon skycyclepilot 1 1,391 2009-02-23, 11:08 AM
Last Post: McBainUK
  volume bar/mute icon reven 7 3,487 2008-11-13, 12:40 PM
Last Post: fuzzweed

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode