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. Urgent!! Please Help

Urgent!! Please Help

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
24 Posts 8 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.
  • R Rajkumar R

    HI Maxwell are you sure EndDialog() should not be used. please refer msdn for CDialog::EndDialog and implementation of CDialog::OnOK().

    M Offline
    M Offline
    Maxwell Chen
    wrote on last edited by
    #21

    Rajkumar R wrote:

    are you sure EndDialog() should not be used. please refer msdn for CDialog::EndDialog and implementation of CDialog::OnOK().

    You are right! It was my mistake. :-D

    Maxwell Chen

    1 Reply Last reply
    0
    • D dheka

      Iam a Jr. VC++ Developer. Iam working on Dialog based application(MFC). My application is almost completed. It is typically a Billpayment sort of application. It works Fine for few Transactions but starts Slowing down and finally get hanged if i made several transaction of same flow.I have to restart my application again and so on. I cant find out the exact reasons of this. Iam created all my object statically. Is there any problem regarding statically or Dyanamically object creation. Please Tel me the reason, so that i get rid off soon.X|

      K Offline
      K Offline
      kanduripavan
      wrote on last edited by
      #22

      I have few things to say. Check if you have any Memory profiler tools nearby available to you. Such as Rational purify or something else even one from codeproject. Run your code once. That will fix your problem. You will definitely get the location where u are going wrong. Have patience. I know its too hard, but its the truth.

      1 Reply Last reply
      0
      • D Demian Panello

        Use the Windows Task Manager to see if you are releasing properly the objects you've allocated. You will see the "Usage memory" column of your program will increase very quick instead of being stable. That will help you to find memory leaks that could cause your program decrease in performance until hang it.

        Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

        D Offline
        D Offline
        dheka
        wrote on last edited by
        #23

        Ya Sir1!Iam Checking it out in Task MAnager.ya iam getting problem in my second Dialog box..After Pressing cancel button in it,iam Ending that dialog using CDialog::EndDialog() function, but memory usage get increased tremendiosly.. So iam trying to poiint it out...Thanks

        1 Reply Last reply
        0
        • M Maximilien

          Do you allocated data with new or malloc ? If so, Are you using delete or free to release the memory ? Are you communicating (transmitting) data somewhere ? on the network, in a Database ? in a file ? If you keep the data in memory, what happen when you add more and more data ? is it added in a "sorted" way ? (in debug mode) When you just do a couple of "transations", and quit, does the debugger report memory leaks ?

          Maximilien Lincourt Your Head A Splode - Strong Bad

          D Offline
          D Offline
          dheka
          wrote on last edited by
          #24

          Hello Sir!! No sir iam not using malloc or new keywords to allocate memory..bt ya iam communicating with remote server and file also.

          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