Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Reading Form

Status
Not open for further replies.

tjcusick

Programmer
Dec 26, 2006
134
US
When i open my datepicker.pas in delphi 7 i'm getting a message:
Error Reading Form
"Access violation at address 06E002CF in module 'tmsd7.bpl' Read of address 00000000. Ignore the error and continue? NOTE: Ignoring the error may cause components to be deleted or property values to be lost."


Then i get:
Error
"Error creating form: Access violation at address 40005CDE in module 'rtl70.bpl'. Read of address 00000098."


If i ignore the message it opens the datepicker.pas code but i cannot see my form?
Anyone have any ideas on how to get the form back? (hopefully without recreating it)

Thanks

Tom
 
This sort of error may occur if you make change the type of a form component by changing it's declaration in your form unit. ie, by changing an Edit1: TEdit declaration in the form to Edit1: TDatePicker. You can try opening the .dfm file for your form and double-checking each component type to make sure it matches it's declaration in your form's .pas file.

That's all I can think of, presuming that closing and reopening Delphi doesn't fix it.
 
You can get form read errors when importing forms created in older versions of Delphi.


Steve [The sane]: Delphi a feersum engin indeed.
 
Something that i just saw, I was able to open the form with an older version of the TMS bpls?
But I'm pretty sure i created it with the newer versions?
Does this mean that i must have compiled and saved it using the old TMS bpl and now that form is unusable?

I did try and remove some of the components and it would let me open it but it had like 1/3 of the actual fields on it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top