Packages causing Delphi to crash


I am writing components for Delphi 1,2, 4 and C++Builder 3.  All of the
compile without any errors, but there is a snag in Delphi 4.  I have to use
packages, so I am using my own design time package.  If I recompile the
package, however, and then close it I get an access violation and Delphi has
to be closed.  The only way to solve the problem is to remove the offending
file, recompile the package, add the file in again and recompile the package
yet again!  Is there a simple solution to this?

Jonathan Hosking