Invention Grant
- Patent Title: Minimizing plug-in DLL repeat instantiation
- Patent Title (中): 最小化插件DLL重复实例化
-
Application No.: US12100502Application Date: 2008-04-10
-
Publication No.: US08091096B1Publication Date: 2012-01-03
- Inventor: Matthew D. Fabrizi , Alan K. Robertson
- Applicant: Matthew D. Fabrizi , Alan K. Robertson
- Applicant Address: US CT Norwalk
- Assignee: Xerox Corporation
- Current Assignee: Xerox Corporation
- Current Assignee Address: US CT Norwalk
- Agency: Fleit Gibbons Gutman Bongini & Bianco P.L.
- Agent Philip E. Blair
- Main IPC: G06F3/00
- IPC: G06F3/00

Abstract:
What is disclosed is a novel system and method for ensuring that plug-in DLLs are not unloaded and reloaded repeatedly during the course of a single user-initiated operation. A base driver process loads a plug-in DLL. If a manager thread responsible for this plug-in does not exist then a reference count for the plug-in DLL is incremented. Incrementing the system reference count ensures that the plug-in DLL remains loaded between base driver calls for all of the user-initiated operation by preventing the operating system from unloading the plug-in DLL. A manager thread is then created. The manager thread monitors active COM objects and checks if the base driver is still in memory. If no COM objects are found to be in use after a predetermined amount of time or if the base driver is no longer loaded in memory, the system reference count is decremented. The manager thread then exits.
Information query