PC Review


Reply
Thread Tools Rate Thread

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

 
 
Gravity
Guest
Posts: n/a
 
      10th Jun 2005
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.


 
Reply With Quote
 
 
 
 
Ilya Tumanov [MS]
Guest
Posts: n/a
 
      10th Jun 2005
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/...ramework?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).

"Gravity" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      10th Jun 2005
How big is the image?
--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"Gravity" wrote:

> 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.
>
>
>

 
Reply With Quote
 
Gravity
Guest
Posts: n/a
 
      10th Jun 2005
Small, 160x120, which work on the complied exe file, but not on the
emulator...

"Alex Yakhnin [MVP]" <(E-Mail Removed)> wrote in message
news:3DE245B5-0AD7-430C-8041-(E-Mail Removed)...
> How big is the image?
> --
> Alex Yakhnin, .NET CF MVP
> www.intelliprog.com | www.opennetcf.org
>
>
> "Gravity" wrote:
>
>> 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.
>>
>>
>>



 
Reply With Quote
 
Gravity
Guest
Posts: n/a
 
      12th Jun 2005
Thanks for the help. It work now. : )


"Ilya Tumanov [MS]" <(E-Mail Removed)> wrote in message
news:42a9fa6c$(E-Mail Removed)...
> 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/...ramework?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).
>
> "Gravity" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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.
>>

>
>



 
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
PocketPC emulator Fabio Microsoft Dot NET Compact Framework 1 4th May 2007 08:58 PM
PictureBox Code Hang at PocketPC Emulator -> Why? Gravity Microsoft Dot NET Framework 0 10th Jun 2005 10:31 PM
How can I use breakpoints with a PocketPC Emulator? =?Utf-8?B?ZGVpMWMz?= Microsoft Dot NET Compact Framework 2 10th Mar 2005 02:15 AM
Cannot connect to SQL via the PocketPC emulator. Byron Hopp Microsoft VB .NET 0 30th May 2004 10:40 PM
Pocket C64 Emulator for the PocketPC Scott News Editions 1 13th May 2003 10:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:09 PM.