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

Reply via email to