摘要 |
In order to reduce problems caused by a user corrupting memory by incorrect use of memory allocation functions in the C programming language, memory allocation requests of an application (32) are monitored by a monitor sub-process (34) during run-time, and invalid memory allocation requests are detected and the application interrupted by the monitor sub-process. Additionally, an allocator sub-process (42) external to the application performs the memory allocation requests to shield the memory from user errors. A start-up dialog (48) synchronises the application (32) and allocator (42), and the allocator maintains during run-time a memory segment (46) conforming to the memory (44) allocated to the application. |