iOS Question SOLVED - iBarCode and B4XPages - crashing

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I am trying to use this library https://www.b4x.com/android/forum/threads/ibarcode-library.47354/

In a B4XPages - B4XMainPage create routine I do the following
B4X:
Private Sub B4XPage_Created(Root1 As B4XView)
            Log("B4XPage_Created")

            Root             = Root1
            
            B4XPages.SetTitle(B4XPages.MainPage, "BBsViewer")            
            
            Root.LoadLayout("smainmenu")
            
            scanner.Initialize2("scanner", sMain_Camera_Panel, Array(scanner.TYPE_QR))            
End Sub

This program worked perfectly (before inserting the scanner routine) and the example which is just a B4i program works fine.

When the scanner.Initialize2 routine runs I instantly get a crash:
B4X:
Error occurred on line: 591 (B4XMainPage)
Signal - 6
Stack Trace: (
    "0   BBsViewer            SignalHandler + 120",
    "1   libsystem_platform.dylib            0x00000001f134dc10 E44B288B-8DF0-3923-A311-837535B6A7E9 + 7184",
    "2   libsystem_kernel.dylib              0x00000001b8200c24 1FB39303-587B-320E-AEB8-E51A54C8A4A9 + 195620",
    "3   libsystem_kernel.dylib              0x00000001b8200c58 1FB39303-587B-320E-AEB8-E51A54C8A4A9 + 195672",
    "4   TCC                  D4AA04FF-1C20-3B54-9328-2A590AE2179B + 29392",
    "5   TCC                  D4AA04FF-1C20-3B54-9328-2A590AE2179B + 31384",
    "6   TCC                  D4AA04FF-1C20-3B54-9328-2A590AE2179B + 18648",
    "7   libxpc.dylib         B1832133-79DC-3E42-B704-EF71F75A577E + 112300",
    "8   libxpc.dylib         B1832133-79DC-3E42-B704-EF71F75A577E + 60364",
    "9   libdispatch.dylib    E3EA4F63-5D11-342A-AF19-9F58DBC8E259 + 15024"
)
 
Top