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. Managed C++/CLI
  4. MC++ programs run slower from VS.net?

MC++ programs run slower from VS.net?

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++visual-studiohelpquestion
8 Posts 4 Posters 21 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.
  • N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #1

    Hey guys, I find that GUI based MC++ programs start slower from VS .NET than C# programs. If you start it directly without debugging using Ctrl-F5, it runs fast. But otherwise I am having to wait as long as between 5-12 seconds. Is this just me? Are others facing this problem too? Nish


    The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

    J R 2 Replies Last reply
    0
    • N Nish Nishant

      Hey guys, I find that GUI based MC++ programs start slower from VS .NET than C# programs. If you start it directly without debugging using Ctrl-F5, it runs fast. But otherwise I am having to wait as long as between 5-12 seconds. Is this just me? Are others facing this problem too? Nish


      The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      Look at the output window, how many dlls are getting loaded? Thats probably where you see the extra startup time. James Simplicity Rules!

      N 1 Reply Last reply
      0
      • N Nish Nishant

        Hey guys, I find that GUI based MC++ programs start slower from VS .NET than C# programs. If you start it directly without debugging using Ctrl-F5, it runs fast. But otherwise I am having to wait as long as between 5-12 seconds. Is this just me? Are others facing this problem too? Nish


        The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

        R Offline
        R Offline
        Rama Krishna Vavilala
        wrote on last edited by
        #3

        If you have managed and unmanaged debugging both turned on, debugging starts slower. Select only managed or only unmanaged debugging. Don't use mixed debugging

        N 1 Reply Last reply
        0
        • J James T Johnson

          Look at the output window, how many dlls are getting loaded? Thats probably where you see the extra startup time. James Simplicity Rules!

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          James T. Johnson wrote: Look at the output window, how many dlls are getting loaded? Thats probably where you see the extra startup time. I am using IJW. So I guess the debugger's loading both managed and unmanaged symbols Nish


          The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

          1 Reply Last reply
          0
          • R Rama Krishna Vavilala

            If you have managed and unmanaged debugging both turned on, debugging starts slower. Select only managed or only unmanaged debugging. Don't use mixed debugging

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #5

            Rama Krishna wrote: If you have managed and unmanaged debugging both turned on, debugging starts slower. Select only managed or only unmanaged debugging. Don't use mixed debugging I havent touched the default settings. And anyhow I need both managed and unmanaged debugging enabled. Nish


            The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

            R 2 Replies Last reply
            0
            • N Nish Nishant

              Rama Krishna wrote: If you have managed and unmanaged debugging both turned on, debugging starts slower. Select only managed or only unmanaged debugging. Don't use mixed debugging I havent touched the default settings. And anyhow I need both managed and unmanaged debugging enabled. Nish


              The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

              R Offline
              R Offline
              Rama Krishna Vavilala
              wrote on last edited by
              #6

              In that case you have to live with the slowness. The answer to your original question is yes I have seen this slowness all the time and is caused by mixed mode debugging.

              1 Reply Last reply
              0
              • N Nish Nishant

                Rama Krishna wrote: If you have managed and unmanaged debugging both turned on, debugging starts slower. Select only managed or only unmanaged debugging. Don't use mixed debugging I havent touched the default settings. And anyhow I need both managed and unmanaged debugging enabled. Nish


                The posting stats are now in PDF:- http://www.busterboy.org/codeproject/ Feel free to make your comments. Updated - May 04th, Saturday

                R Offline
                R Offline
                Rama Krishna Vavilala
                wrote on last edited by
                #7

                What's interesting is that even stepping through line by line is dead slow. I have a pretty decent machine(1.6GHZ PIII 512 MB) and it took lot of time just to step to another line in the debugger. Since then I never use mixed mode debugging. I don't know whether you have but another issue is symbol loading. I had symbols for all XP dlls and it also slowed down the startup. There is selective symbol loading in VS.NET but so far I have not tried it.

                A 1 Reply Last reply
                0
                • R Rama Krishna Vavilala

                  What's interesting is that even stepping through line by line is dead slow. I have a pretty decent machine(1.6GHZ PIII 512 MB) and it took lot of time just to step to another line in the debugger. Since then I never use mixed mode debugging. I don't know whether you have but another issue is symbol loading. I had symbols for all XP dlls and it also slowed down the startup. There is selective symbol loading in VS.NET but so far I have not tried it.

                  A Offline
                  A Offline
                  Anders Molin
                  wrote on last edited by
                  #8

                  Do you know if it's possible to download symbols for all the .NET files? - Anders Money talks, but all mine ever says is "Goodbye!"

                  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