Memory Leaks


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!!!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

may be the madshi diagnostic component will help you to trace your error :


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mohammed NasmanSoftware DeveloperCommented:
AQtime is the best for this job
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.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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, however i cannot seem to clientdataset.create
More help may be forthcoming if you could give short code examples, and report the exact error messages you receive.
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?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.