Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Window is slow to instantiate - only on some machines

Window is slow to instantiate - only on some machines

Scheduled Pinned Locked Moved Visual Basic
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dBrong
    wrote on last edited by
    #1

    I have an app the has a large complex window (it edits documents) that uses Pegasus controls. On several of my machines the window opens in about 3 seconds. With one particular customer it takes almost 11 seconds. They have just about the same hardware and O/S as I do (XP, sp 3). I had them install more memory, and that didn't help either. I have added code to time events down to the millisecond - and have found the problem lies in the creation of the window. Loading the data and images is no problem - the times on all machines is about the same. Any ideas?

    C L 2 Replies Last reply
    0
    • D dBrong

      I have an app the has a large complex window (it edits documents) that uses Pegasus controls. On several of my machines the window opens in about 3 seconds. With one particular customer it takes almost 11 seconds. They have just about the same hardware and O/S as I do (XP, sp 3). I had them install more memory, and that didn't help either. I have added code to time events down to the millisecond - and have found the problem lies in the creation of the window. Loading the data and images is no problem - the times on all machines is about the same. Any ideas?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I tell such people to buy better computers. If it takes that long, it takes that long. Does it take that long every time, or just the first time ?

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      D 1 Reply Last reply
      0
      • D dBrong

        I have an app the has a large complex window (it edits documents) that uses Pegasus controls. On several of my machines the window opens in about 3 seconds. With one particular customer it takes almost 11 seconds. They have just about the same hardware and O/S as I do (XP, sp 3). I had them install more memory, and that didn't help either. I have added code to time events down to the millisecond - and have found the problem lies in the creation of the window. Loading the data and images is no problem - the times on all machines is about the same. Any ideas?

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, look at Task Manager Performance for the CPU load while the app is starting. If it is around 100% all the time, your app is wasting CPU cycles for some reason (do you have busy loops? polling loops?); if it is around 50% all the time, your app is busy and might be faster with more multi-threading (assuming you have a multi-core CPU); if it is rather close to zero for some time, you are waiting for something (are you accessing stuff on servers? on Internet?).

        dBrong wrote:

        the problem lies in the creation of the window.

        Then add more observation points until you got to the specific line that causes the delay. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


        D 1 Reply Last reply
        0
        • C Christian Graus

          I tell such people to buy better computers. If it takes that long, it takes that long. Does it take that long every time, or just the first time ?

          Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

          D Offline
          D Offline
          dBrong
          wrote on last edited by
          #4

          I tend to agree with you. But this has changed between versions of Pegasus controls.

          C 1 Reply Last reply
          0
          • L Luc Pattyn

            Hi, look at Task Manager Performance for the CPU load while the app is starting. If it is around 100% all the time, your app is wasting CPU cycles for some reason (do you have busy loops? polling loops?); if it is around 50% all the time, your app is busy and might be faster with more multi-threading (assuming you have a multi-core CPU); if it is rather close to zero for some time, you are waiting for something (are you accessing stuff on servers? on Internet?).

            dBrong wrote:

            the problem lies in the creation of the window.

            Then add more observation points until you got to the specific line that causes the delay. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


            D Offline
            D Offline
            dBrong
            wrote on last edited by
            #5

            Is there a way to preload the Pegasus Dll's? Some users have delays of 11-20 seconds in the mybase.new method.

            L 1 Reply Last reply
            0
            • D dBrong

              Is there a way to preload the Pegasus Dll's? Some users have delays of 11-20 seconds in the mybase.new method.

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              I'm not familiar with Pegasus, so I can't tell; you might contact the vendor about it. Is there some license scheme, possibly contacting them in real-time over the Internet? :)

              Luc Pattyn [Forum Guidelines] [My Articles]


              - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


              1 Reply Last reply
              0
              • D dBrong

                I tend to agree with you. But this has changed between versions of Pegasus controls.

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                So, it's Pegasus you need to talk to, right ?

                Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups