?
Solved

About System Resources...

Posted on 2003-03-18
7
Medium Priority
?
138 Views
Last Modified: 2011-10-03
Hello,

How can I gather information on resources used by my application.  I just got a report that one of my apps has a memory leak.  I thought I freed up all the resources after I was finished with them.  I don't want this to happen in my next release, so is there any way of generating some sort of report?

Thanks
0
Comment
Question by:fibdev
  • 3
  • 2
  • 2
7 Comments
 
LVL 2

Expert Comment

by:j42
ID: 8165613
Hi,

try this:
in System.pas
  AllocMemCount
  AllocMemSize
Note: The information these two functions provide does not include resources in DLLs (unless you use the memory manager unit) or memory allocated by system calls.

Btw. maybe this command line options are useful (I never used them :-|   )
delphi32.exe /hm /hv



Regards
0
 
LVL 2

Expert Comment

by:j42
ID: 8165619
Oops... these are not functions but global variables :-O
0
 
LVL 20

Expert Comment

by:Madshi
ID: 8167219
MemProof does a good job, I think.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Author Comment

by:fibdev
ID: 8170854
I like the look of MemProof, but how do I interpret the information It collects.  For example.  I get an error, the error tells me the address, but how do I find the source in my code.  My compiler is not giving me any hints or errors.
0
 
LVL 20

Accepted Solution

by:
Madshi earned 400 total points
ID: 8174696
You have to compile your project with td32 debug infos, then MemProof will show you the source code location.
0
 
LVL 3

Author Comment

by:fibdev
ID: 8177813
Thank you.

Should I turn this compiler option off before compiling for release?
0
 
LVL 20

Expert Comment

by:Madshi
ID: 8179378
Yes, please, because the td32 debug infos let your exe grow significantly.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question