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

Fatal error: 2

Status
Not open for further replies.

maryhale

Programmer
Oct 18, 2006
6
GB

I have a file named frmDCconvert.scx/sct and when Itry to modify it I get a fatal exception error:

Faral error:Exception code=C0000005 @ 10/27/06 07:25 AM...

I'm using VFP 9.0 SP1

If I rename the file, it works fine.
The same file works fine on another machine.

It's as if VFP doesn't like the file name.

Is there something I should know about

I was very upset when I thought I lost the form, and would like to know if there is something I could do to prevent it from reoccuring.

Thanks,
Mary


 
Mary,

I assume you mean the error comes up when you type...
Code:
MODIFY FORM frmDCconvert
...in VFP?

This may be a problem with the Foxuser table.

This is a table that VFP uses to make sure that each time you browse a table or modify a form etc, it appears the same as it was when you last closed/saved it. Sometimes it causes problems and may be the cause of your current problem. You can find out its path/file name from Tools\Options - File locations tab. Go down the list of files to "Resource file".

You can delete (or safer - rename) the table (in Windows Explorer) and next time you run VFP, a new one will be created, or you can untick the box you'll find if you double click on the Resource file entry mentioned above.

The only issue with deleting/renaming the table is that you will lose all the settings for how windows appear within VFP, fonts and your last used files lists.

You could try:
[ol][li]rename the table[/li]
[li]run VFP[/li]
[li]use and browse the renamed table[/li]
[li]locate & delete the records that mention your form[/li]
[li]close VFP[/li]
[li]delete the newly created tables[/li]
[li]rename the originals back to the correct names[/li][/ol]

Next time you run VFP, you may be able to modify your form without errors.


Hope that helps,

Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks Stewart,

The answer was spot on. The few configuration items lost were inconsequential.

Thanks loads.

Mary

 
Mary,

Welcome to tek-tips! If Stewart was helpful for you, you should give him a star by clicking on the "Thank StewartUK for this valuable post!" link at the bottom of his post.


I ssuggest you read the FAQ he has linked in his signature too.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top