Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Jul : Problem with SetLength procedure

www.cryer.info
Managed Newsgroup Archive

Problem with SetLength procedure

Subject:Problem with SetLength procedure
Posted by:"Enquiring Mind" (enquiring.mind@nospam.btopenworld.com)
Date:Thu, 26 Jul 2007 12:59:28

Hi,

After making some changes to the main form of a Windows application I
started getting a run-time error in another unit used by the program on a
line where SetLength is called to size a dynamic array. When executing the
offending SetLength statement in the debugger there is a significant pause,
as if  some recursive iteration had been triggered, then the dreaded CPU
window is thrown up. The code where the error occurs had been working fine
until the recent changes to the unit of the main form. The size of data
being processed by the program hasn't changed from previous successful runs.
I have examined the memory used by the application in the Task Manager, and
it does not appear to be near the hardware limit. The size of dynamic array
being passed to SetLength is less than 10. Any ideas about what could be
causing SetLength to explode?

Thanks in advance,

Enquring Mind

Replies:

www.cryer.info
Managed Newsgroup Archive