Compiler Error with ZX24 and MemCopy
Posted: 05 April 2008, 14:41 PM
The following problem only fails with the ZX24 and the 2.4.1 compiler:
The compiler error message isIt works fine with a ZX24e or ZX24a device, or with the 2.3.10 compiler. The original problem copied byte arrays but I used a single byte to highlight the problem.
BTW It took me 15 minutes to gradually cut code out of my larger program to isolate this problem. It is worth the effort to give Don a very simple testcase that he can use to recreate the problem.
Code: Select all
Public dataOut As Byte
Public dataIn As Byte
Public Sub Main()
Call MemCopy(dataOut.DataAddress, dataIn.DataAddress, 1)
End Sub
Code: Select all
Error: statically allocated variables consume all available RAM, see 'Option HeapSize'
BTW It took me 15 minutes to gradually cut code out of my larger program to isolate this problem. It is worth the effort to give Don a very simple testcase that he can use to recreate the problem.