iOS Question searchview with richtstring problem

tufanv

Expert
Licensed User
Longtime User
Hello,

I am getting an error when I set the items of searchview with a list .I add two items manually to list and load the list with:

SearchView1.SetItems(listetakimlar)

I am getting this error:
Can it be a problem with the new b4i or ios12 ? Because it was working perfect beofre updating these2


B4X:
Application_Start
timer tick 1
Application_Active
JobName = fiksturgetir, Success = true

Error occurred on line: 57 (RichString)
NSConcreteMutableAttributedString initWithString:: nil value
Stack Trace: (
  CoreFoundation       <redacted> + 252
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       <redacted> + 0
  Foundation           <redacted> + 212
  CoreFoundation       <redacted> + 144
  CoreFoundation       <redacted> + 292
  CanliSkor            +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
  CanliSkor            -[B4INativeObject RunMethod::] + 216
  CanliSkor            -[b4i_richstring _settext::] + 908
  CanliSkor            -[b4i_searchview _additemstolist:::] + 1832
 CanliSkor            -[b4i_searchview _setitems::] + 772
 CanliSkor            -[ResumableSub_main_lblara_Click resume::] + 7948
 CoreFoundation       <redacted> + 144
 CoreFoundation       <redacted> + 292
 CanliSkor            +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
 CanliSkor            -[B4IShell runMethod:] + 448
 CanliSkor            -[B4IShell raiseEventImpl:method:args::] + 1640
 CanliSkor            -[B4IShellBI raiseEvent:event:params:] + 1560
 CanliSkor            -[B4IDelegatableResumableSub resume::] + 380
 CanliSkor            -[B4I checkAndRunWaitForEvent:event:params:] + 552
 CanliSkor            -[B4IShellBI raiseEvent:event:params:] + 1380
 CanliSkor            -[B4ICommon CallSub4::::] + 344
 CanliSkor            -[B4ICommon CallSub2::::] + 360
 CanliSkor            -[b4i_httpjob _complete:] + 212
 CanliSkor            -[b4i_httputils2service _completejob::::] + 436
 CanliSkor            -[b4i_httputils2service _hc_responsesuccess::] + 168
 CoreFoundation       <redacted> + 144
 CoreFoundation       <redacted> + 292
 CanliSkor            +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
 CanliSkor            -[B4I raiseEvent:event:params:] + 564
 CanliSkor            __61-[B4IHttp URLSession:downloadTask:didFinishDownloadingToURL:]_block_invoke + 268
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 92
 libdispatch.dylib    <redacted> + 16
 libdispatch.dylib    <redacted> + 1012
 CoreFoundation       <redacted> + 12
 CoreFoundation       <redacted> + 1964
 CoreFoundation       CFRunLoopRunSpecific + 436
 GraphicsServices     GSEventRunModal + 100
 UIKitCore            UIApplicationMain + 212
 CanliSkor            main + 124
 libdyld.dylib        <redacted> + 4
)
Class (b4i_httpjob) instance released.
 
Last edited:

tufanv

Expert
Licensed User
Longtime User
Problem seems to be resolved today. YEsterday when I closed the app it wasn't working. Sometimes I can't understand why some things happen or not
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…