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. execution time of function increases

execution time of function increases

Scheduled Pinned Locked Moved C / C++ / MFC
help
10 Posts 7 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.
  • V Offline
    V Offline
    VCProgrammer
    wrote on last edited by
    #1

    Hi all, I have made a function and every time i execute that function its execution time increases(i.e if i don't close my exe and executes it. its excution time increases every time)... But if i close my exe its execution time remains normal..... I am not getting why this is happening. Can anybody help me in this.... Thanks in advance

    R S R H 4 Replies Last reply
    0
    • V VCProgrammer

      Hi all, I have made a function and every time i execute that function its execution time increases(i.e if i don't close my exe and executes it. its excution time increases every time)... But if i close my exe its execution time remains normal..... I am not getting why this is happening. Can anybody help me in this.... Thanks in advance

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      What does that particular function do? The "exe" you're talking about is the one which has this function in it or it is something external?

      It is a crappy thing, but it's life -^ Carlo Pallini

      1 Reply Last reply
      0
      • V VCProgrammer

        Hi all, I have made a function and every time i execute that function its execution time increases(i.e if i don't close my exe and executes it. its excution time increases every time)... But if i close my exe its execution time remains normal..... I am not getting why this is happening. Can anybody help me in this.... Thanks in advance

        S Offline
        S Offline
        Shivanand Gupta
        wrote on last edited by
        #3

        may be possiable memory leak

        1 Reply Last reply
        0
        • V VCProgrammer

          Hi all, I have made a function and every time i execute that function its execution time increases(i.e if i don't close my exe and executes it. its excution time increases every time)... But if i close my exe its execution time remains normal..... I am not getting why this is happening. Can anybody help me in this.... Thanks in advance

          R Offline
          R Offline
          Rob 2 0
          wrote on last edited by
          #4

          All sorts of possible explanations. Without knowing something about the function, it's impossible to offer specific comments. There are many things the function could be waiting for (eg completion of an asynchronous I/O operation, files to be created by another program, mutexes to be released, critical sections to be released, completion of another program). It's possible the first call to the function may be initiating some wider action, and subsequent calls are waiting for that action to complete.

          1 Reply Last reply
          0
          • V VCProgrammer

            Hi all, I have made a function and every time i execute that function its execution time increases(i.e if i don't close my exe and executes it. its excution time increases every time)... But if i close my exe its execution time remains normal..... I am not getting why this is happening. Can anybody help me in this.... Thanks in advance

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Can you more explain about pointers that you used in your program?

            Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

            C 1 Reply Last reply
            0
            • H Hamid Taebi

              Can you more explain about pointers that you used in your program?

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              C Offline
              C Offline
              cute_friend7077
              wrote on last edited by
              #6

              can u display the function code

              H 1 Reply Last reply
              0
              • C cute_friend7077

                can u display the function code

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                But I cant see his monitor. :-D

                Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                T 1 Reply Last reply
                0
                • H Hamid Taebi

                  But I cant see his monitor. :-D

                  Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #8

                  Hamid. wrote:

                  But I cant see his monitor.

                  Spy eye can help!

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                  Never mind - my own stupidity is the source of every "problem" - Mixture

                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                  H 1 Reply Last reply
                  0
                  • T ThatsAlok

                    Hamid. wrote:

                    But I cant see his monitor.

                    Spy eye can help!

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                    Never mind - my own stupidity is the source of every "problem" - Mixture

                    cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #9

                    But I use of it at the other place how could you discover it? :-D

                    Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                    T 1 Reply Last reply
                    0
                    • H Hamid Taebi

                      But I use of it at the other place how could you discover it? :-D

                      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                      T Offline
                      T Offline
                      ThatsAlok
                      wrote on last edited by
                      #10

                      don't know.. what about programming it again :-)

                      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