[fpc-devel]fcl, classes unit, memory issue

Rimgaudas Laucius rimga at ktl.mii.lt
Sun Apr 18 18:33:29 CEST 2004


Hello,

uses
  classes;
var
  l: tstringlist;
begin
  l.loadfromfile('file.txt'); //<-hangs here 
  ...
end.

Program hangs (under windows, 1.9.2 and earlier v.) then i try to load relatively large file (~7 MB) without raising any error message. It works ok, if i set more memory using directive ($M). Why do not program allocate neaded memory automaticaly? Do i need to calculate how much memory need to program and set its size before compilation always?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20040418/0ee9f117/attachment.html>


More information about the fpc-devel mailing list