[Done] PB6.20B4 WebViewGadget long init time

Everything else that doesn't fall into one of the other PB categories.
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

[Done] PB6.20B4 WebViewGadget long init time

Post by dige »

I use several web gadgets and a WebView gadget in a larger project. Initializing the WebViewGadget there takes about 15 seconds.

I have extracted the code. But in this case, it gets stuck there completely.

Windows 11, PB 6.20B4 x86/x64

Code: Select all

time = ElapsedMilliseconds()

If OpenWindow(0, 0, 0, 800, 600, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    PanelGadget     (0, 10, 10, 780, 580)
      AddGadgetItem (0, -1, "Panel 1")
      WebGadget(1, 0, 0, GetGadgetAttribute(0, #PB_Panel_ItemWidth), GetGadgetAttribute(0, #PB_Panel_ItemHeight), "", #PB_Web_Edge)
      Debug ElapsedMilliseconds() - time
      
      AddGadgetItem (0, -1,"Panel 2")
      WebGadget(2, 0, 0, GetGadgetAttribute(0, #PB_Panel_ItemWidth), GetGadgetAttribute(0, #PB_Panel_ItemHeight), "", #PB_Web_Edge)
      Debug ElapsedMilliseconds() - time
        
      AddGadgetItem (0, -1,"Panel 3")
      WebViewGadget(3, 0, 0, GetGadgetAttribute(0, #PB_Panel_ItemWidth), GetGadgetAttribute(0, #PB_Panel_ItemHeight))
      Debug ElapsedMilliseconds() - time
      CloseGadgetList()
        
      MessageRequester("all done", Str(ElapsedMilliseconds() - time) + "ms")
        
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

// Moved from "Bugs - Windows" to "General Discussion" (Kiffi)
"Daddy, I'll run faster, then it is not so far..."
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB6.20B4 WebViewGadget long init time

Post by Fred »

Seems to work here, can anybody else confirm ?
User avatar
Caronte3D
Addict
Addict
Posts: 1361
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: PB6.20B4 WebViewGadget long init time

Post by Caronte3D »

Works here too!
between 350-500ms
Quin
Addict
Addict
Posts: 1133
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PB6.20B4 WebViewGadget long init time

Post by Quin »

On Windows 11 IoT 24H2 with PB 6.20 beta 4, I get anywhere from 1090 MS to 1939 MS.
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: PB6.20B4 WebViewGadget long init time

Post by HeX0R »

it hangs completely in PB6.12 at the WebViewGadget() command, but runs flawlessly in PB6.20B4 (321ms altogether)
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: PB6.20B4 WebViewGadget long init time

Post by dige »

I have reinstalled Beta4. Now it works as it should. 👍
"Daddy, I'll run faster, then it is not so far..."
User avatar
SPH
Enthusiast
Enthusiast
Posts: 571
Joined: Tue Jan 04, 2011 6:21 pm

Re: [Done] PB6.20B4 WebViewGadget long init time

Post by SPH »

519
581
W11, PB6.12 :!:

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
Post Reply