Jump to content
Mark Billig

Exception EReadError

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×