NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 20 21 22 23 24 … 93 Next »
WizTools - 1.x Plugin Development Toolkit

 
  • 0 Vote(s) - 0 Average
WizTools - 1.x Plugin Development Toolkit
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#221
2008-05-29, 04:36 AM
Ommina Wrote:That it did, thank you! Back to as it was before. Have not found any other differences otherwise.
Great. I think the DLL seems pretty solid, I will probably release that version on Friday.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#222
2008-05-31, 09:53 PM
JavaWiz,
Quite a while ago I was having trouble with null references with list boxes and I used to trap them and not add them to the display list, but you fixed something and it seemed to work ok for a while. However I did have some trouble with it and finally am looking at it again. Here is the error that I see intermittently.
If you have any thoughts on this, let me know.
When it happens I am adding or deleting elements in a listbox.



08-05-31 16:45:19.062 VERBOSE [1] WizUiTextBox: GetRenderList()- DVDInfo normalUiElement changed, creating new image
2008-05-31 16:45:19.062 VERBOSE [1] WizUiTextBox: GetRenderList()- LabeledTextBox normalUiElement changed, creating new image
2008-05-31 16:45:19.062 VERBOSE [1] WizUiList: GetRenderList()- [ListBox1] BackgroundUiElement-Creating CurIdx=3 lastIdx=2
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: placementName = ListBox1 currentIndex = 3 detailsViewVisibleTopIndex = 0 elapsed: 00m:00s:15ms
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: Using cached image- ListBox1ListNormal[0]
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: item loop(0) elapsed: 00m:00s:15ms
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: Using cached image- ListBox1ListNormal[1]
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: item loop(1) elapsed: 00m:00s:15ms
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: Using cached image- ListBox1ListNormal[2]
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: item loop(2) elapsed: 00m:00s:15ms
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: Using cached image- ListBox1ListSelected[3]
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: item loop(3) elapsed: 00m:00s:15ms
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- [ListBox2] BackgroundUiElement-Creating CurIdx=0 lastIdx=1
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: placementName = ListBox2 currentIndex = 0 detailsViewVisibleTopIndex = 0 elapsed: 00m:00s:00ms
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: Using cached image- ListBox2ListSelectedInactive[0]
2008-05-31 16:45:19.078 VERBOSE [1] WizUiList: GetRenderList()- LIST: item loop(0) elapsed: 00m:00s:00ms
2008-05-31 16:45:19.078 VERBOSE [1] WizUiTextBox: GetRenderList()- MultiLine normalUiElement changed, creating new image
2008-05-31 16:45:21.593 VERBOSE [1] WizUiList: DisposeListCache()- Called for ListBox2 2 entries disposed
2008-05-31 16:45:21.593 VERBOSE [1] RENDER ITEM: ListBox2ListSelectedInactive[0] (NULL IMAGE!)
2008-05-31 16:45:21.703 ERROR [1] Unexpected error: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Image.get_Width()
at CAllocatorPresenter.SetRenderList(CAllocatorPresenter* , ArrayList renderList)
at NativeUtilities.MediaHelper.setDirect3DRenderList(ArrayList renderList)
at GBPVRX2.x0061b801bdf12d35.xdb012c437aec4a40(Boolean xd23bf32f3b17e3be)
at GBPVRX2.xb979ad394703258e.xfb409e85bd292293(String[] xf18a926310372520)
20
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#223
2008-05-31, 11:39 PM
pastro Wrote:JavaWiz,
Quite a while ago I was having trouble with null references with list boxes and I used to trap them and not add them to the display list, but you fixed something and it seemed to work ok for a while. However I did have some trouble with it and finally am looking at it again. Here is the error that I see intermittently.
If you have any thoughts on this, let me know.
When it happens I am adding or deleting elements in a listbox.
Try attached version of WizUiHelper.DLL v1.0.17.1. I've removed the method that clears the UiImageCache.

I think what was happing is that a different thread is calling object to render, while your plugin thread was creating a new list. As part of creating that list, I tried clearing the image cache which is probably what triggered the exception. The normal aging logic should manage the entries without causing problems with the rendering thread.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#224
2008-06-01, 04:27 AM
Yep that seems to have fixed it. Great work.
Could this be put on the wiki so I can just point users to it? I'll package it up with burndvdx2 going forward, but I'm not ready for another release right now.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#225
2008-06-01, 06:23 AM
pastro Wrote:Yep that seems to have fixed it. Great work.
Could this be put on the wiki so I can just point users to it? I'll package it up with burndvdx2 going forward, but I'm not ready for another release right now.
Ok, I've posted on the Wiki on this page.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#226
2008-06-02, 03:54 AM
Guess I missed this one.

I get an error when I try to change the text of a buttonlist.
case "Captions are OFF":
showPopup =
true;
msg =
"Captions are Now On";
cmdButtonList.Text=
"Captions are on";
showPopup=true;
captionstate =
true;
txtBox.addArg(
"@Caption","Captions: On");

Unable to cast object of type 'WizUtilities.WizUiHelper.WizUiButton' to type 'WizUtilities.WizUiHelper.WizButtonAttr'.

Can I still change the text of the buttonlist on the fly?

EDIT Looks like there is a method to change the text. I'll try that but let me know if I can just set it like I used to so I don't have to change all the instances.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#227
2008-06-02, 04:15 AM
pastro Wrote:Can I still change the text of the buttonlist on the fly?

EDIT Looks like there is a method to change the text. I'll try that but let me know if I can just set it like I used to so I don't have to change all the instances.

Attached update will enable the ability to set the caption on the current button via the Text property.

Logic changed when WizUiButtonList was updated to handle scrollable button lists (ie more buttons than can display), by added a rows element in the placement section in the skin.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#228
2008-06-02, 04:28 AM
JavaWiz Wrote:Attached update will enable the ability to set the caption on the current button via the Text property.

Logic changed when WizUiButtonList was updated to handle scrollable button lists (ie more buttons than can display), by added a rows element in the placement section in the skin.

Appreciate it. Didn't expect a quick response since it's getting late on a Sunday so I changed my code for the main menu to changecaption. Good to have going forward since I haven't checked all the popups to make sure they work correctly. Sorry I missed that when you asked us to look at the new dlls.
Thanks.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#229
2008-06-06, 11:14 PM
I think this is related to the 17.x update, but I'm not sure. It has to do with getimage callbacks. This error didn't used to show up but it could be part of the new pvrx2 distribution since both were changed.

In my getimage callback I either create a bitmap to be displayed or return a variable that has previously been set to a bitmap.

When I create a bitmap it doesn't immediately get displayed and only gets displayed after the next bitmap change is made. The only change to the bitmap are some changes in the colors. However, there is also a line drawn as a marker in the bitmap. When this line moves, the image is updated immediately, just not when I only change the colors and nothing else.
My guess is somehow something doesn't think the image has changed even thogh I got a getimage callback.
Is there a way to force the update? I seem to remember there was one.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#230
2008-06-07, 02:07 AM
pastro Wrote:I think this is related to the 17.x update, but I'm not sure. It has to do with getimage callbacks. This error didn't used to show up but it could be part of the new pvrx2 distribution since both were changed.

In my getimage callback I either create a bitmap to be displayed or return a variable that has previously been set to a bitmap.

When I create a bitmap it doesn't immediately get displayed and only gets displayed after the next bitmap change is made. The only change to the bitmap are some changes in the colors. However, there is also a line drawn as a marker in the bitmap. When this line moves, the image is updated immediately, just not when I only change the colors and nothing else.
My guess is somehow something doesn't think the image has changed even thogh I got a getimage callback.
Is there a way to force the update? I seem to remember there was one.
What control is this happening in (WizUiList, WizUiLabel, ....)?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 21 22 23 24 25 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 4,116 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 4,360 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 5,517 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 4,127 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,357 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 3,192 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 7,046 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,318 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 3,238 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,964 2012-08-12, 07:56 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