1. Dave O'BILOG
  2. PowerBuilder
  3. Monday, 10 January 2022 09:26 AM UTC

 

Powerbuilder 20119

Hi everybody,

 

i have a problem with the webbrowser powerbuilder 2019. On some computers the browser crah our product (Windows 10) , but not all...

 

the runtime Powerbuiler webbrowser is checked.

 

detail :

Nom de l’application défaillante obilog.exe, version : 6.1.14.28, horodatage : 0x60096249
Nom du module défaillant : KERNELBASE.dll, version : 10.0.19041.1348, horodatage : 0x9166324b
Code d’exception : 0xc0000005
Décalage d’erreur : 0x0012b502
ID du processus défaillant : 0x413c
Heure de début de l’application défaillante : 0x01d7e7961b34be6d
Chemin d’accès de l’application défaillante : C:\Program Files (x86)\OBILOG\procost_6114_ZM\obilog.exe
Chemin d’accès du module défaillant: C:\WINDOWS\System32\KERNELBASE.dll
ID de rapport : 34cc9255-5550-4854-805f-6c173d13d2d1
Nom complet du package défaillant :
ID de l’application relative au package défaillant :

 

If you have have any ideas ?

 

Thanks

 

 

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 10 January 2022 14:18 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

I solved some problems with the webbrowser control by inserting this code, which HAS to be in the application object's Open() event:

// seems to be a necessary setting for CEF webbrowser control:
int li_ret
string ls_ret
li_ret = WebBrowserGet("UserAgent", ref ls_ret)
if ls_ret = "" then
	li_ret = WebBrowserSet("UserAgent", "AppeonWebBrowser")
	if li_ret <> 1 then
		Messagebox("Information", "Error setting the UserAgent for the WebBrowser", information!)
	end if
end if
// avoid an existing Appeon bug of blowing up when using the webbrowser control on Windows Server 2012 R2:
// w_wbrowser_dummy is a tiny invisible window with nothing in it
open(w_wbrowser_dummy)
close(w_wbrowser_dummy)

// this might not be necessary for resolving your problem:
string ls_docFolder
n_filesys lnf
ls_docFolder = lnf.of_getfolderpath(CSIDL_PERSONAL)

li_ret = WebBrowserSet("DownloadPath", ls_docFolder)
if li_ret <> 1 then
	Messagebox("Information", "Error setting the DownloadPath for the WebBrowser", information!)
end if
li_ret = WebBrowserSet("allow-file-access-from-files", "true")
if li_ret <> 1 then
	Messagebox("Information", "Error setting the FileAccess for the WebBrowser", information!)
end if

I hope it solves your problem, if not I'd suggest you create a support ticket on https://www.appeon.com/standardsupport/newbug 

regards,
MiguelL

 

Comment
  1. Olan Knight
  2. Monday, 10 January 2022 22:32 PM UTC
Great info, Miguel! Thanks for sharing!

  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 10 January 2022 16:47 PM UTC
  2. PowerBuilder
  3. # 2

Hi Dave;

  FYI: We have had a few crashes like this reported in the Support System but only when the PB App uses certain 3rd party controls / DLLs. One example is EZTWAIN product that when enabled when using the internal Web Browser control causes the PB App to crash. In this case, Engineering is still investigating this situation.

  Does your PB App use any external DLLs or OCX's like EZTWAIN (for example). If so, does the crashing stop if you comment out the instantiation of these 3rd party products (as a quick test)?

Regards ... Chris

Comment
  1. Dave O'BILOG
  2. Wednesday, 12 January 2022 09:01 AM UTC
Hi Chris,



Indeed,



we have another OCX from MW6 for datamatriw & QR code , if i delete it from the window, the new webbroser works.



For the moment, i will work with the old one.



Thank you
  1. Helpful
There are no comments made yet.
Dave O'BILOG Accepted Answer Pending Moderation
  1. Monday, 10 January 2022 10:05 AM UTC
  2. PowerBuilder
  3. # 3

With the old one : Microsoft Web Browser, there is no crash

Comment
There are no comments made yet.
MARKOVIC Marko Accepted Answer Pending Moderation
  1. Friday, 3 June 2022 06:42 AM UTC
  2. PowerBuilder
  3. # 4

Hi,

we also have the same problem with the OCX from MW6 for QR code. The PB Webbrowser crashs and that have made us a criticl product crash for 2 days because we don't have find the cause until we suddenly found how we could reproduce the behaviour. Is there a patch for this bug? The suggestion of Miguel Leeuwe didn't work for us. What could be a alternative way to generate Qr Code which is compatible with everything ;) ?

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.