• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 741
  • Last Modified:

Memory Leaks

Hi

My application uses dll's, record pointers, clientdatasets (linked to xml files), and diagnostic messages (written to text files).

Huge memory leaks galore!! There is problems with virtual memory needed to be expanded.

Attempts to use "Dispose" and "FreeMem" result in EAccessViolation!

Any help please!!!
0
VEEPROG
Asked:
VEEPROG
3 Solutions
 
BdLmCommented:
may be the madshi diagnostic component will help you to trace your error :

http://www.madshi.net/

regards
BdLm
0
 
Mohammed NasmanSoftware DeveloperCommented:
AQtime is the best for this job
http://www.automatedqa.com/products/aqnet.asp
0
 
LRHGuyCommented:
Review your code:

Everywhere you getmem() or New() an object, allocating memory, be sure there is a corresponding freemem() or dispose(). Many times these are in the create()/destroy() functions of objects.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
VEEPROGAuthor Commented:
i seem to have some problem with the allocation and free of pointers and clientdatasets.

for pointers, i am able to use the New(Pointer)......but cannot seem to Dispose(Pointer)

for clientdatasets, i am able to clientdataset.free, however i cannot seem to clientdataset.create
0
 
LRHGuyCommented:
More help may be forthcoming if you could give short code examples, and report the exact error messages you receive.
0
 
VEEPROGAuthor Commented:

I've isolated the memory leak problem to the clientdatasets.
My application is run in real-time, and the clientdatasets are opened and closed (ACTIVE property set to TRE/FALSE) at least every minute. On every instance of open and closing the clientdataset there is a memory leak. The application eventually crashes on memory.

Is there a problem with the Clientdataset (delphi v6 / v7)?
Are there any patches?

Tx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now