小编Yur*_*riy的帖子

流读取错误

我在重负载下收到此错误消息.这是我的错误日志中的代码摘要和消息.我尝试了我能想到的一切.任何建议将不胜感激.

Procedure tCacheInMemory.StreamValue(Name: String; IgnoreCase: Boolean; Var Stream:     TStringStream);
Var
  i: Integer;
Begin
  i := 0;
  Try
    If Not active Then
      exit;
    arrayLock.BeginRead;
    Try
      i := Search(Name);
      If i > -1 Then Begin
        If fItems[i].value = Nil Then
          exit;
        fItems[i].value.Position := 0;
        Stream.Position := 0;
        Stream.CopyFrom(fItems[i].value, fItems[i].value.Size);
      End;
    Finally
      arrayLock.EndRead;
    End;
  Except { ...execution jumps to here }
    On E: Exception Do Begin
      x.xLogError('LogErrorCacheInMemory.txt', 'StreamValue:' + E.Message + ' ItemsCount:' + IntToStr( High(fItems)) + 'Memory:' + IntToStr(x.GetMemoryInfoMemory) + endLn + …
Run Code Online (Sandbox Code Playgroud)

delphi delphi-2010

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

delphi ×1

delphi-2010 ×1