How can i restrict the total memory usage of a program.
i have to check certain code but i want to restrict the rem used by the program when running.
please help me out

Recommended Answers

All 3 Replies

I would imagine that would depend on the operating system. Under MS-Windows programs can hog all the memory it wants (16-bit programs are restricted to 640K). AFAIK there is no way to restrict usage by a given program.

thanks for the quick reply :)
but how to do that??
i use windows xp and i would like all to restrict my program under 5mb of ram..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.