Richard R wrote:
> hello, I am wondering how to calculate memory on a object which has a data 
> structure of 36 bytes and could have 275,000 of such structures. Do I need 
> to convert 36 to base 10 then multiply by 275k? then convert back to base 8?

When you said the object is 36 bytes, was that not in base 10 already?

There's no conversion necessary. Just multiply.

> I want to generate a warning message if the object they load into my 
> software exceeds a limit on what the software can do with current memory and 
> page file. 

Have you imposed some artificial limit in your program that's different 
form the limit enforced by the OS? If you run out of memory, the OS will 
tell you. The memory manager will raise an EOutOfMemory exception, which 
you can catch and handle as you wish.

-- 
Rob
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to