×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

File is not open error message when compiling

File is not open error message when compiling

File is not open error message when compiling

(OP)
I have seen some threads where this error (1113) is occuring but, in my case, this is happening when I compile. Up until now I've not had a problem with this project and its been compiled a good few times, of course. Now I can't seem to get past this [File is not open] error message. One of the suggestions Barbara Peisch makes is to rebuild the indexes, but that won't help compile, will it?

RE: File is not open error message when compiling

(OP)
OK, so a bit like when I take a toothache to the dentist, as soon as I posted my question, I tried again and it compiled without issue! Anyone have a comment? a clue? an idea what's going on?

RE: File is not open error message when compiling

One of the surest roads to a compile error is being SUSPENDed during debugging. In that case, type CANCEL in the command window.

RE: File is not open error message when compiling

CANCEL, then CLEAR ALL.
Or simply restart VFP before compiling.

Bye, Olaf.

RE: File is not open error message when compiling

(OP)
Thanks, gents. I always [CLEAR ALL] before compiling and, if I still have problems, shut and restart VFP. On this occasion this didn't help. I am having a bit of trouble with class libraries - bad management of locations on my part - so perhaps this is throwing a spanner in the works.

RE: File is not open error message when compiling

CLEAR ALL doesn't clear all, if there still is something dangling on callstack, therefore CANCEL.
Restarting the IDE should always clear out all reference, unless of course you still have an exe or other VFP session running.
But it worked in the end, so it can't be too serious or a permanent issue of a circular reference or something like that.

Bye, Olaf.




RE: File is not open error message when compiling

Hi SimplyES,

I have had this error a few times during the last 20 years.

The reason was always corrupt project files: *.pjt, *.pjx

- copying these two files back from a backup and all works! smile

- or: if You have no backup, create these two files again sad

- or: try to repair the two project files!

the pjx file is a table file *.dbf
the pjt file is a memo file *.fpt

You can open the pjx file with the USE command like a dbf file !!!

USE myproject.pjx
USE "myproject.pjx"

Regards, Stefan

RE: File is not open error message when compiling

Hi,

I have this line in mystart.prg

CODE --> vfp

On Key Label Alt+F5 Do "D:\VFP9\RESETTEN.PRG" 
and

CODE --> vfp

Keyboard('cancel{enter}clear all{enter}release all{enter}') 

thus everytime i (re)compile my project: alt+F5 + compile

rgds,
Koen

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close