How can I verify if imgdecmp.dll is included in my system? Exception in Bitmap constructor

A

Alexander

The constructor of the class Bitmap raises an exception if I try to
load an image in my application. Here is a simple example of what I am
trying to do:



namespace bitmaptest
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.PictureBox pictureBox1;

public Form1()
{
this.InitializeComponent();

this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox1.Location = new System.Drawing.Point(48, 56);
this.pictureBox1.Size = new System.Drawing.Size(120, 120);
this.Controls.Add(this.pictureBox1);
Bitmap bmp = new Bitmap("\\Bitmap1.bmp");
MessageBox.Show("3");
this.pictureBox1.Image = bmp;
}
static void Main()
{
Application.Run(new Form1());
}
}
}





The device is running on Windows CE 4.2 and the exception is just
"Exception" without any more descriptive text at
Bitmap::.ctor+0x21
....

Or if I read the bytes in a MemoryStream first, I get a
MISC::HandleAr
Bitmap::_InitFromMemoryStream
....

I made sure the file works and can be displayed on the device (checked
in the iexplorer), also that it is in the expected position. Otherwise
as expected a file not found exception is raised.
The same code runs without problems on the emulator and on an older
Compaq H3800 device. So after searching the Group, I suspect that the
imgdecmp.dll is not included in the image of the OS and contacted the
OEM. I got the info that the dll should be included and the problem
must be somewhere else. I cannot believe this as the same code runs
without problems on the other devices, so something must be different.
How can I check myself if the file is included in the OS, must it be
simply visible in "\\Windows" or are the files in the ROM hidden
somewhere? If so, where can I retrieve the list of included files?

Thanks for any help,
Alexander
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top