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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program Execution Error

Status
Not open for further replies.

MaintainDelphi

Programmer
Mar 9, 2005
3
US
Friends I am a Java programmer with about 8 years of software experience. Recently I have been told to support an existing Delphi Application in my organization. I have been fixing small code changes in the forms for day to day maintenance purpose.
Since I do not have any formal Delphi background I have been stuck up with an issue since last few days. I am trying to open a form and I get a pop up saying "Error Reading Form".
Further it says

"Class TNumEdit not found. Ignore the error and continue? NOTE: Ignoring the error may cause components to be deleted or property values to be lost"

Below this are three buttons for "Ignore", "Cancel" and "Ignore All".

If I press "Ignore" button and open the form the Form gets loaded. Next when I do press F9 to run the program my application fails when I try to load this form.

It gives me error message saying

"Project raised exception. Class EAccessViolation with message 'Access Violation at address 00597E57 in module appname.exe. Read of Address '00000000' Process Stopped. Use Step or Run to continue"

I have been trying every possible solution but I have got no success to get this resolved. I am sure this should be something very simple for experience people to fix.

Any help to me in this direction will be greatly appreciated. If some one can even guide me in right direction it will be a great help for me

Please let me know if you need any more information to get this resolved.

Thanks a lot,
RG
 
TNumEdit would seem to be a custom component. Either it was written inhouse or downloaded somewhere, and is not currently installed.

In either case, in order for the application to work, you need that component installed. Search the web, search the harddrive to see if you can find the component. It may have a source file, it may not.
 
Thanks Griffyn,
TNumEdit is coming from NumCtrl.pas file which was not included in my project. I tried to add this file by "Add to Project" and I did a complete build. Build was successful. When I try to open the file I get the same error again.

I get a pop up saying "Error Reading Form".
Further it says

"Class TNumEdit not found. Ignore the error and continue? NOTE: Ignoring the error may cause components to be deleted or property values to be lost"

Can you please guide me on this. I have tried all kind of different options to make this working. If you have a few minutes I can call you also to get this resolved.

Thanks,
RG
 
You need to install the component. Go to the Component menu, then click Install Component.

Browse for NumCtrl.pas as the unit file name, and you'll be adding it to the dclusr.dpk package.

That should install the component and give it an icon on the appropriate tool palette. Then try opening your project again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top