HI, All
This topic is related to this one: https://www.b4x.com/android/forum/threads/b4j-how-to-debug-ui-app-under-linux.165367/
Why error "XSetErrorHandler() called with a GDK error trap pushed. Don't do that." can crash the app in this code:
?
Dialog with the template is not shown, error and crash is occured.
This topic is related to this one: https://www.b4x.com/android/forum/threads/b4j-how-to-debug-ui-app-under-linux.165367/
Why error "XSetErrorHandler() called with a GDK error trap pushed. Don't do that." can crash the app in this code:
B4X:
Sub Help_Action
Dim txt As StringBuilder
txt.Initialize
txt.Append("0. The Internet-connection is required for correct app function.").Append(CRLF).Append(CRLF)
txt.Append("1. Prepare 2 pictures - photos of both PCB sides. Mirror one of them (say, bottom) to be corresponding the top one").Append(CRLF).Append(CRLF)
.....
tmp.Initialize
tmp.Text = txt.ToString
dialog.Title = "How to use the app:"
tmp.Resize(Root.Width * 0.7, Root.Height * 0.7)
dialog.ButtonsFont = xui.CreateDefaultFont(10)
Main.fx.Clipboard.SetString(others.device_id)
xui.MsgboxAsync(QUOTE & others.device_id & QUOTE & " is placed to clipboard, use for support", "Computer ID")
Wait For (dialog.ShowTemplate(tmp, "OK", "Telegram", "ChangeLog & Email")) Complete (Result As Int)
If Result = xui.DialogResponse_Negative Then
others.OpenLink(others.telegram)
Else If Result = xui.DialogResponse_Cancel Then
others.OpenLink("mailto:" & others.email & "?subject=PCBComparer2_ver." & Main.ver & "_from_" & others.device_id)
others.OpenLink("https://website")
End If
End Sub
?
Dialog with the template is not shown, error and crash is occured.