"tim_beynart" wrote:
I am seeing a failure in an in-market app:
BRIGHTSCRIPT: ERROR: Runtime: "roArray": invalid number of parameters
This is caused by the following line:
m.adbeaconlist = CreateObject("roArray")
I never saw this error before when we tested and verified the application. Now our advertising tracking is broken. In production.
My fix is to use bracket notation:
m.adbeaconlist = []
But my question is, why did this break? What changed in OS7.1?
The error message is printed now, but the functional behavior is the same as it always has been:
CreateObject("roArray") will return
invalid.
As joetesta said, the
size and
resize parameters are required.
The reason for this error message is exactly to point out what was previously a silent failure.
Your fix to replace the call to CreateObject with [] is a perfectly good one.
🙂