Solved

Very large Tfilestreams

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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