[fpc-pascal] writing xml to output crashes

2006-09-18 Thread Vincent Snijders

Hi,

The following program crashes if compiled with fpc 2.0.4. It works correctly if fpc 
2.1.1 is used. Should I create a bug report or is the 2.0.x series not maintained 
anymore?


program xmloutput;

{$mode objfpc}{$H+}

uses
  xmlwrite, dom
  { add your units here };

var
  XMLDoc : TXMLDocument;

begin
  XMLDoc := TXMLDocument.Create;
  WriteXMLFile(XMLDoc, output);
  XMLDoc.Free;
end.

An unhandled exception occurred at $00404369 :
EAccessViolation : Access violation
  $00404369  SMALLFORWARDMOVE_3,  line 160 of D:/lazarus/source/fpc/2.0/rtl/i386
/fastmove.inc
  $00407DEC  TTEXTXMLWRITER__WRITE,  line 116 of XMLWrite.pp
  $00407F7B  TXMLWRITER__WRTSTR,  line 147 of XMLWrite.pp
  $00408786  TXMLWRITER__VISITDOCUMENT,  line 363 of XMLWrite.pp
  $00407F24  TXMLWRITER__WRITENODE,  line 247 of XMLWrite.pp
  $00407D80  TTEXTXMLWRITER__WRITEXML,  line 431 of XMLWrite.pp
  $00407D33  WRITEXMLFILE,  line 456 of XMLWrite.pp
  $00401070  main,  line 14 of xmloutput.pas


Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] presenting fpunit test results

2006-09-18 Thread Vincent Snijders

Graeme Geldenhuys schreef:

On 9/8/06, Dean Zobec <[EMAIL PROTECTED]> wrote:

At first sight, it seems that the methods StartTest and EndTest of the
listeners are the right place where to place the code to do the timings.
I guess the right approach would be to add an option at command line or
otherwise to add the timing result. Same for the list of the run tests.



Thanks for the pointers Dean.   I didn't get time today, but should
over the weekend.


Any progres?

Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] presenting fpunit test results

2006-09-18 Thread Graeme Geldenhuys

Sorry, I got side tracked with work requirements. Who decided there
must only be 24 hours in a day! :-)

I already have most of the timing results implemented, just need to
rework the way the Text TestRunner uses the XML output. I will finish
it in this week.

Regards,
 - Graeme -


On 19/09/06, Vincent Snijders <[EMAIL PROTECTED]> wrote:

Graeme Geldenhuys schreef:
> On 9/8/06, Dean Zobec <[EMAIL PROTECTED]> wrote:
>> At first sight, it seems that the methods StartTest and EndTest of the
>> listeners are the right place where to place the code to do the timings.
>> I guess the right approach would be to add an option at command line or
>> otherwise to add the timing result. Same for the list of the run tests.
>
>
> Thanks for the pointers Dean.   I didn't get time today, but should
> over the weekend.

Any progres?

Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




--
There's no place like 127.0.0.1
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal