Re: Can't use TComponent in thread object?



When passing parameters, you need to include the name of the method
you're calling:

inherited Create(CreateSuspended);

Thanks Rob. The Delphi7 docs don't mention needing to call the
indentifier.

"When inherited has no identifier after it, it refers to the inherited
method with the same name as the enclosing method or, if the enclosing
method is a message handler, to the inherited message handler for the
same message. In this case, inherited takes no explicit parameters, but
passes to the inherited method the same parameters with which the
enclosing method was called."

But it does compile.
- Brett

.