[DPF] Errors meaning the same thing section 4.3 and 4.8

Hi Jeremy,

This message contains a response to comments on

http://www.w3.org/TR/2004/WD-DPF-20041122/

e10:
section 4.3 and 4.8
INDEX_SIZE_ERR or INVALID_ACCESS_ERR

Do these two errors mean the same thing?
(Sorry again overlap with substantive comment, s14 concerning text of  
4.3)


No, the errors do not mean the same thing. These exceptions apply to  
the Item() method within the DPFPropertyList interface. The Item()  
method returns a DPFProperty within the property list based on an  
index (size of list) value. The INDEX_SIZE_ERR is raised if an  
invalid size number is used as a parameter to item call. The  
INVALID_ACCESS_ERR is raised due to an invalid memory access that  
occurs after a DPFProperty was accessed from the list. For example, a  
script object would have accessed the value pointer of a DPFProperty  
node from the property list. Now the property was removed from the  
list. If the script object tries to access the value pointer (that  
was stored in the previous call), this exception would be raised.

-Keith Waters

Received on Thursday, 2 June 2005 17:58:47 UTC