2005-01-11, 01:06 AM
[b Wrote:Quote[/b] ]refernce error:not set to instance of object.Who is that question aimed at, and what exactly are you trying to ask?
Now what
2005-01-11, 01:06 AM
[b Wrote:Quote[/b] ]refernce error:not set to instance of object.Who is that question aimed at, and what exactly are you trying to ask?
2005-01-11, 01:23 AM
When i click on a plugin that i have made, i get that error
2005-01-11, 01:37 AM
Do you need more info
2005-01-11, 02:08 AM
recreate the error, then look in the gbpvr.exe.log file, and scroll to the bottom. it should display in which class and on what line the error occured, so you can figure out what you've done wrong.
2005-01-11, 02:13 AM
cool thanks
2005-03-03, 01:08 PM
Hi All,
What's the best way to debug the construction of Plugins. I've seen many fantastic skins come out over the last few months and so I've started updating the Calculator plugin to be more skinable. I've done lots of code updates, expecting that most of the code would stay the same and work OK but... When I select Calculator from the main menu I just get the "Object not set to an instance of an object" error (I think that's the one, you know the general error that usually happens - i'm at work so can't check). Also, there's no error reported in the gbpvr.exe.log file (nor in any other log file). So, then I put a Logging.Verbose("Calc Activate" at the start of the Activate function. This doesn't get printed in the log file either. I then thought, is it recognising the plugin at all so I put a Logging.Verbose("blahblah" in the plugin constructor. This worked, text in the log file. My questions are: 1. Is it possible to actually compile a .dll with debugging enabled and use breakpoints etc. 2. Can errors in the skin file make a plugin crash before it enters the Activate function. I'm not that good at XML! 3. Is it to do with file buffering, do the logging calls get "flushed" out to the log file straight away. 4. I can't find the sequence (in this forum and wiki) of what is called and when. I assume: 1. The constructor of a plugin is called then gbpvr starts (or an MVP is turned on?) 2. The Activate function is called when the user selects the plugin from the main menu 3. The Deactivate is called when the user quits the plugin (back to the main menu). Is this correct - when is a plugins skin loaded and checked for syntax. Mr Frustrated.
2005-03-03, 02:27 PM
Jasonf has created a tutorial that might be of some help.
http://prdownloads.sourceforge.net/gbpvrwi....ownload
2005-03-03, 03:30 PM
This might actually lead into another topic, and one that Sub might be able to answer best (since it might require the release of some source code):
What would be needed in order to construct a development/test environment where plugin code could be stepped through in the IDE? I'm envisioning a Windows App released as open source code that could be added to a solution that also contains the plugin source code. The IDE would start the windows app, which would instantiate any objects that GBPVR normally would (skinhelper, etc). The windows app would then load the plugin exactly like GBPVR does. The developer, however, can set breakpoints, etc, offering benefits over just testing the plugin in the real GBPVR. This Windows app would not necessarily have the core functionality that Sub needs to be kept private, like playing videos, etc. Ideas? Comments?
JasonF
2005-03-03, 03:37 PM
You can already set breakpoints and step through the plugins in the debugger. Just make sure you also add your .pdb file into the plugins directory, and set gbpvr.exe as the plugin executable.
2005-03-03, 05:36 PM
KingArgyle, I found that but it didn't really help me.
Thanks sub, I did try this but missed the pdb file in the plugins directory, i'll try it later tonight and let you know what happens. |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Plugins and NPVR. Where do we start? | sub | 80 | 65,653 |
2020-11-26, 10:02 PM Last Post: mandai |
|
Developing Android TV client | fred250 | 2 | 1,579 |
2020-11-16, 06:33 PM Last Post: fred250 |
|
I want to start developing plugins...but how? | OrenShapir | 6 | 3,782 |
2014-11-18, 10:38 PM Last Post: mvallevand |
|
Tuner plugins and client id | mvallevand | 2 | 1,890 |
2013-07-03, 01:39 AM Last Post: mvallevand |
|
Tuner Plugins - Output folders | mvallevand | 2 | 1,912 |
2013-02-19, 07:45 PM Last Post: mvallevand |
|
.NET 4 plugins? | McBainUK | 20 | 7,032 |
2012-12-11, 08:48 PM Last Post: sub |
|
Integrated Development Environment (IDE) for plugins | osx-addict | 5 | 2,506 |
2012-10-18, 08:35 PM Last Post: osx-addict |
|
Tuner plugins | mvallevand | 4 | 2,248 |
2012-08-05, 11:19 PM Last Post: mvallevand |
|
Recorder plugins - Deleting tuners | mvallevand | 1 | 1,386 |
2012-03-29, 12:51 AM Last Post: sub |
|
Recorder plugins - scheduling | mvallevand | 4 | 2,196 |
2012-03-26, 05:09 PM Last Post: mvallevand |