Ticket Created
over 5 years ago

BOULDER-2038

RunningDynamics does not work as per documentation

Hi,

Steps to reproduce:

1. Create a DataField that instantiates RunningDynamics, initialising the class with "null" for the listener as per docs:

Constructor for the RunningDynamics object takes an extension of the RunningDynamicsListener class as a parameter. null can be passed in instead if the user plans to only poll for data using the get* methods.

EG: something like this:

function initialize() {
    DataField.initialize();
	if(self has :getDynamics) {	getDynamics();	}
	////// etc.
	// Snipped for clarity
}
// Later...
(:runningdynamics) function getDynamics() {
	if(AntPlus has :RunningDynamics) {
		dynamics = new AntPlus.RunningDynamics(null);
	}
}

2. Try to run the DataField on a 735xt.

EXPECTED RESULTS:

It should work perfectly.

ACTUAL RESULTS:

It crashes horribly somewhere in the compiled RunningDynamics code... error logs are:

ERROR: Invalid Value
DETAILS: Failed invoking <symbol>
STORE_ID: 00000000000000000000000000000000
CALLSTACK:
	@PC = 0x30002f0f
	@PC = 0x30002fff
  [SNIP].mc (getDynamics:61)
  [SNIP].mc (initialize:209)
  [SNIP].mc (getInitialView:19)

The only workaround that I have found is to pass a listener as an argument...

G

Parents Comment Children