NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 34 35 36 37 38 … 93 Next »
Derive class from PopupMessageBox?

 
  • 0 Vote(s) - 0 Average
Derive class from PopupMessageBox?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2008-02-29, 08:31 PM
I want to define my own popup message boxes for different purposes so that the popup calback handler can differentiate between them. The following is an example...
Code:
public class ScanChannelsPopup : GBPVRX2.Popups.PopupMessageBox
{
    public ScanChannelsPopup(IUiPopupCallback popupCallback, string message, string button1Command, string button2Command)
    : base(popupCallback, message, button1Command, button2Command)
    {
    }
}
When I use setPopup(new ScanChannelsPopup(blah)), PVRX2 throws an object reference not set...exception. It seems it's doing this when trying to render.
Code:
2008-02-29 20:08:04.605    ERROR    [1]    Unexpected error: System.NullReferenceException: Object reference not set to an instance of an object.
   at CAllocatorPresenter.SetRenderList(CAllocatorPresenter* , ArrayList renderList)
   at NativeUtilities.MediaHelper.setDirect3DRenderList(ArrayList renderList)
   at GBPVRX2.x0061b801bdf12d35.xdb012c437aec4a40(Boolean xd23bf32f3b17e3be)
   at GBPVRX2.xb979ad394703258e.xfb409e85bd292293(String[] xf18a926310372520)
2008-02-29 20:08:04.605    VERBOSE    [1]    UiList.GetRenderList()
2008-02-29 20:08:04.605    VERBOSE    [1]    selectedIndex = 0     detailsViewVisibleIndex = 0
2008-02-29 20:08:04.714    ERROR    [1]    Unexpected error: System.NullReferenceException: Object reference not set to an instance of an object.
   at GBPVRX2.MenuTask.x0be92cb4e3ac1817.needsRendering()
   at GBPVRX2.MenuTask.x9006c1ed9ccb79de.needsRendering()
   at GBPVRX2.x0061b801bdf12d35.xdb012c437aec4a40(Boolean xd23bf32f3b17e3be)
   at GBPVRX2.xb979ad394703258e.xfb409e85bd292293(String[] xf18a926310372520)

Is there a problem with deriving from PopupMessageBox or am I just being thick?

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2008-02-29, 08:35 PM
Can you post the whole log file?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2008-03-01, 04:39 AM
Sorry...my bad (I think).

I've made some changes to the dvbt radio plugin today and it seems the rec. service is locking my common class lib as a result. The upshot is that my post-build command was failing to copy the new version of my common class lib.

Once I'd stopped the rec. service and copied the class lib in place manually, things are behaving as I'd expect. Not sure what I'm doing in the class lib that would cause the rec. service to hang on to it even after pvrx2 is shut down though. But that's another issue.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Settings config screen for class IEventNotification plugin imilne 9 3,439 2011-09-17, 06:06 PM
Last Post: sub
  UiElement class tmrt 1 1,320 2010-10-05, 05:09 PM
Last Post: sub
  PopupMessageBox usage McBainUK 2 1,566 2009-01-20, 06:06 PM
Last Post: whurlston
  popupmessagebox id pastro 3 1,785 2007-09-13, 08:09 PM
Last Post: sub
  What DVB class/library is used for gbpvr? CaptainIglo 4 1,894 2007-03-28, 04:20 PM
Last Post: sub
  Adding designer capability to class??? bgowland 0 1,207 2006-08-30, 05:31 PM
Last Post: bgowland
  Problem with ScheduleHelper class in 0.96.12 Jeff 1 1,497 2006-03-04, 06:00 PM
Last Post: UncleJohnsBand
  settings plugin/class reven 31 8,181 2005-10-06, 10:38 AM
Last Post: reven
  how do I access a variable from different class tkgafs 1 1,876 2004-09-18, 05:17 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