On Jun 27, 2013, at 2:22 , Igor Stasenko wrote:
i think it fails because you passing strange (NBExternalObject null)
as length parameter.
i guess you meant NBExternalAddress null instead.
Speaking of weird external stuff�
NBExternalArray class >> #initElementType: aTypeName
"Initialize the element type and size.
If you want to use a public subclass of me, then make sure you call this method
in your class #initialize method.
"
elementType := aTypeName.
elementSize := (NBFFICallout new requestor: self; resolveType: elementType) valueSize .
self installAccessors.
Shouldn't that be storageSize?
Or is a disclaimer not to use the class for, say, 'char*' elements more appropriate?
Cheers,
Henry