PC Review


Reply
Thread Tools Rate Thread

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

 
 
Alexander
Guest
Posts: n/a
 
      24th Jun 2004
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
 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      24th Jun 2004
Use CeFileView in remote tools - it shows DLLs.

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Alexander" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Constructor rules - please verify Manco Microsoft C# .NET 4 14th Nov 2004 07:42 AM
Bitmap constructor throwing System.Exception Microsoft Dot NET Compact Framework 6 22nd Jun 2004 07:18 AM
System.InvalidCastException for Bitmap Constructor -- Please help!!!! Me Microsoft Dot NET Compact Framework 3 14th Mar 2004 07:05 PM
Bitmap Constructor throwing an exception =?Utf-8?B?QnJlbnQgTGFuZw==?= Microsoft Dot NET Compact Framework 3 5th Mar 2004 03:42 PM
exception in bitmap(stream*) constructor Soja Microsoft VC .NET 0 19th Aug 2003 12:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:28 PM.