A generic error occurred in GDI+ in C#
<p>I am using a 3rd party control to read barcode from a bitmap file. Below is the code for my method.</p>

<pre><code>public void ShowBarcode(IntPtr img)
    {
        int nBarCode;
        SoftekBarcodeLib2.BarcodeReader barcode = new SoftekBarcodeLib2.BarcodeReader();
        barcode.ReadCode39 = 1;
        barcode.ReadNumeric = 1;
        nBarCode = barcode.ScanBarCodeFromBitmap(img);
        for (int i = 1; i &lt;= nBarCode; i++)
        {
            MessageBox.Show(barcode.GetBarString(i));
        }

    }
</code></pre>

<p>For some reason I am getting the above mentioned error at 
barcode.ScanBarCodeFromBitmap the value of img is 65863972</p>
