Re: [twsocket] How to add custom commands to derived classes of TFtpServer

2006-10-11 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: >>> Because ICS has to support versions of Delphi that don't support >>> dynamic arrays. >> >> But any Delphi version supports conditional compilation, which >> is already used in ICS frequently, no big deal. > > Sure you can add conditional code, prov

Re: [twsocket] How to add custom commands to derived classes of TFtpServer

2006-10-11 Thread Angus Robertson - Magenta Systems Ltd
> Why is FCmdTable declared as static array instead of dynamic Because ICS has to support versions of Delphi that don't support dynamic arrays. You won't find dynamic arrays anywhere is ICS, nor any language improvements added in the last seven or more years. > Also, why is it required to al

[twsocket] How to add custom commands to derived classes of TFtpServer

2006-10-11 Thread Arno Garrels
Hello, Why is FCmdTable declared as static array instead of dynamic which does not allow reallocation, for instance in an overridden constructor? FCmdTable : array [0..ftpcLast+5] of TFtpSrvCommandTableItem; { angus V1.39 } Also, why is it required to allocate + 5 items? --- Arno Garrels [Tea