Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!mcsun!sunic!chalmers!me.chalmers.se!tobbe From: tobbe@me.chalmers.se (Mu!) Newsgroups: comp.lang.pascal Subject: TP - memory usage Message-ID: <73@me.chalmers.se> Date: 30 Oct 89 00:56:26 GMT Organization: Dep. of Mechanical Engineering, Chalmers , Sweden. Lines: 16 Hello world, I'm writing a program in TurboPascal v5 and have, since I'm a novice at the PC's memory limitations, encountered a problem (at least I think it could be a problem :-)). How do I know how much of the computers memory a program is going to use (no dynamic allocation), and how does one go about to test this? I'd like the program to do something like "if mem_avail > size_of(this_program) then begin(program) else error(message)" I have some ideas of how to do, but I don't know how to create the environment to test them in :-) I've read the manual, yes, but I found no hints there unless I've missed the same page(s) every time. Also, I'm sorry if this isn't the appropriate newsgroup. thank you! - Tobbe --- tobbe@gamma.me.chalmers.se (Gothenburg, Sweden, soon winter, argh!)