Vernon,
First a comment, you will be best served to keep only one thread going for your problem. This is because we all read all the messages and can better contribute to the troubleshooting process by keeping everything in one place.
Your problem is not a common situation so please be ready to work with us in tracking down the cause. The "Not enough memory ..." error can be the result of many different situations. Since it is occuring for you on an UNLOCK command it is most likely related to something about the data that is being committed or the file that data is being committed to. A few questions;
1) Any memo fields involved?
2) Any CDX index files involved?
3) How large are these files (in MD or GB not # of records)?
4) Is this occurring during a TRANSACTION?
Also can you post the actual REPLACE command followed by the UNLOCK with the code that is between them.