NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 22 23 24 25 26 … 93 Next »
special MVP code?

 
  • 0 Vote(s) - 0 Average
special MVP code?
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#1
2009-08-29, 07:13 PM
Is there something special you need to do within your code to get plugins working on MVP?

The Weather2 plugin doesn't seem to work on them. I don't have one to test, and I don't know why it wouldn't work on it.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2009-08-29, 07:39 PM
What do you mean by "work"?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#3
2009-08-29, 07:45 PM
Quote:Is there something special you need to do within your code to get plugins working on MVP?
No, usually you wouldnt have to do anything different.

Whats happening, and are some logs available?
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#4
2009-08-29, 07:51 PM
Ha, by work, I mean users are stating they can't get the plugin to show up on their MVPs. Smile

This is the only set of logs I have found that has the MVP log in it, and I see no errors. User just states that it doesn't show up on the main menu.
http://forums.gbpvr.com/showpost.php?p=3...stcount=17
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,454
Threads: 963
Joined: May 2006
#5
2009-08-29, 07:58 PM
With torrents, rssreader, and mlpanel, I could guess that he might be running into the problem of two many menu items.

Martin
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#6
2009-08-29, 09:33 PM
It made no difference when I removed all the other plugins except for Weather2 it still doesn't show up on my NMT main menu.

New logs attached from after removing all plugins except for Weather2 & only starting 1 MVP/NMT server & blue skin.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,454
Threads: 963
Joined: May 2006
#7
2009-08-29, 09:55 PM
Does it work if you set

<MVPLoadPluginsEarlier>true</MVPLoadPluginsEarlier>

Martin
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#8
2009-08-29, 10:08 PM
Nope made no difference.....still not showing on the main menu
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#9
2009-08-29, 10:51 PM
Quote:2009-08-30 09:27:31.942 ERROR [6] Error initializing menu plugin: C:\Program Files\Devnz\GBPVR\plugins\weather2\weather2.dll
2009-08-30 09:27:31.942 ERROR [6] Exception has been thrown by the target of an invocation.
2009-08-30 09:27:31.952 ERROR [6] at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at GBPVR.Backend.Common.xc4f12ec3a8a4c96b.xd1ccdef346e6a297(Boolean x8bae2a88590d8cc0)
2009-08-30 09:27:31.972 ERROR [6] Inner exception: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at weather2.WeatherIcons.LoadIcons()
at weather2.WeatherTask..ctor()
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
2009-08-30 09:27:32.002 ERROR [6] at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at weather2.WeatherIcons.LoadIcons()
at weather2.WeatherTask..ctor()
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
It looks like the weather2.WeatherTask is encountering a problem in constructor when calling this LoadIcons() method. Is it relying on a specific current directory? If not, then you might need to add some logging in that method to narrow the cause down.

Otherwise you could try defering this initialization stuff (loading the icons) until Activate is called on the task for the first time.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#10
2009-08-30, 01:15 AM
Oh, I see what it is... The LoadIcons() method loads all the icons in the WeatherIcon folder into a hashtable. I'm guessing he has two files with the same name and it's causing an error.

Thanks for the help.

Jaggy---
Please delete all the files in your WeatherIcons (or make a backup somewhere), then get the icon packs (Stardock and Pressure arrows) off the wiki page and unzip them into the WeatherIcon folder. Then re-run it...

I'll update the code to do something about this... don't know what yet...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Remote control example code? drmargarit 4 4,166 2018-04-21, 11:24 PM
Last Post: drmargarit
  Looking for C# UPnP Media Server code bgowland 5 7,945 2016-12-16, 08:25 PM
Last Post: mvallevand
  How to convert special characters to use for a URL bgowland 2 1,729 2012-01-21, 05:35 PM
Last Post: bgowland
  Weird Code problem - serialisation (I'll spell it the proper way!!"0 psycik 22 6,990 2011-11-25, 03:16 AM
Last Post: whurlston
  sample video overlay plugin source code? reven 2 2,622 2011-10-03, 12:42 AM
Last Post: reven
  C# code to get data directory? McBainUK 2 2,929 2011-09-19, 07:57 PM
Last Post: McBainUK
  Source code for older versions ? Spark 1 1,908 2011-02-23, 01:19 AM
Last Post: sub
  some help on basic gbpvr plugin code Etacovda 12 5,150 2009-06-14, 08:24 PM
Last Post: Etacovda
  Does this code lock the database? pastro 19 6,056 2008-05-22, 10:06 AM
Last Post: Ommina
  My New Favorite Code Snippet jtokach 2 1,899 2007-11-05, 08:45 PM
Last Post: jtokach

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

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

Linear Mode
Threaded Mode