Hang at PictureBox Code only with PocketPC Emulator -> Why?

G

Gravity

Hi,

I am confussed. I am developing an application on PocketPC using C# with
VS.net 2003. It run fine on the compiled exe. It always do.

However, when run on the emulator, be it PocketPC version 2002 or 2003, it
always hang at the same code after I narrow down the issue.

f_Bitmap = new Bitmap(new MemoryStream(f_byteDataImage));
pictureBox.Image = f_Bitmap; // This is the line that got stucked

I am surprised that it supposed to be catched, rather than being freezed.
Any ideas? The f_byteDataImage is actually a complete JPEG buffer, just like
what being read from a file.

Thanks for taking your time to read. Hope there are someone kind enought to
point some light into my confussion.
 
I

Ilya Tumanov [MS]

Are you setting image from another thread?

If so, search this NG (link below) for "Control.Invoke" which you should use
to fix it.


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

Gravity

Thanks for the help. It work now. : )


Ilya Tumanov said:
Are you setting image from another thread?

If so, search this NG (link below) for "Control.Invoke" which you should
use to fix it.


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

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