Git Product home page Git Product logo

Comments (4)

romankassebaum avatar romankassebaum commented on August 15, 2024

I can reproduce the issue. It is only an exception that occurs inside the IDE. You can ignore it. Here is a code snippet from System.Classes:

function TStream.CopyFrom(const Source: TStream; Count: Int64; BufferSize: Integer): Int64;
...
try
...
except
// If Size/Position is not supported, or no NewSize space is available, or reallocation
// is not supported, or stream is read-only, then ignore exception and let WriteBuffer
// raise exception. Expectable exception classes are: EStreamError, EOSError, EOutOfMemory.
end;

from abbrevia.

MPannier avatar MPannier commented on August 15, 2024

Thanks for the reply. You are right. In my demo application, it works as you described. The exception will only be "visible" in the debugger and the zipped stream can be unzipped without problems.

But I migrate an older project to Delphi 11 and there I will get the exception message "Invalid stream operation" from "TBZCompressionStream.Seek" without debugger. I can click OK and the compression will continue. The zipped stream is also correct and can be unzipped. But I get the exception message. I have checked ccompiler settings and can't find the one which causes the dialog to pop up. Any hints? Did you plan to rewrite the TBZCompressionStream class in future?

from abbrevia.

romankassebaum avatar romankassebaum commented on August 15, 2024

I have no idea what causes the exception in your program. Try to debug it.

I have not written this component and also do not plan to rewrite it.

from abbrevia.

bah111 avatar bah111 commented on August 15, 2024

This probably has been fixed in D11.1 release. EMB put a size check in the TStream.CopyFrom in D11, which for compressed streams is sometimes pointless. They have done a fix and hence your problems might/should go away.

from abbrevia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.