Orphaned embeds after importing TXAs: do they affect the EXE, and how to remove them quickly

Applies to: posted in the Clarion 6 group; version and template chain not named in the text.

Problem

After using Embed Assistant the poster found at least 300 orphaned embeds in his app, about 20 lines of code each, probably from importing TXAs. He deleted them, but neither the app file nor the compiled EXE changed in size. He asked whether orphans change the runtime executable and whether there is a quick way to delete them other than one by one or editing a TXA.

Solution

  1. Orphaned embeds are not generated, so they do not influence the DLL or EXE. Unreferenced code is also dropped by the optimizing compiler.
  2. In the IDE the orphaned embeds all show up at one place in the embed tree. If they are spread over many procedures, a TXA is the way to go.
  3. Export the app to a TXA, make a new app, import the TXA, and rename. This removes much that is left over and the new app file is a lot smaller. One poster took an app file from 11 MB to 4 MB this way.
  4. File, Save As to a new app was also suggested; the original poster tried it and it did not help.

Caveats

  • A poster said the IDE does not always delete things fully, it disconnects them. That is why orphaned embeds can be rescued and reconnected.
  • If one specific symbol is orphaned, it can be removed from the templates and the TXA reimported into a new app. That poster warned it is at your own risk and to make backups first.
  • Posters also saw big EXE savings from icon files and wallpaper images, not from embeds.

Today (2026)

Not re-tested. The TXA export and import route is likely to still work; keep a backup.

Sources: John F. (Feb 2006, the question), Ton V., Geoff B., Paul B., Sean C., Arnor B. (Feb 2006) in softvelocity.public.clarion6.