NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 82 83 84 85 86 … 93 Next »
can u see whats wrong with this code?

 
  • 0 Vote(s) - 0 Average
can u see whats wrong with this code?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2004-12-06, 03:38 AM
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> if(skinHelper == null)
{
// setup skin helper
XmlDocument document = new XmlDocument();
document.Load(PluginHelperFactory.getPluginHelper().GetSkinRootDirectory() + getSkinSubdirectory() + "\\Skin.xml");
skinHelper = new SkinHelper(document, PluginHelperFactory.getPluginHelper().GetSkinRootDirectory() + getSkinSubdirectory());

}
// load background image if we havn't already
if (backgroundImage == null)
{
backgroundImage = skinHelper.getNamedImage("Background");
}
[/QUOTE]
each time i try and use skinHelper.getWHATEVER it returns null. the skin file is fine, i can check to see if the node exists, and it does, but still getting null exception, any thoughts?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#2
2004-12-06, 03:55 AM
never mind, i found the problem (was going nuts, but found the problem) the textstyle in the composite image/drawstring referred to an undefined textstyle.

dont you just hate it when its something so simple, but you miss it, and takes you hours to realize, dah!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#3
2004-12-06, 04:44 AM
The SkinHelper isnt very forgiving, but it usually gives an appropriate error message in GBPVR.exe.log. Anyway, glad to hear you got it working.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Remote control example code? drmargarit 4 3,763 2018-04-21, 11:24 PM
Last Post: drmargarit
  Looking for C# UPnP Media Server code bgowland 5 7,602 2016-12-16, 08:25 PM
Last Post: mvallevand
  Weird Code problem - serialisation (I'll spell it the proper way!!"0 psycik 22 6,116 2011-11-25, 03:16 AM
Last Post: whurlston
  sample video overlay plugin source code? reven 2 2,336 2011-10-03, 12:42 AM
Last Post: reven
  C# code to get data directory? McBainUK 2 2,780 2011-09-19, 07:57 PM
Last Post: McBainUK
  Source code for older versions ? Spark 1 1,744 2011-02-23, 01:19 AM
Last Post: sub
  special MVP code? scb147 31 8,382 2009-09-04, 02:50 AM
Last Post: scb147
  some help on basic gbpvr plugin code Etacovda 12 4,613 2009-06-14, 08:24 PM
Last Post: Etacovda
  Does this code lock the database? pastro 19 5,377 2008-05-22, 10:06 AM
Last Post: Ommina
  What's wrong with this SQL query? bgowland 2 1,504 2008-02-03, 08:30 PM
Last Post: bgowland

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

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

Linear Mode
Threaded Mode