File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,8 +212,20 @@ procedure DoneEngineDefs;
212212end ;
213213
214214procedure RegisterEngine (AEngine: TRALClientHTTPClass);
215+ // var
216+ // vTxt : TextFile;
215217begin
216218 CheckEngineDefs;
219+ {
220+ AssignFile(vTxt, 'd:\testeral.txt');
221+ if FileExists('d:\testeral.txt') then
222+ Append(vTxt)
223+ else
224+ Rewrite(vTxt);
225+ Writeln(vTxt, AEngine.ClassName);
226+ CloseFile(vTxt);
227+ }
228+
217229 if EnginesDefs.IndexOfName(AEngine.EngineName) < 0 then
218230 EnginesDefs.Add(AEngine.EngineName + ' =' + AEngine.ClassName);
219231end ;
@@ -838,6 +850,7 @@ destructor TRALThreadClient.Destroy;
838850end ;
839851
840852initialization
853+ EnginesDefs := nil ;
841854
842855finalization
843856 DoneEngineDefs;
Original file line number Diff line number Diff line change @@ -124,8 +124,13 @@ function GetCompressClass(ACompressType: TRALCompressType): TRALCompressClass;
124124procedure GetCompressList (AList: TStrings);
125125var
126126 vInt : IntegerRAL;
127+ vStrType : StringRAL;
127128begin
128129 CheckCompressDefs;
130+
131+ vStrType := GetEnumName(TypeInfo(TRALCompressType), Ord(ctNone));
132+ AList.Add(vStrType);
133+
129134 for vInt := 0 to Pred(CompressDefs.Count) do
130135 AList.Add(CompressDefs.Names[vInt]);
131136end ;
@@ -229,7 +234,8 @@ function TRALCompress.Decompress(const AString: StringRAL): StringRAL;
229234function TRALCompress.Decompress (AStream: TStream): TStream;
230235begin
231236 Result := TMemoryStream.Create;
232- InitDeCompress(AStream, Result);
237+ if AStream.Size > 0 then
238+ InitDeCompress(AStream, Result);
233239end ;
234240
235241procedure TRALCompress.DecompressFile (AInFile, AOutFile: StringRAL);
You can’t perform that action at this time.
0 commit comments