Which compiler are you using? The error that is given is not particularly helpful. Looking at the place where the error occurs, it seems to me that the real problem is that TObject is an undeclared...