Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:57 pm
by Murray Symon >> Sat, 11 Mar 2006 2:45:45 GMT
A further point to note is that you can define an IntegerArray as
either a reference or an attribute. There are pro's & cons to each.
1. If the IntegerArray is defined as an attribute it is embedded
within the owner class and is automatically created & initialised.
In this case you cannot share a reference to it as it is treated
as part of the owner object.
2. If the IntegerArray is created as a reference it is, as Brendan described, just a reference to an "external" IntegerArray object
which must be explicitly created and destroyed.
In this case the reference can be shared and used by other objects.
I don't know how you have defined the IntegerArray (some developers
don't even realise the difference), but if it is as a reference (#2)
then you could try re-defining it as an attribute. As an attribute
it is treated more as an integral part of the owner object, so the changes may be more likely to trigger a notification. Sorry, but I'm
not in a position to try a test case until next week, after the long weekend.
--
HTH
Murray Symon.