this doc Example compile with debugger out: ERROR

Just starting out? Need help? Post your questions and find answers here.
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

this doc Example compile with debugger out: ERROR

Post by gurj »

this doc Example compile with debugger out: ERROR
win7x86 pb6.10LTS
why:
"compile without debugger " is ok!
"compile with debugger " is ERROR!
line9:SetGadgetItemText(0, #PB_WebView_HtmlCode, Html$)
[06:53:51] [ERROR] The specified #Gadget is not initialised.

WebViewGadget doc:
Example: with disabled right-click menu

Code: Select all

  Html$ = ~"<html style=\"margin:0px;height:100%;width:100%\">"+
          ~"<body oncontextmenu=\"return false;\" style=\"margin:0px;min-height:100%;width:100%\">"+
          ~"<button id=\"displayInfo\">Display Info</button>"+
          ~"</body></html>\n"
  
  OpenWindow(0, 100, 100, 400, 400, "No right click UI", #PB_Window_SystemMenu)

  WebViewGadget(0, 0, 0, 400, 400)
  SetGadgetItemText(0, #PB_WebView_HtmlCode, Html$)

  Repeat 
    Event = WaitWindowEvent()
  Until Event = #PB_Event_CloseWindow
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: this doc Example compile with debugger out: ERROR

Post by gurj »

change to WebGadget and #PB_Web_HtmlCode is ok
my pb for chinese:
http://ataorj.ys168.com
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: this doc Example compile with debugger out: ERROR

Post by mk-soft »

No problem here

Whats OS?
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Quin
Addict
Addict
Posts: 1135
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: this doc Example compile with debugger out: ERROR

Post by Quin »

mk-soft wrote: Sat Mar 30, 2024 3:50 am Whats OS?
gurj wrote: Sat Mar 30, 2024 12:32 am win7x86 pb6.10LTS
That said though, I also see no problem on Windows 10 (64-bit), PB 6.10 LTS.
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: this doc Example compile with debugger out: ERROR

Post by gurj »

thanks!
and:use WebViewGadget and without debugger isnot ok also,because no show button:"Display Info"
sorry,streamlined system:win7+net3.5=2GB
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: this doc Example compile with debugger out: ERROR

Post by gurj »

I guess,may need edge brower
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: this doc Example compile with debugger out: ERROR

Post by gurj »

pb help doc:
The WebView gadget is leveraging the built-in OS web components (WebView2 on Windows, WebKit-GTK on Linux/Raspberry and WebKit on macOS). On Windows 10 and above, no additional component is required but if older Windows support is needed, the WebView2 redistributable might need to be installed: distribution guide
----------------------
is this:
https://learn.microsoft.com/en-us/micro ... stribution
my pb for chinese:
http://ataorj.ys168.com
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: this doc Example compile with debugger out: ERROR

Post by juergenkulow »

Linux Mint 21 Cinnamon 5.4.12 Warning on Terminal:

Code: Select all

libEGL warning: egl: failed to create dri2 screen
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: this doc Example compile with debugger out: ERROR

Post by mk-soft »

Works here with
- Windows 10 Pro 22H2 PB x86, x64
- Mint Linux LMDE 6 x64
- Ubuntu 22.04 x64
- macOS (Intel)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply