Urgent!! Please Help
-
HI Maxwell are you sure EndDialog() should not be used. please refer msdn for CDialog::EndDialog and implementation of CDialog::OnOK().
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
-
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|
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.
-
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- )
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
-
Do you allocated data with
new
ormalloc
? If so, Are you usingdelete
orfree
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