[delphizip] Re: Link Error 1496 after upgrading to ZipMaster 1.79

  • From: James Turner <james.d.h.turner@xxxxxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Sat, 07 Feb 2009 02:18:02 +0000

This sounds like a unit dependency error (or conflict). I had one a few 
months ago - it's still not fully resolved. Changes to the interface 
part of some units in a large project still throw an internal error on 
first compilation but a second compilation is ok (build works too).

Other than circular unit references, there is an old bug that goes all 
the way back to Turbo Pascal 5 (more than 20 years ago) that means the 
compiler can get confused when a change is made to the interface part of 
a unit - bad code can be generated leading to access violations. After 
changing the interface part of any unit, a full build is the only safe 
way to proceed. I have never managed to pin down the exact cause of the 
problem but renaming variables is a common trigger.

Typically, to fix this type of problem, some variables, types and/or 
constants will need to be moved from the interface of one unit into a 
new unit thereby eliminating a cross-unit dependency (provided 
unnecessary uses are also removed). A similar approach is required to 
solve unit initialization conflicts but that's another problem altogether.

I used a dependency analyser by modelmakertools.com to locate my problem 
but I can't find a download link right now.

-- James Turner

 

Jay Eisenstock wrote:
> I've been using ZipMaster 1.78 for a number of years without any issues. I
> just upgraded to 1.79.10.07, I'm using Delphi 5 Enterprise addition. I can
> get past the link error if I build every time before running but that is not
> right.
> Also, I have had trouble getting SortGrid to work with this version. When I
> try to install it gives me an error "SortGrid.pas recursively uses itself"
>
> Any help would be most appreciated
>
> Jay Eisenstock
> jeisenstock@xxxxxxxxxxx
>
>
> -----------
> To unsubscribe from this list, send an empty e-mail 
> message to:
>   delphizip-request@xxxxxxxxxxxxx 
> and put the word unsubscribe in the subject.
>
>   
-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: