Menu

VS 2005 slows down when I insert a comment

Help
ndee3000
2007-04-18
2013-04-24
  • ndee3000

    ndee3000 - 2007-04-18

    Hello,

    I use Visual Studio 2005 (SP1) and I have the following problem. After I have inserted a comment with doxycomment in a C++ file, Visual Studio becomes very slow and further work is unacceptable. I think doxycomment is a great tool but it's quite unusable if I have to wait 1 sec for a keystroke.

    Thank you in advance 
    ndee3000

     
    • Troels Gram

      Troels Gram - 2007-04-19

      I have noticed this issue before, but so far been unable to diagnose the actual cause of the slowdown. I suspect VS2005's polling for command status might be the culprit, but have not verified it.

      If you want to dig further into it I would suggest looking into the DoxyCommentAddIn.QueryStatus function. Try commenting out the call to CheckContext for each command (just set status = vsCommandStatus.vsCommandStatusEnabled | vsCommandStatus.vsCommandStatusSupported). This will cause the add-in commands to appear available all the time, but you will be able to verify if the CheckContext function is responsible for the delays.

      DoxyComment is totally driven by command input- there are not background threads or anything in the code base. Besides command execution the QueryStatus is the only function VS calls on a regular basis.

       
    • ndee3000

      ndee3000 - 2007-04-19

      Thank you for your quick answer. Although time is rare I will try to find the bug. If I found it, I let you know

       
      • Troels Gram

        Troels Gram - 2007-04-19

        That would be great. If you do manage to track it down I will be happy to integrate the your fix in the next release.

         
    • ndee3000

      ndee3000 - 2007-04-26

      I tried it out and, yes, you're right!!! After I commented out the calls to CheckContext, VS runs normally. Besides I don't recognize a difference. I think, before, the add-in commands we're visible all the time, too ?!

      Thank you for the tip! Now I can safely recommend doxycomment the rest of my team. ;-) They are waiting for a solution like that.

      Greetz

       
    • Himanshu Gohel

      Himanshu Gohel - 2007-08-09

      Hello,

      In VS2005 and VS2005 SP1 I'm experiencing massive slowdowns as soon as the Doxycomment add-in is enabled via Tools > Add-ins dialog.  Intellisense kicks in and hogs the CPU.  If I disable the add-in, everything returns to normal.

      This thread seems related.  Changelog for v0.4.2 indicates that perhaps this fix was integrated in that build, but I'm still seeing the problem.  And this post has a date later than the release date of 0.4.2.

      So should I download the source and make the change mentioned above to see the fix?

      Thanks.

       
      • Troels Gram

        Troels Gram - 2007-08-10

        I have release a 0.4.3 version tonight without the CheckContext calls. Please let me know if it resolves the problems.

        Thank you

        Troels

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.