[fpc-pascal]What does this mean?

Holger Peters mailanholgerpeters at web.de
Tue Jan 20 12:52:57 CET 2004


Hi,

thank you, a really stupid mistake from me, but it is still not working 
when I compile it with fpc main3.pp -gd .

Holger
Michael Van Canneyt schrieb:

>On Tue, 20 Jan 2004, Holger Peters wrote:
>
>  
>
>>Hi,
>>
>>I tried to compile this program:
>>
>>{$MODE OBJFPC}
>>program
>>        DomTest3;
>>uses
>>        DOM,
>>        xmlread,
>>        Classes;
>>var
>>        MyXMLStructure  : TXMLDocument;
>>        MyFile                  : TFileStream;
>>
>>
>>
>>begin
>>MyFile.Create('test.xml',fmopenread);
>>    
>>
>
>This is wrong. It should be
>
>  MyFile:=TfileStream..Create('test.xml',fmopenread);
>
>It explains the access violation.
>
>Michael.
>
>_______________________________________________
>fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>  
>






More information about the fpc-pascal mailing list