Hello, I have the application working. If you are interested, I can send you the demo which includes both the service and the console application that allocate the given amount of memory inside the service. Also I added the optional timeout parameter that allows to release the memory after the time elapsed.