Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Cosmin3

    lowering memory fragmentation

    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...
  2. Cosmin3

    lowering memory fragmentation

    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...
  3. Cosmin3

    lowering memory fragmentation

    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...
  4. Cosmin3

    lowering memory fragmentation

    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...
  5. Cosmin3

    the fastest way to create a file of specified size

    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...
  6. Cosmin3

    saving configuration in application' exe file

    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...
  7. Cosmin3

    saving configuration in application' exe file

    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...
  8. Cosmin3

    saving configuration in application' exe file

    Thank you. I read this thread before writing this one and is not what I'm looking for...
  9. Cosmin3

    saving configuration in application' exe file

    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
  10. Cosmin3

    the fastest way to create a file of specified size

    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...

Part and Inventory Search

Back
Top