I’m testing implementation of LexActivator in an existing product in Delphi XE2. If I run the application with all the LexActivator code commented out, but with LexActivator.pas is still in the main “uses” cleause, then I get an Error 43 (the product id is incorrect) when the application closes. I have double-checked, and I am certain that no code related to LexActivator was compiled in - it’s just listed in the uses clause but is never actually used.
I tried to test this in a new empty project as well. If I create a totally new (empty) project in Delphi XE2 and run the project, it comes up with the empty main form (as it should). If I then add LexActivator.pas to the “uses” clause and run it again, nothing happens. The application doesn’t start, and the main form is never shown. If I remove LexActivator.pas from the uses clause again, everything works fine.
Any idea what’s going on?