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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem allocating memory

Status
Not open for further replies.

kshk

Programmer
Joined
Aug 28, 2002
Messages
8
Location
IN
while loading a bmp file into memory, i am having problem loading the file into memory if it is too large. whats the way round?
 
Which OS/Compiler do you have.

I can probably guess its DOS. Only DOS is likely to have problems allocating enough memory for a bitmap.
 
yes DOS had some problems to allocate memory

but why are you loading all .BMP to memory??

use direct file handling & put .BMP directly to screen
it is possible, use lseek() to move ur pointer on file
n put every pixel into ur Screen

Remember Image is sets reverse order in .BMP file
so u print that Image Bottom to Top on ur Screen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top