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. C / C++ / MFC
  4. 100 % cpu

100 % cpu

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++performance
9 Posts 4 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.
  • J Offline
    J Offline
    Jhony george
    wrote on last edited by
    #1

    hi, i am having a CMap , and i am trying to write a word document in my vc++ appln, i am going for Cmap.Lookup() Method, and getting the values and writing to a document file. but its taking 100% cpu performance why ? what is the solution for this ? and any other kind of reports are there, to get a report from my application. Thanks, jhony

    Born to win...!

    S R D 3 Replies Last reply
    0
    • J Jhony george

      hi, i am having a CMap , and i am trying to write a word document in my vc++ appln, i am going for Cmap.Lookup() Method, and getting the values and writing to a document file. but its taking 100% cpu performance why ? what is the solution for this ? and any other kind of reports are there, to get a report from my application. Thanks, jhony

      Born to win...!

      S Offline
      S Offline
      sashoalm
      wrote on last edited by
      #2

      Jhony george wrote:

      i am trying to write a word document

      What does "word document" mean? Like in Microsoft Word .doc/.docx format?

      There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

      modified on Monday, September 15, 2008 7:53 AM

      J 1 Reply Last reply
      0
      • S sashoalm

        Jhony george wrote:

        i am trying to write a word document

        What does "word document" mean? Like in Microsoft Word .doc/.docx format?

        There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

        modified on Monday, September 15, 2008 7:53 AM

        J Offline
        J Offline
        Jhony george
        wrote on last edited by
        #3

        sashoalm wrote:

        What does "word document" mean?

        yes, i am having a data and i am trying to write into a word document. like "sample.doc"

        Born to win...!

        S 1 Reply Last reply
        0
        • J Jhony george

          hi, i am having a CMap , and i am trying to write a word document in my vc++ appln, i am going for Cmap.Lookup() Method, and getting the values and writing to a document file. but its taking 100% cpu performance why ? what is the solution for this ? and any other kind of reports are there, to get a report from my application. Thanks, jhony

          Born to win...!

          R Offline
          R Offline
          Rane
          wrote on last edited by
          #4

          Are you sure that this Lookup() Method is the cause for 100% CPU. Please use a diagnostic tool to find out the exact cause for the peak CPU usage. May be dump analysis can help. Regards, Rane

          J 1 Reply Last reply
          0
          • R Rane

            Are you sure that this Lookup() Method is the cause for 100% CPU. Please use a diagnostic tool to find out the exact cause for the peak CPU usage. May be dump analysis can help. Regards, Rane

            J Offline
            J Offline
            Jhony george
            wrote on last edited by
            #5

            hai, i am not pointing to only lookup, may be some other probs...! where can i get the diagnostic tool, do u knw any link for that ?

            Born to win...!

            R 1 Reply Last reply
            0
            • J Jhony george

              hai, i am not pointing to only lookup, may be some other probs...! where can i get the diagnostic tool, do u knw any link for that ?

              Born to win...!

              R Offline
              R Offline
              Rane
              wrote on last edited by
              #6

              You may use MS DebugDiag Tool.The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or fragmentation, and crashes in any windows process. Regards, Rane

              J 1 Reply Last reply
              0
              • R Rane

                You may use MS DebugDiag Tool.The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or fragmentation, and crashes in any windows process. Regards, Rane

                J Offline
                J Offline
                Jhony george
                wrote on last edited by
                #7

                hi, actually My problem is i am writing into a word doc file, but its taking 5 minutes hardly , (at that time cpu performance was 100%) total no.of pages in the Report document is 30, what is the solution for reducing this time span...?

                Born to win...!

                1 Reply Last reply
                0
                • J Jhony george

                  sashoalm wrote:

                  What does "word document" mean?

                  yes, i am having a data and i am trying to write into a word document. like "sample.doc"

                  Born to win...!

                  S Offline
                  S Offline
                  sashoalm
                  wrote on last edited by
                  #8

                  how big is the data you're writing, in megabytes?

                  There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

                  1 Reply Last reply
                  0
                  • J Jhony george

                    hi, i am having a CMap , and i am trying to write a word document in my vc++ appln, i am going for Cmap.Lookup() Method, and getting the values and writing to a document file. but its taking 100% cpu performance why ? what is the solution for this ? and any other kind of reports are there, to get a report from my application. Thanks, jhony

                    Born to win...!

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #9

                    Jhony george wrote:

                    but its taking 100% cpu performance why ?

                    It could be any of a dozen things. You've not provided any useful information so how are we supposed to help? :confused:

                    "Love people and use things, not love things and use people." - Unknown

                    "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

                    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