Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7985561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:35:31+00:00 2026-06-04T11:35:31+00:00

We have an application developed using Delphi 5 that we cannot upgrade to Delphi

  • 0

We have an application developed using Delphi 5 that we cannot upgrade to Delphi 6 or later for some reasons that are not important here.

Some time ago we had to implement XML processing into that application, and I decided to copy the implementation that we made for other applications using Delphi 6.

Everything went fine. I translated the Delphi 6 sources (msxml.pas, xmldoc.pas, msxmldom.pas, etc.) to Delphi 5. Minor adjustments had to be done on each file (like removing Variants uses for example). It worked, but I’m facing some problems with memory releasing.

I believe the problem is related to how Delphi 5 and Delphi 6 implements interfaces. I just copied the interfaces and their implementations from Delphi 6 to 5. Delphi is not releasing the memory properly. Debugging the code we determined that the origin of the problem is on TXMLDocument.ReleaseDoc on XMLDoc.pas. Seems like the line FDOMDocument := nil is not releasing the memory that it was supposed to do.

Can anybody give me some help on this? If we can’t fix this we’ll have to recode the whole thing using another XML library.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:35:33+00:00Added an answer on June 4, 2026 at 11:35 am

    Thanks a lot guys…

    I don’t know why I did, but while copying the Delphi 6 files to Delphi 5, I changed the line

    Result := inherited _Release;
    to
    Result := 0; //inherited _Release;

    on function TXMLNode._Release: Integer;

    Changed it back. Tested and the Delphi 5 program started to run just like the Delphi 6…

    Thanks again for your time!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an database application with Delphi XE2 using an Access DB, now
I have a web application that developed using j2ee and Struts 2 MVC. Sometimes
I have C++ application which has UI developed using MFC, does some networking using
I have a Qt application that was developed using Qt Creator and the GUI
I have developed an application using J9 that runs in windows mobile. but now
I have developed an application using Delphi and Firebird 1.5, where the server is
I have a legacy desktop accounting application developed using Delphi 5 & Paradox, which
I have an application developed using .net that needs to be installed in different
I have developed a few Delphi Win32 (currently using D2007) applications, which revolve around
I have an application(Developed using Adobe AIR) in which i have opened a port

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.