title: cudaMemcpy - Receive error : cudaErrorInvalidValue 11
body: <p>Here is my code :</p>
  
  <pre><code>unsigned char *d_eCB[9];
  unsigned char eCB[9] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  err = cudaMalloc((void **)&amp;d_eCB,9*sizeof(unsigned char));
  err = cudaMemcpy(d_eCB, eCB, 9*sizeof(unsigned char), cudaMemcpyHostToDevice);
  </code></pre>
  
  <p>The error occurs on the following line :</p>
  
  <pre><code>err = cudaMemcpy(d_eCB, eCB, 9*sizeof(unsigned char), cudaMemcpyHostToDevice);
  </code></pre>
  
  <p>The error is as follows : cudaErrorInvalidValue 11</p>