[fpc-pascal] What's wrong with this simple test program
    Michael Van Ham 
    michael.vanham at gmail.com
       
    Fri Dec 19 21:55:40 CET 2014
    
    
  
On Fri, Dec 19, 2014, 12:49 Ralf Quint <freedos.la at gmail.com> wrote:
I have been trying to use tStringList in a larger project of mine, but
this just keeps bombing out with a exception.
I have been able to reproduce the problem with this very simple test
program:
program project1;
USES Classes;
Var T : tStringList;
     S : String;
begin
   S := 'Test';
   T.Create;
// T.Clear;
   T.Add (S);
   T.Free;
end.
It will throw the exception at each and every instruction using T after
the T.Create statement.
The project is a simple command line program, tested both with Lazarus
1.2.6 and the included default install of FPC 2.6.4 on either Windows
8.1/64 or Windows 10/32...
---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com
_______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
 Try this,
 T := tstringlist.create;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141219/fe48a573/attachment.html>
    
    
More information about the fpc-pascal
mailing list