I receive 'Undeclared Identifier' errors trying to use TraceMethod. What's wrong?
Delphi will return this error when compiling in two instances:
- You may not have the CodeSiteEx unit, CSIntfEx, included in your USES clause.
- CodeSite's unit, CSIntf for CodeSite 2 or CodeSiteLogging for later CodeSite versions, is most likely in your USES clause with CSIntfEx. While it is perfectly valid to include the units for both CodeSite and CodeSiteEx in the same USES clause, in order to make use of CSX's extra functionality, CSIntfEx must appear AFTER CodeSite's unit. Note: Existence in the Implementation section's USES clause qualifies as appearing "after" a unit in the Interface section's USES clause.