SET_LENGTH_ARRAY Problems
hodeyp
Posts: 104
Has anybody had problems using the above command? I have a structure array that stores information from an imerge soundserver, the module requests # of albums from the server and stores that in a level, the level event then sets the length of the array to = #albums and then sends the request to populate the array with data.
Problem is the array always gets set to a length of 1...
I am not sure where to start looking for a resolution so not sure what other info to provide but any suggestions as to where to start on the would be much appreciated.
Phil
Problem is the array always gets set to a length of 1...
I am not sure where to start looking for a resolution so not sure what other info to provide but any suggestions as to where to start on the would be much appreciated.
Phil
0
Comments
It's the same with SET_LENGTH_STRING(), both instructions doing absolutely the same.
Hope this helps.
Is there no way of dynamically adjusting the size of an array? Seems to be a waste of resources having to set an array to maximum ever expected size just in case...
No. Memory is checked and allocated at compilerrun, so it's not possible to size up. We may have always some resources wasted, but if working in VOLATILE mem (16..64MByte depending on master hardware) this should not be that problem