I can't find the problem in my code. Every second start of the app, i get this error when i click on an item of the ExpandbaleTableView. It does't matter, if it is release or debug.mode. The exception is raised in line tv.EndUpdates of the etv-class.
Thanks for help....
B4X:
Error occurred on line: 102 (ExpandableTableView)
Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (18) must be equal to the number of rows contained in that section before the update (4), plus or minus the number of rows inserted or deleted from that section (6 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
Foundation <redacted> + 90
UIKit <redacted> + 8666
EIS -[B4ITableView EndUpdates] + 46
EIS -[b4i_expandabletableview _tv_selectedchanged:::] + 2800
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
EIS +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1788
EIS -[B4IShell runMethod:] + 496
EIS -[B4IShell raiseEventImpl:method:args::] + 1982
EIS -[B4IShellBI raiseEvent:event:params:] + 1332
EIS +[B4IObjectWrapper raiseEvent:::] + 220
EIS -[B4ITableViewDelgate tableView:didSelectRowAtIndexPath:] + 322
UIKit <redacted> + 918
UIKit <redacted> + 194
UIKit <redacted> + 308
UIKit <redacted> + 466
CoreFoundation <redacted> + 20
CoreFoundation <redacted> + 278
CoreFoundation <redacted> + 914
CoreFoundation CFRunLoopRunSpecific + 476
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 136
UIKit UIApplicationMain + 1440
EIS main + 108
libdyld.dylib <redacted> + 2
)
Thanks for help....