     cerr << "Couldn't accomodate the volume" << endl;
     for (int f=0; f<outOfMemFrame; ++f)
     {
-      cudaFreeArray(d_volumeArrays[f]);
+      vvCuda::checkError(&ok, cudaFreeArray(d_volumeArrays[f]),
+                         "vvRayRend::initVolumeTexture()");
       d_volumeArrays[f] = NULL;
     }
   }

    cerr << "Couldn't accomodate the volume" << endl;
    for (int f=0; f<=outOfMemFrame; ++f)
    {
      cudaFree(d_volumeArrays[f]);
      d_volumeArrays[f] = NULL;
    }
  }

        }
        volTexture16.addressMode[0] = cudaAddressModeClamp;
        volTexture16.addressMode[1] = cudaAddressModeClamp;
        vvCuda::checkError(&ok, cudaBindTextureToArray(volTexture16, d_volumeArrays[0], _channelDesc),
                           "vvRayRend::initVolumeTexture()");
    }
  }
}
