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...
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.
Is there a problem with deriving from PopupMessageBox or am I just being thick?
Cheers,
Brian
Code:
public class ScanChannelsPopup : GBPVRX2.Popups.PopupMessageBox
{
public ScanChannelsPopup(IUiPopupCallback popupCallback, string message, string button1Command, string button2Command)
: base(popupCallback, message, button1Command, button2Command)
{
}
}
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