Results 1 to 6 of 6

Thread: Large resource file. Slow form load

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Malaysia
    Posts
    64

    Large resource file. Slow form load

    I have a form (using VB.net) that has tons of controls in it and it takes like 10 seconds just to load it.

    I suspect that it's because the resource file (.resx) is around 1.3 MB.

    Does anyone know of a way to reduce the size of the of the resource file or the overal time it takes to load up the form?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Take some of the controls off of the form. Split some stuff off on to other forms.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Malaysia
    Posts
    64
    No option for that since it's a user requirement to have all those stuffs in the same form. The things make perfect sense in the same form, with tab pages.

  4. #4
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Question

    Would compiling the EXE as a RELEASE instead of Debug make a differance? Just a thought.

    If you have to have that much stuff in the resource, and the program is taking too long to load, i'd suggest making a splash page appear. It'll appear on the screen while the rest loads.

    The other option is to buy a faster machine.
    ~Peter


  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Malaysia
    Posts
    64
    I've tried the compiling for RELEASE with the optimization thingies turned on. Make a few milliseconds difference ; (

    And I'm already preloading the dll that form is in by creating an instance of the form during startup while showing the splash screen. Still takes very long to load the form when it's actually shown using the .Show function.

  6. #6
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Unhappy

    Sounds like you're doing everything you can. It might be a computer thing. Maybe you don't have enough RAM, CPU, Cache, or Harddrive space.
    ~Peter


Posting Permissions

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



Click Here to Expand Forum to Full Width