PC Review


Reply
Thread Tools Rate Thread

any way to get large forms to run on emulator?

 
 
khorad
Guest
Posts: n/a
 
      22nd Sep 2003
i get a system.notsupportedexception on InitializeComponent()

from previous threads it appears there is a 64KB method size limit or
something when using the emulator

it does work on the real device

his solution was to split initialize into two methods, but i think that
would mess up the form designer

so is there anyway to get this to work on the emulator while still using the
form designer?

i feel like i'm stuck back in 1988 worrying about 64k limitations


 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      22nd Sep 2003
AFAIK The difference in behavior is caused by the difference in the
instruction set. JIT-compiler attempts to compile the code but hits size
limitations when generating short jumps, which due to the nature of x86
instruction set cannot exceed 64K. I believe it to be a JIT-compiler
shortcoming, which unfortunately you have to live with.

OTOH consider the fact that if form designer code has exceeded 64 K, you
have a form which has too many controls. I cannot envision a form which
would run over 64 K in intialization and yet consist of one page - you must
be using tab control with a large number of tabs. You may want to redesign
the form to split it into several subforms. The upside is that form
initialization time will become tolerable. In fact it is likely that if you
add several more controls to your form, you will end up over the limit on
ARM cpu as well...

As for feeling like being back in 1988 - for some reason people tend to
forget, that we are still dealing with embedded devices. Small memory
footprint, limited resources etc.

"khorad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> i get a system.notsupportedexception on InitializeComponent()
>
> from previous threads it appears there is a 64KB method size limit or
> something when using the emulator
>
> it does work on the real device
>
> his solution was to split initialize into two methods, but i think that
> would mess up the form designer
>
> so is there anyway to get this to work on the emulator while still using

the
> form designer?
>
> i feel like i'm stuck back in 1988 worrying about 64k limitations
>
>



 
Reply With Quote
 
khorad
Guest
Posts: n/a
 
      22nd Sep 2003
"Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> You may want to redesign
> the form to split it into several subforms. The upside is that form
> initialization time will become tolerable.


well i guess that's what i'm doing although form load time was not an issue
before and it just adds that much more complexity to the program

> which due to the nature of x86
> instruction set cannot exceed 64K.


are you saying that the full .net framework has this issue too? heaven help
us . . .


 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      22nd Sep 2003
"khorad" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Alex Feinman [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > which due to the nature of x86
> > instruction set cannot exceed 64K.

>
> are you saying that the full .net framework has this issue too? heaven

help
> us . . .

No, I'm saying that JIT-compiler on the device/emulator has its limitations.
The JIT-compiler used on emulator is by far not the same one used on the
desktop. To the best of my knowledge on the device you don't get a
combination of fast non-optimizing compiler/slow optimizing recompile in the
lazy thread, but I may be mistaken on this one


 
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
Registering a new emulator skin in Device Emulator Manager & VS 2005 AP Microsoft Dot NET Compact Framework 1 12th Jun 2006 01:12 PM
updating the vs.net 2003 emulator with compact framework sp3 (yes,the emulator) Tim Wilson Microsoft Dot NET Compact Framework 1 10th Sep 2005 05:41 PM
Large Forms Duncan Gordon Microsoft VB .NET 4 19th Aug 2004 09:11 PM
Emulator BUG: TimeSpan.Milliseconds not working on Pocket PC emulator pouchi Microsoft Dot NET Compact Framework 2 27th Jan 2004 02:36 AM
Re: Large Forms in VS.net Lenny Microsoft ASP .NET 0 6th Jul 2003 06:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:30 PM.