Mark Billig 0 Posted July 19 I have an application where if I rename or remove a component (SpinEdit) I get an error on run. Exception EReadError in module PingFrames.exe at 000BF9E7. Ancestor for 'SpinEdit' not found. The source code can be found at: https://github.com/mbillig02/PingFrames Thanks for any help. Share this post Link to post
Dave Nottage 624 Posted July 19 11 minutes ago, Mark Billig said: I have an application where if I rename or remove a component (SpinEdit) I get an error on run. You have several TSpinEdit components in that application. Which one(s) are you renaming? Share this post Link to post
Mark Billig 0 Posted July 20 The one named just 'SpinEdit'. It is in PingFrameUnit.pas Share this post Link to post
aehimself 404 Posted July 20 Did you use the Delphi IDE to rename or remove the component? For a component to be streamed properly you need 3 things (4 if counting the obvious): - Component descriptor in .pas (MyComponent: TSpinEdit) - Unit in Uses list, before the component (usually Interface) - Component descriptor in .dfm (MyComponent: object/inherited MyComponent: TSpinEdit) These have to exist in your frame and all of it's ancestors. When I had this error, it was usually one of the above. Share this post Link to post
Mark Billig 0 Posted July 20 I found the issue in PFUnit.dfm ( I did use the IDE to remove / refactor the component ) I think it is left over from earlier abandoned design. I will need to take a close look and clean it up. Thank you for your suggestions. Share this post Link to post