This feature may be well known but it just caught me out causing my app to be stopped by Mac OS on the reasonable grounds that the computer had run out of memory. At the time of the error the application running in the IDE was using 69 Gbytes of memory.
So why was this ?
Here is the line that caused the problem:
Code: Select all
put BuildCommand (tFileSpec,tOldKeywordList,pModifiedKWs,tBatchArguments)
Code: Select all
repeat for each line tLine in pFiles
put item 1 of tLine into tFileSpec
put item 2 of tLine into tOldKeywordList -- pipe delimited
put BuildCommand (tFileSpec,tOldKeywordList,pModifiedKWs,tBatchArguments)
end repeat
Code: Select all
Function BuildCommand pFileSpec, pFileKeywords, @pKeywordUpdates, @pBatchArguments
snip
return pBatchArguments
The solution is to correct the error in the calling line by adding the missing words into tBatchArguments
Code: Select all
repeat for each line tLine in pFiles
put item 1 of tLine into tFileSpec
put item 2 of tLine into tOldKeywordList -- pipe delimited
put BuildCommand (tFileSpec,tOldKeywordList,pModifiedKWs,tBatchArguments) into tBatchArguments
end repeat
- Doh!Just a simple software fix
best wishes
Simon