When I call a sub in my library class, I pass it a reference to my activity and the sub that should be called in that Activity once the work in question is completed. Once the library class has completed the work it fires CallSub, passing the Activity and Sub to call back. This works without issue in DEBUG and in RELEASE - but the callBackSub never executes in RELEASE (obfuscated)
LIBRARY CODE:
private callBackActivity as Object
private callBackSub as String
Sub(anActivity as Object, subToCall as String)
callBackActivity = anActivity
callBackSub = subToCall
GoDoSomeWork ' e.g. HTTPJob
End Sub
Sub WorkCompleted
' This line is called in RELEASE (obfuscated) but the sub never fires
CallSub(callBackActivity,callBackSub)
End Sub
LIBRARY CODE:
private callBackActivity as Object
private callBackSub as String
Sub(anActivity as Object, subToCall as String)
callBackActivity = anActivity
callBackSub = subToCall
GoDoSomeWork ' e.g. HTTPJob
End Sub
Sub WorkCompleted
' This line is called in RELEASE (obfuscated) but the sub never fires
CallSub(callBackActivity,callBackSub)
End Sub