Comments (4)
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.
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.
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.
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)
- Not an Abbrevia bug - ShellShock Inquiry HOT 1
- How to decompress an Abbrevia compressed binary file using C#
- BZIP2 1.0.8 HOT 1
- strange code in AbDfInW.pas HOT 1
- After install I do not see TAbZipper, TAbZipKit and other in palette of Componets Delphi Rio HOT 2
- The component does not work on Android in Delphi 11 HOT 5
- Compress Stream to Stream HOT 8
- TBZCompressionStream fail in D11 HOT 2
- Installing to Alexandria 11.2 HOT 4
- BaseDirectory + TempDirectory HOT 1
- AbUtils AbDriveIsRemovable
- Package compatible problem
- Please add support for Delphi 12 Athens (compiler directives, packages etc) HOT 1
- Possibility to use TBufferedFileStream HOT 3
- Update BZIP2 obj files to v1.0.8 HOT 3
- ZipCrypto <> AES-256
- ZIP + password HOT 1
- Error zipping large file on iOS: VMSXXXXXX not found
- Abbrevia still requests a "Floppy" disk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abbrevia.