Si je fait ca aucune erreur ca marche sur tous les sites
Code : Tout sélectionner
ImportC "-lwebkit2gtk-4.0"
webkit_web_view_new()
webkit_web_view_load_uri(webView, urlt.p-Ascii)
EndImport
OpenWindow(100, 0, 0, 1024, 768, "Caisse",#PB_Window_BorderLess)
webView = webkit_web_view_new()
windowC = g_list_nth_data_(gtk_container_get_children_(WindowID(100)), 0)
webkit_web_view_load_uri(webView, "https://*****")
gtk_widget_set_size_request_(webView, 1024, 768)
gtk_container_add_(windowC, webView)
gtk_widget_show_all_(windowC)
Repeat
Delay(2)
Until WaitWindowEvent() = #PB_Event_CloseWindow
Code : Tout sélectionner
ImportC "-lwebkit2gtk-4.0"
webkit_web_view_new()
webkit_web_view_load_uri(webView, urlt.p-Ascii)
EndImport
Procedure OpenCaisse(UrlComplete$)
OpenWindow(100, 0, 0, 1024, 768, "Caisse",#PB_Window_BorderLess)
webView = webkit_web_view_new()
windowC = g_list_nth_data_(gtk_container_get_children_(WindowID(100)), 0)
webkit_web_view_load_uri(webView, UrlComplete$)
gtk_widget_set_size_request_(webView, 1024, 768)
gtk_container_add_(windowC, webView)
gtk_widget_show_all_(windowC)
EndProcedure
Code : Tout sélectionner
Thread 1 "purebasic" received signal SIGSEGV, Segmentation fault.
__strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:120
120 ../sysdeps/x86_64/multiarch/../strlen.S: Aucun fichier ou dossier de ce type.
(gdb) trace
Tracepoint 1 at 0x7ffff4df3646: file ../sysdeps/x86_64/multiarch/../strlen.S, line 120.
(gdb) bt
#0 0x00007ffff4df3646 in __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:120
#1 0x0000000000684ac3 in ()
#2 0x0000000000584cd2 in ()
#3 0x0000000000000000 in ()