Jump to content
rudy999

The TDIFF component -does not work in 64 bit compiled app

Recommended Posts

I had the requirement to compare to two text files (via Tmemo) and found the TDIFF component that worked exactly as I wanted. win32 app.

I just set the application to compile as a win64 bit app and the results were 'wrong'. (As verified with Notepad++ compare). No crash, no warning, just different results.

 

I am guessing the optimizations within the TDIFF unit and pointer use do not work in 64 bit target platform.

Description:      Component to list differences between two integer arrays   *
*                   using a "longest common subsequence" algorithm.            *
*                   Typically, this component is used to diff 2 text files     *
*                   once their individuals lines have been hashed.     *

 

I could not find another Component in JVCL - any alternatives out there?

 

Thank you in advance

Share this post


Link to post
Guest

have seen this Github repository:  https://github.com/rickard67/TextDiff

Text compare component for Delphi and Free Pascal

  • Component TDiff *
  • * Version: 5.02 *
  • * Date: 23 May 2020 *
  • * Compilers: Delphi 10.x *
  • * Author: Angus Johnson - angusj-AT-myrealbox-DOT-com *
  • * Copyright: © 2001-2009 Angus Johnson *
  • * Updated by: Rickard Johansson (RJ TextEd)

 

image.thumb.png.7049dacb935a60ed8c48139af17a177b.png

hug

Edited by Guest

Share this post


Link to post

Thank you !

I was able to download the GITHUB TDIFF and got the app working with identical results in Win32 or Win64.

 

I may have an incorrect setup but I had to add Winapi.Windows to the HashUnit (DWORD was not defined?)

to compile properly.

 

regards all

Share this post


Link to post

This is something that crops up over and again. Always get third party libraries from their main repos, and make sure you are up to date. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×