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

how low (level) can you go?

Status
Not open for further replies.

peterworth

Programmer
Aug 18, 2004
80
GB
i want to read directly from an address in memory (ie regardless of whether it is part of the assigned program memory).

can i do this in a C program?...

this:

char* pointer = (char*)0;
fwrite(pointer,4,1,file);

causes a debug assertion error. can i just turn these assertions off or something?
 
How would this be different from say the output of a good random number generator, which would be far easier to implement than trying to solve the problems of reading bits of random memory you don't own.

Or maybe take mingis' suggestion, draw a fractal into memory, then use that as your 'random' source, as it will contain a random selection of 'smooth' and 'rough' textures.

--
 
because the data in memory won't be random - there will be image data, ascii, audio data, repeating patterns, only occasional random sections etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top