iOS Question Job.GetRequest.Timeout crashes app

tsteward

Well-Known Member
Licensed User
Longtime User
I trying to conver my B4A app to B4I when my app comes to this line i crashes.
B4X:
Dim jobLoadFeedback As HttpJob
        
        jobLoadFeedback.Initialize("", Me)
        jobLoadFeedback.GetRequest.Timeout = 5000 'Crashes here
With the following error. Any hints?
Application_Active
Class (b4i_b4xorderedmap) instance released.
vehicles - 103
vehicles - 103
Class (b4i_httpjob) instance released.
Class (b4i_httpjob) instance released.
Class (b4i_httpjob) instance released.
Class (b4i_httpjob) instance released.
Error occurred on line: 355 (HttpJob)
Object was not initialized (NSMutableURLRequest)
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
LARA5 -[B4IObjectWrapper object] + 116
LARA5 -[B4IHttpRequest setTimeout:] + 44
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
LARA5 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1348
LARA5 -[B4IShell runMethod:] + 420
LARA5 -[B4IShell raiseEventImpl:method:args::] + 1472
LARA5 -[B4IShellBI raiseEvent:event:params:] + 1360
LARA5 -[b4i_b4xpagecar _loadfeedback:::] + 336
LARA5 -[ResumableSub_b4xpagecar_B4XPage_Created resume::] + 4840
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
LARA5 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1348
LARA5 -[B4IShell runMethod:] + 420
LARA5 -[B4IShell raiseEventImpl:method:args::] + 1968
LARA5 -[B4IShellBI raiseEvent:event:params:] + 1360
LARA5 -[B4IDelegatableResumableSub resume::] + 376
LARA5 __21-[B4ICommon Sleep:::]_block_invoke + 48
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 412
libdispatch.dylib <redacted> + 1308
libdispatch.dylib <redacted> + 784
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1924
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
LARA5 main + 100
libdyld.dylib <redacted> + 4
)
 
Top