I have a Delphi ActiveX project with 4 interfaces. Two of them have AutoComObject factories for their CoClasses. All interface methods are declared using safecalls. On factory interfaces, if an exception is thrown in any method, the caller receives an EOleException with an exception message from the original exception in activex. But in the other two interfaces, any exception is masked as an EOleException with a message disguised as "Catastrophic Error."
Does anyone know why this is happening, and how to make the original exception message not mask?
source
share