Results 1 to 5 of 5

Thread: .Net Compact Framework Development...Performance...

  1. #1
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 02
    Location
    Washington St.
    Posts
    2,464

    .Net Compact Framework Development...Performance...

    Hello everyone.

    I inherited a project from someone, and it happens to be a Pocket PC targed application written using the .Net Compact Framework.

    First thing I noticed is that this person built it with only one form. He build many panels on the form, and does a balancing act between them based off of what is clicked.

    I asked why he did that, and he said for performance reasons. He said that it is huge performance hit to have multiple forms in a .Net compact framework application. I laughed and said this is a load of crap, and that all he is doing is creating one form with all the resources being loaded all at once.

    Surely tell me I am right on this one. I have no experience with Pocket PC development, but this seems like he went to the extreme. I understand using a tab control and what not, but this went to far if you ask me.

    What do all you say about this?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 02
    Location
    Washington St.
    Posts
    2,464
    Very little CE dev going on huh?...

  3. #3
    Fanatic Member
    Join Date
    Oct 00
    Location
    Reading, UK
    Posts
    870
    i'm hopefully going to be doing a bit soon. I'm suprised there aren't people on here doing development work with the compact framework.

    Perhaps if it takes off there could be a seperate forum under the .net grouping?
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  4. #4
    I wonder how many charact
    Join Date
    Feb 01
    Location
    Savage, MN, USA
    Posts
    3,705
    Well.. he may have a point.

    A Form is a super-bloated container control with many extended properties and methods.

    And yes, a Panel is a lighter-weight container control.

    So there may be some validity to the argument if he was trying to save memory on a MDI application, where they may have been 5+ windows open at one time. How he would simulate that using panels is beyond me.

    I think a normal programmer would have a Sub Main, which would unload a form when its not being used, and load another form when its needed... and the GC would take care of things in course. Additionally, creating 15 panels and all the controls inside at once is resource abuse, compared to 3 forms with their controls, loaded only when their needed. Unless he only instantiates the panels when needed, and properly sets them to nothing when he's done with them. Then, he probably was in the right.

    So, while he has some basis in his argument, it ignores the fact that he simply designed the architecture the wrong way, and he probably went too far by using just one form, and realized little if any efficiency.
    Last edited by nemaroller; Mar 24th, 2004 at 10:25 PM.

  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 00
    Location
    Espoo, Finland
    Posts
    5,482
    I've played about with smartphone development which I think uses a version of windows ce. Can't see I've ever noticed any difference whatsoever loading new forms - okay they'll be a slight performance hit compared to using panels as you'd get on a standard vb.net windows app, but nothing major to worry about.

    Re-code it to work with multiple forms!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •