RE: Re: [DUG]: Array of components

2003-03-30 Thread Allan, Samuel
. -Original Message- From: vss [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 11:00 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Array of components Al. you need to do SetLength since your array is dynamic. So, SetLength(DirMonArray, High(DirMonArray)+1) DirMonArray

RE: RE: Re: [DUG]: Array of components

2003-03-30 Thread Kyley Harris
PROTECTED] Sent: Monday, 31 March 2003 11:21 a.m. To: Multiple recipients of list delphi Subject: RE: Re: [DUG]: Array of components This is inefficient because every time you call SetLength, it re-allocates the array in memory, then copies the contents from the old allocation to the new one. A better

RE: RE: RE: Re: [DUG]: Array of components

2003-03-30 Thread Allan, Samuel
delphi Subject: RE: RE: Re: [DUG]: Array of components Let's just fix the actual bug (worry about efficiency later) DirMonArray[DmonCount - 1].Create(self); //= creation error here of course it will crash.. try DirMonArray[DmonCount - 1] := TDirMonitor.Create(self); -Original