Recent

Author Topic: fpvectorial sigsev in docx writetostream  (Read 466 times)

BobT

  • New Member
  • *
  • Posts: 19
fpvectorial sigsev in docx writetostream
« on: October 19, 2020, 07:13:05 pm »
Just getting started using fpvectorial to create .docx and .odt files and found that the most basic 'Hello World' examples raised a sigsev error using Document.WriteToFile in vfDOCX mode. vfODT worked fine. Stepping through I found it was falling over here
Code: Pascal  [Select][+][-]
  1. Procedure TvDOCXVectorialWriter.WriteToStream(AStream: TStream;
  2.   AData: TvVectorialDocument);
  3. ...
  4.     For i := 0 To FFiles.Count - 1 Do
  5.         oZip.Entries.AddFileEntry(FFiles[i].Stream, FFiles[i].Path); //sigsev fault here
  6.  
but it ran and produced sensible output if I added 'inherited' to the TIndentedStringList constructor:
Code: Pascal  [Select][+][-]
  1. Constructor TIndentedStringList.Create;
  2. Begin
  3.   inherited;       //This is absent in fpc source
  4.   FIndent := '';
  5.   FIndentSteps := '  ';
  6. End;  

Could it be that line (or sthg similar) has just fallen off the source code somewhere ? Or might I have some more subtle problem causing this behaviour? The current installation is being used for several other projects, some quite large, and nothing similar has appeared elsewhere so far.

Lazarus 2.0.10 fpc 3.2.0 MX Linux x86_64
« Last Edit: October 19, 2020, 07:26:24 pm by BobT »

 

TinyPortal © 2005-2018