Quote:
Originally Posted by phx
And you still have to specify the correct file name in the first argument!
|
This is self fooling. The same "error" is also in the DTST_RAM example in the OS 3.9 NDK. DTST_RAM does not work in OS 3.9. The example works because it specifies the file name of the original file. The memory area given is ignored, instead the datatypes sub class opens and reads the named file.
I guess the same is true for DTST_FILE with DTA_Handle.
Furthermore all documentation is worth nothing if the datatypes sub class does not support it. Reading data is not done in a central place but in the sub class code. You cannot trust every sub class author to implement all methods to read data. So if your code is public you should consider that the user can have installed replacement datatypes which do not support the less famous variations.
Finally reading part of a file which is not in the beginning of the file is a very special case of another special case. I would expect that to work only by chance if at all.