NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 27 28 29 30 31 … 93 Next »
1.x plugin development

 
  • 0 Vote(s) - 0 Average
1.x plugin development
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#71
2007-09-24, 06:11 AM
I just posted a new version as part of the video archive test version. Please be sure to back up your video archive database before installing it.

Jeff
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#72
2007-12-22, 09:35 PM
Trying the provided sample "Hello" I cannot get the DLL to work with PVRX2 (using the DLL provided in the zip). Even after a new install of GB-PVR v1.0.16 I keep getting the message:

2007-12-22 22:10:45.796 INFO [1] About to check 'E:\GBPVR\plugins\HelloWorld' for plugins
2007-12-22 22:10:45.796 VERBOSE [1] About to check file: E:\GBPVR\plugins\HelloWorld\HelloWorld.dll
2007-12-22 22:10:45.796 VERBOSE [1] HelloWorld constructor parameter count: 0


and do not see the plugin on PVRX2.

Any help ?

Thank You
lupus
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#73
2007-12-22, 10:14 PM
Its normal to see those messages.

Have you enabled the plugin on the 'plugins' tab of the config app.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#74
2007-12-22, 10:20 PM
lupus11 Wrote:Trying the provided sample "Hello" I cannot get the DLL to work with PVRX2 (using the DLL provided in the zip). Even after a new install of GB-PVR v1.0.16 I keep getting the message:

2007-12-22 22:10:45.796 INFO [1] About to check 'E:\GBPVR\plugins\HelloWorld' for plugins
2007-12-22 22:10:45.796 VERBOSE [1] About to check file: E:\GBPVR\plugins\HelloWorld\HelloWorld.dll
2007-12-22 22:10:45.796 VERBOSE [1] HelloWorld constructor parameter count: 0


and do not see the plugin on PVRX2.

Any help ?

Thank You
lupus
Did you run the config and check HelloWorld as being enabled?
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#75
2007-12-27, 02:15 PM
Sorry, stupid mistake. Now it works.

Thank You
lupus
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#76
2008-01-03, 01:06 AM
Getting back to the memory leak earlier in this thread, I still have problems. I populate a UiSimpleList with several (~30) UiSimpleList.Item elements. This list contains the results of a subquery of a database query, so the list contents change frequently, when the user moves the cursor over the main query. What I cannot manage atm is to get rid of the "old" elements of the list. I tried it with GetRenderList() to get the old list, then with setItemList() to set the list to the new item array and after this I tried to call PluginHelperFactory.getPluginHelper().DisposeResources with the previously fetched (now old) item list. This seems to work for 4-5 times, but after this suddenly the GetRenderList return null, even though there is a valid setting. What would be the correct way of disposing the no longer needed element array ?

Thank You
lupus11
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#77
2008-01-03, 01:13 AM
Since these are list controls that are permanently available in your plugin, ie not in a popup and not dynamically destroy and recreated later, then you shouldnt need to worry about disposing anything in the list.

Your plugin can create its item lists whenever it wants, and update them as frequently as it wants. The list will manage its own resources in this type of usage. There is no magic resources associated with UiSimpleList.Item objects. These are just a simple object holding a hashtable of parameters.

You only really need to worry about managing your own resources in popups, or if you're manually creating GBPVRUiElement objects (which most plugins wont).
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#78
2008-01-03, 01:15 AM
Quote:I populate a UiSimpleList with several (~30) UiSimpleList.Item elements. This list contains the results of a subquery of a database query, so the list contents change frequently, when the user moves the cursor over the main query. What I cannot manage atm is to get rid of the "old" elements of the list.
If you're literally still seeing old items in the list, then you've got some logic problem in your plugin code that is causing you to either append to some existing list rather than creating a new onw, or populate the list with objects you hadnt intended to.
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#79
2008-01-03, 09:45 AM
Sub,

thanks again.

Quote:Since these are list controls that are permanently available in your plugin, ie not in a popup and not dynamically destroy and recreated later, then you shouldnt need to worry about disposing anything in the list.

This is what I did up to now, but found out, that the process memory amount rises very quickly up to > 800MB without ever being freed again and still rising with every list change. This does not happen, when I do not use the subquery list.

Quote:If you're literally still seeing old items in the list, then you've got some logic problem in your plugin code that is causing you to either append to some existing list rather than creating a new onw, or populate the list with objects you hadnt intended to.

That's clear, I do not literally see them, but they still seem to reside somwhere in memory, even though the are already replaced by new ones in the list.

Thank You
lupus
lupus11
Offline

Junior Member

Posts: 30
Threads: 3
Joined: Dec 2005
#80
2008-01-03, 11:01 AM
The Problem seems solved now. It was not the list elements, but an additional GBPVRUiElement that I allocate with every query change. Since I pass the old one in a list to DisposeResources the memory usage seems okay.

Thank You
lupus11
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (9): « Previous 1 … 5 6 7 8 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,083 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,560 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,587 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,641 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,004 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,875 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,324 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,028 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,863 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,246 2012-08-12, 07:56 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode