Jump to content
Registration disabled at the moment Read more... ×
Mark Billig

Exception EReadError

Recommended Posts

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.

DelphiError.PNG

Share this post


Link to post
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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×