I'll try to explain more what the app is doing.
The streams are in fact animation frames.
In the main stream each frame is stored using lossless compression (lz4). When the user is changing the frames using the interface, each frame is decompressed, modified and recompressed. Also, in the 2nd...
Thank you both for the advice.
But my app has to work with any stream size (not just a few MB) and it should use memory as it needs, not take all the memory.
Yes, I see the advantages of using a fixed size memory area, but unfortunately I can't use this approach [sad]
For now I'm working on...
Thank you.
That's a good advice, but unfortunately I can't work with fixed size streams since every item from the records array is unique (different size, different content). And I already lowered the number of reallocations to minimum.
Meantime I tried another approach: to make again a custom...
Hi.
In one of my applications I use an array of records (hundreds of items) with 4 memory streams (a few MB each) in each item.
Most of the times the data from one of the streams is backed up in one of the streams (for Undo) and then is modified and the result is copied into the other 2 and...
In case someone is wondering why I need to create such files: I'm making a small utility to fill USB sticks/keys with dummy files(s) so it wouldn't get infected on other computers.
It works for the most of the viruses.
You can download the application from...
First, I have tried good antivirus programs on such files and there wasn't such problems.
Second, seems like you didn't read what I said:
So it will not be stored in such locations as Program Files.
It will be stored where the user will copy it.
If it can't be modified it will notify the user...
I just had a feeling that I know you already...
I just want to make it lite and portable.
The users will start it from USB stick/key.
It doesn't even have an installer. It's freeware.
I don't like to use registry for various reasons.
I usually use configuration files (ini, cfg) but in this...
Hi.
I want to save the configuration of my program into its exe file (directly or in resources).
I know I can use registry or a separate configuration file but I prefer to save in exe.
Could you please help me..?
Thank you in advance.
Best regards, Cosmin
Hi.
What is the fastest way to create a file of a specific size (preferably without writing in it) on a nonNTFS partition..?
On a NTFS I use this:
var tf: TFileStream;
begin
....
tf := TFileStream.Create(FileName, fmCreate or fmShareExclusive);
tf.Size := [desired value];
tf.Free;
It's very...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.