Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Very large Tfilestreams

Posted on 2003-11-28
5
Medium Priority
?
248 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
3 Comments
 
LVL 3

Accepted Solution

by:
SteveWaite earned 500 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 500 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

824 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