resvmem.cc #1