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  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal






_______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to