private void AllocateFree()
        {
            for (int x = 0; x < 20; x++)
            {
                // Commit
                var buf    = _bufferHelper.Allocate(4096);
                var extBuf = _externalBufferHelper.Allocate(4096);

                // Write something to start of buffers to test allocation.
                var bufMem    = new Sources.Memory();
                var extBufMem = new ExternalMemory(_externalBufferHelper.Process);

                bufMem.Write(buf.MemoryAddress, 5);
                extBufMem.Write(extBuf.MemoryAddress, 5);

                // Release
                _bufferHelper.Free(buf.MemoryAddress);
                _externalBufferHelper.Free(extBuf.MemoryAddress);
            }
        }
 /// <summary>
 /// Releases the allocated memory for the assembler.
 /// </summary>
 public void Dispose()
 {
     _bufferHelper.Free(_textAddress);
     _bufferHelper.Free(_resultAddress);
     GC.SuppressFinalize(this);
 }