Ignore:
Timestamp:
Aug 27, 2016, 8:58:18 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Wrong access to main thread from export jobs causing exception.
  • Fixed: Build under linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormExport.pas

    r97 r98  
    2424  private
    2525    ItemCount: Integer;
     26    Content: string;
    2627    procedure JobExportCSV(Job: TJob);
    2728    procedure JobExportMediaWiki(Job: TJob);
     
    6667  I: Integer;
    6768  J: Integer;
    68   Content: string;
    6969begin
    7070  Job.Progress.Max := Core.AcronymDb.Acronyms.Count;
     
    8181    if Job.Terminate then Break;
    8282  end;
    83   Memo1.Lines.Text := Content;
    8483end;
    8584
     
    8887  I: Integer;
    8988  J: Integer;
    90   Content: string;
    9189begin
    9290  Job.Progress.Max := Core.AcronymDb.Acronyms.Count;
     
    104102    if Job.Terminate then Break;
    105103  end;
    106   Memo1.Lines.Text := Content;
    107104end;
    108105
     
    112109  J: Integer;
    113110  Line: string;
    114   Content: string;
    115111begin
    116112  Job.Progress.Max := Core.AcronymDb.Acronyms.Count;
     
    131127  end;
    132128  Content := Content + '|}' + LineEnding;
    133   Memo1.Lines.Text := Content;
    134129end;
    135130
     
    143138    Core.JobProgressView1.AddJob(SExporting, JobExportMediaWikiTable);
    144139  Core.JobProgressView1.Start;
     140  Memo1.Lines.Text := Content;
    145141  ShowMessage(Format(SExportedAcronyms, [ItemCount]));
    146142end;
Note: See TracChangeset for help on using the changeset viewer.