Solved

Very large Tfilestreams

Posted on 2003-11-28
5
245 Views
Last Modified: 2010-04-05
I have one exe that gathers all files that I choose into one package. This package is attatched to another exe that has the function to extract the package from itself and to un-package the files into a folder.

The problem is when the package file gets a bit too large, on my PC it works fine but on an older machine with a bit less memory I get a disk read error and stuff.

Is there a easy way to read bit by bit so that I am able to unpack the exe on a older machine?


/Fixzy



0
Comment
Question by:Fixzy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 3

Accepted Solution

by:
SteveWaite earned 125 total points
ID: 9840926
Be careful, when going from say what works on xp and not on win98, I have found that a bug in my source actually worked ok on xp but not on 98. But when i fix it the program works ok on both platforms. Something like your program  using streams should work the same on both, assuming a large enough swap file exists on the older. I find testing on win 95 (if poss) can even show up shortcomings in the code.

Regards
Steve
0
 
LVL 9

Assisted Solution

by:mocarts
mocarts earned 125 total points
ID: 9843131
hi, Fixzy :)
there is two options to work with large files - use BlockRead and work with small sized (tenth of Kb) buffer or use memory mapped files (work with file with simple pointer).

wbr,mo.
0
 

Author Comment

by:Fixzy
ID: 9843849
Hi.

Do u have a bit of code to share?

/Fixzy
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
When I am typing into a TEdit last word repeats 7 177
Find and Replace Stream with 0s 8 87
migrate this code to work on android 1 45
TAction.OnAfterExecute? 2 31
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question