A method and apparatus for providing per-instance data memory in a dynamic link library (DLL) linked to multiple tasks or to multiple instances of one task in the context of an operating system that does not provide such a feature. The invention includes providing a task switch enhancer DLL that allocates and manages a memory segment to store per- instance data of a DLL for a task as a substitute for an original per- instance data segment for that task.
展开▼