Solved

Very large Tfilestreams

Posted on 2003-11-28
5
239 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now