Contact US

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!

*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

On a FoxPro 6.0 form I can't close or go to design mode

On a FoxPro 6.0 form I can't close or go to design mode

On a FoxPro 6.0 form I can't close or go to design mode

When you create a form and edit some of the data, it is not possible to close the form or enter design mode. The following error message is displayed:

"File cannot be closed because outstanding references exist"

The only option left is to close FoxPro and re-open the form. Is there a simple solution to this problem?

Can anyone shed some light on this problem.

RE: On a FoxPro 6.0 form I can't close or go to design mode

Rahel, how are you creating an instance of the form? Are you using DO FORM? Are you doing anything unusual in creating the objects on the form?

The help for error# 1184 says:
"Outstanding references exist to an object in this form or form set."

My WAG is that there is some external reference (such as a memory variable, or perhaps a property of type object) to this form or something on it.

Not much help, but at least a few more questions!

RE: On a FoxPro 6.0 form I can't close or go to design mode

This type of problem is hard to correct because nobody can see your code, Like the above post I agree you have created some object that is not being released when you try to release the form I would suggest you put a "set step on" right before the thisform.release in your code that closes the form and pop into the debug window to see what objects you have created if you see any objects that are used in the form that are not needed elsware in the app place a "release objectname1,objectname2" in the destroy event on the form. if you want to restore the design time environment after running a misbehaving form,code,... you can type in the command window

release all
close all
clear all

one of the above should release the offending object so you can re-enter design mode for the form.

Steve Bowman

RE: On a FoxPro 6.0 form I can't close or go to design mode

I know that error too. It happens when you create an object reference somewhere in your form code. Maybe using createobject(). If you don't release this object before trying to close the form, the error ocurrs. When it happes to me I issue the command clear all in the command window and that's enough

Excusame if my English is not good
Edwin Dalorzo

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! Already a Member? Login

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