This question is also available for viewing online at http://support.trustsoft.com/knowledgebase/questions/16/I-receive-a-%26%2334%3BRuntime-error-7-%28out-of-memory%29%26%2334%3B-message.


I receive a "Runtime error 7 (out of memory)" message.

Click on the "Start" button and then click on "Run". Type in the following command: regsvr32 -u COMCTL32.OCX to 'unregister' the old COMCTL32.OCX. If an error saying 'not registered' then everything is fine and you can proceed with the following.

Click Start button ---> Search or Find ---> type in: comctl32.ocx and search for it ---> remove the found file.

Download and unzip the attached file into the folder where you deleted the file from.

For Windows NT 4.0/2000 C:\WINNT\SYSTEM32 (WINNTSYSTEM if your system does not have the 32 bit directory)

For Windows 95/98/ME/XP C:\WINDOWS\SYSTEM32 (WINDOWS\SYSTEM if your system does not have the 32 bit directory)

Using your mouse, click on the "Start" button and then click on "Run".

Type the following command to register this library file: regsvr32 windowssystem32COMCTL32.OCX (use the system directory that the file was copied to as mentioned above for the directory path in the command line).

You should see a message saying "DllRegisterServer ... succeeded" This should correct the problem.