> 1) In swat, look at BHI_history[1] and BHI_history[2] to see if they
> contain the optr data for @BatteryView
In the version which doesn't work (BHI_genView at the end), swat gives me
something like [having reduced the array size to 10 to make manual
initialization easier ;-))
word BHI_history[10] = {0h, 0h, 2eh, 0h, 0h, 0h, 0h, 0h, 0h, 0h}
word BHI_count = 0
dword BHI_genView = 0000h:0000h
[2eh] is the chunk handle of the genView object.
> 2) Try initializing the elements of the array to see if that will fix
> the problem.
> (I.e., @instance word BHI_history[MAX] = {0,0,0,0,...,0};)
This does indeed fix the problem.
ciao marcus