DllImport method isn't receiving data
<pre><code>BYTE* pImageBuffer = NULL;
    eResult res = PlayerLib::CreateImageSnapshot( iPlayerRef, eBMP, &amp;pImageBuffer );
   if( res &gt; 0 )
     { 
         ....                                    // do something with the image
          WriteFile(FileHandle, pBuffer, eRes, NULL, NULL);
          ReleaseImageSnapshot( pImageBuffer );   // free the image buffer in not longer needed!
     }
</code></pre>

<p>here i can receive the image data in pImageBuffer and i could do the some image process</p>

<p>the same way I have tryed in c# like</p>

<pre><code> [DllImport("PlayerLib")]
   public static extern int CreateImageSnapshot(int iPlayerRef, eImageFormat imgFormat,byte[] ppImageBuffer);


byte[] bte ;
CreateImageSnapshot(iPlayerref,eImageFormat.ePNG,bte);
</code></pre>

<p>here its giving some unhandeld Exception..... hopefully the problem is in byte[] but i can't point out...
please help me to overcome it.... thanks in advance</p>

<p>here it shoud return the imagedata in ppImageBuffer... but here it's giving zero byte only</p>
