iOS Question [Solved] 1.Apple crash report

D

Deleted member 103

Guest
Hi,

I got my first Apple crash report today, WOW! :p

According to my analysis(Symbolicating a crash report), the error should be at "main.m: 16".
upload_2019-3-8_14-48-52.png


This is my code:

B4X:
Sub mnuHistory_Click   
    Dim p As Panel
    p.Initialize("")
    p.SetLayoutAnimated(0, 1, 0, 0, pMain.RootPanel.Width * 0.8, pMain.RootPanel.Height * 0.8 - 50)
    p.LoadLayout("frmWebView")
    
    DetailsDialog.Initialize(p)
    
    'HTML-Datei laden
    Dim WebView1 As WebView = p.GetView(0)
    WebView1.LoadHtml(File.ReadString(File.DirAssets, language.Value("strHistoryFile")))

    DetailsDialog.Style = DetailsDialog.STYLE_INFO
    Dim sf As Object = DetailsDialog.ShowAsync("", "OK", "", "", True)

    Wait For (sf) Dialog_Result (Result As Int)
End Sub

I use the same code in almost all my apps and it has never had any problems. :(
The app works with all my devices + Symulator without any problems.
 
D

Deleted member 103

Guest
I found the error, it has nothing to do with the sub "mnuHistory_Click", it's just a list that was not initialized. :rolleyes:
 
Upvote 0
Top