NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 73 74 75 76 77 … 93 Next »
Non graphical plugin

 
  • 0 Vote(s) - 0 Average
Non graphical plugin
hansi
Offline

Junior Member

Posts: 49
Threads: 9
Joined: Sep 2004
#1
2005-03-25, 09:25 PM
Does anyone have experience with non-graphical plugins? Is it possible to have a plugin that has no button in the menus, but is also not an InfoPanel?

I tried the InfoPanel interface, but I have a problem in that the destructor is never called when GBPVR is supposed to exit.
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#2
2005-03-25, 09:59 PM
What are you trying to do in this plug-in?
HenkH
Offline

Member

Posts: 100
Threads: 6
Joined: Mar 2005
#3
2005-03-25, 10:46 PM
hansi Wrote:I tried the InfoPanel interface, but I have a problem in that the destructor is never called when GBPVR is supposed to exit.

Remember you are programming in a .NET environment which doesn't have a real destructor. .NET is supposed to have a decent garbage collector which frees up stuff which you normally have to do yourself in a language like C++.

I you really want to clean up stuff yourself you have your class to be inherited from the IDisposable interface. Define a Dispose() method, which might be called during program termination.

See this articles on MSDN for more info:
Programming for Garbage Collection (.NET Framework Developer's Guide)
INFO: Roadmap for Garbage Collection in the Microsoft .NET Framework
hansi
Offline

Junior Member

Posts: 49
Threads: 9
Joined: Sep 2004
#4
2005-03-28, 08:40 AM
Thanks guys,

I'm looking again at getting some WinLIRC support into GBPVR. For that, I start a thread to pick up the remote codes and send the keystrokes to GBPVR. When I exit GBPVR, I need tot kill this thread. Coming from C++, I just put something in the destructor, but it is never called (still learning C++/C# differences). The result is, that GBPVR never really exits because the thread keeps running.

Is there another way the plugin can be informed that the app is exiting?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#5
2005-03-28, 04:15 PM
When you start a thread in .net you can set the .backround=true attribute so that it wont stop the application closing.
hansi
Offline

Junior Member

Posts: 49
Threads: 9
Joined: Sep 2004
#6
2005-03-29, 07:46 AM
Thanks, sub! I'll give it a try.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,803 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,342 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,448 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,892 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,766 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,073 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,945 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 4,972 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,236 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,425 2012-01-15, 08:33 PM
Last Post: imilne

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

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

Linear Mode
Threaded Mode