Your code crashed whenever I tried to change the image.
Application_Start
Application_Active
Error occurred on line: 111 (Main)
Object was not initialized (UIImage)
Stack Trace: (
CoreFoundation __exceptionPreprocess + 180
libobjc.A.dylib objc_exception_throw + 50
CoreFoundation +[NSException raise:format:] + 141
B4i Example -[B4IObjectWrapper object] + 154
B4i Example -[B4IImageViewWrapper setBitmap:] + 118
B4i Example -[b4i_main _movenextani] + 2540
B4i Example -[b4i_main _touchfling::] + 2169
B4i Example -[b4i_main _page1_touch:::] + 1303
CoreFoundation __invoking___ + 29
CoreFoundation -[NSInvocation invoke] + 342
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 2069
B4i Example -[B4IShell runGoodChain::] + 293
B4i Example -[B4IShell raiseEventImpl:method:args::] + 3147
B4i Example -[B4IShellBI raiseEvent:event
arams:] + 1623
B4i Example -[B4IPanelView touchesEnded:withEvent:] + 827
UIKit -[UIWindow _sendTouchesForEvent:] + 1095
UIKit -[UIWindow sendEvent:] + 1159
UIKit -[UIApplication sendEvent:] + 266
UIKit _UIApplicationHandleEventQueue + 7802
CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
CoreFoundation __CFRunLoopDoSources0 + 523
CoreFoundation __CFRunLoopRun + 1032
CoreFoundation CFRunLoopRunSpecific + 470
CoreFoundation CFRunLoopRunInMode + 123
GraphicsServices GSEventRunModal + 192
GraphicsServices GSEventRun + 104
UIKit UIApplicationMain + 160
B4i Example main + 138
libdyld.dylib start + 1
??? 0x0 + 1
)
If you think that there is a memory leak then try to create a simple program with minimum logic that reproduces it.