     
     
     
-    cudaMemcpy(result, dimage, num_bytes, cudaMemcpyDeviceToHost);
+    cudaMemcpy(result, dimage, num_bytes_img, cudaMemcpyDeviceToHost);
     cudaCheckErrors("cudaMemcpy result fail");
     
-    cudaUnbindTexture(tex);
-    cudaCheckErrors("Unbind  fail");
+    //cudaUnbindTexture(tex);
+    //cudaCheckErrors("Unbind  fail");
     
     cudaFree(dimage);
-    cudaFreeArray(d_projectiondata);
+    //cudaFreeArray(d_projectiondata);
     cudaCheckErrors("cudaFree d_imagedata fail");
     cudaDeviceReset(); // For the Nvidia Visual Profiler
     return 0;

        cudaMemcpyToSymbol(projSinCosArrayDev, projSinCosArrayHost, sizeof(float)*5*PROJ_PER_KERNEL);
        cudaMemcpyToSymbol(projParamsArrayDev, projParamsArrayHost, sizeof(Point3D)*6*PROJ_PER_KERNEL);
        
        kernelPixelBackprojectionFDK<<<grid,block>>>(geo,dimage,i,nalpha);
        cudaCheckErrors("Kernel fail");
        
    }  // END for

            
        }
    }
    return 0;
    
    
    
