> ... when I do this, I get an AV (in Delphi7). > tidyOptSetValue(fTidyDoc, TidyErrFile, ctmbstr(TIDY_NULL_FILE)); > tidySetErrorFile(fTidyDoc, ctmbstr(TIDY_NULL_FILE)); > { where TIDY_NULL_FILE = 'NUL' for Windows } If you can send me (off-list) a short sample program that shows the AV, maybe I can help. Regards, - Jeff