Index
2011-10-14 10:56 – Matt Slay : How to RELEASE a .app file from FoxPro IDE?
2011-10-14 11:03 – Alan Bourke : Re: How to RELEASE a .app file from FoxPro IDE?
2011-10-14 11:04 – Lou Syracuse : RE: How to RELEASE a .app file from FoxPro IDE?
2011-10-14 11:26 – MB Software Solutions, LLC : Re: How to RELEASE a .app file from FoxPro IDE?
2011-10-14 11:52 – Dan Covill : Re: How to RELEASE a .app file from FoxPro IDE?
2011-10-14 13:26 – Ted Roche : Re: How to RELEASE a .app file from FoxPro IDE?
2011-10-14 13:55 – Eurico Chagas Filho : Re: How to RELEASE a .app file from FoxPro IDE?
2011-10-14 18:33 – Jean Haidar : Re: How to RELEASE a .app file from FoxPro IDE?
2011-10-18 08:52 – Christof Wollenhaupt : Re: How to RELEASE a .app file from FoxPro IDE?
Back to top
How to RELEASE a .app file from FoxPro IDE?

Author: Matt Slay

Posted: 2011-10-14 10:56:57   Link

In the FoxPro IDE, I have a tool that is a .APP file. Whenever I have run

the tool once in a session, and then exit the App (but I remain in the

FoxPro IDE), then FoxPro still seems to have the .app file opened, or

locked, or something.

The result of this is, for instance, I cannot "DELETE FILE MyTool.app" from

the command window, nor can I rename or delete the .app file from a Windows

Explorer window. In both cases, I get an access denied error. Again, this

true even after I exit the .APP (but, again, I still remain the FoxPro IDE).

Don't ask why I want to delete it, just believe me that I need to.

This proves that FoxPro still has a lock on the file, even after quiting the

.app. The only way I have have to free it is to exit FoxPro. Only then can I

delete the .app file.

So, how can I tell the FoxPro IDE to "Release" this file?

I tried RELEASE ALL, but that does not worlk.

Any ideas?

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/00ba01cc8a81$85de3b90$919ab2b0$@com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Matt Slay
Back to top
Re: How to RELEASE a .app file from FoxPro IDE?

Author: Alan Bourke

Posted: 2011-10-14 11:03:58   Link

Try

Close All

Clear All

Release All

Stick 'em on a function key.

--

Alan Bourke

alanpbourke (at) fastmail (dot) fm

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1318604638.27524.140660985958353@webmail.messagingengine.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Alan Bourke
Back to top
RE: How to RELEASE a .app file from FoxPro IDE?

Author: Lou Syracuse

Posted: 2011-10-14 11:04:18   Link

Maybe you have a variable or object reference that isn't being released?

If you open the debugger window after running the app is there anything under locals?

As a total WAG, try this:

Close all

Clear all

Clear memory

Release all

Release all extended

And see if any of those commands help.

Lou

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On Behalf Of Matt Slay

Sent: Friday, October 14, 2011 7:57 AM

To: profoxtech@leafe.com

Subject: How to RELEASE a .app file from FoxPro IDE?

In the FoxPro IDE, I have a tool that is a .APP file. Whenever I have run

the tool once in a session, and then exit the App (but I remain in the

FoxPro IDE), then FoxPro still seems to have the .app file opened, or

locked, or something.

The result of this is, for instance, I cannot "DELETE FILE MyTool.app" from

the command window, nor can I rename or delete the .app file from a Windows

Explorer window. In both cases, I get an access denied error. Again, this

true even after I exit the .APP (but, again, I still remain the FoxPro IDE).

Don't ask why I want to delete it, just believe me that I need to.

This proves that FoxPro still has a lock on the file, even after quiting the

.app. The only way I have have to free it is to exit FoxPro. Only then can I

delete the .app file.

So, how can I tell the FoxPro IDE to "Release" this file?

I tried RELEASE ALL, but that does not worlk.

Any ideas?

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/0BAC2C1927422843B2C121C8B41684AF0C66304B@DFW1MBX24.mex07a.mlsrvr.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Lou Syracuse
Back to top
Re: How to RELEASE a .app file from FoxPro IDE?

Author: MB Software Solutions, LLC

Posted: 2011-10-14 11:26:17   Link

On 10/14/2011 11:03 AM, Alan Bourke wrote:

> Try

>

> Close All

> Clear All

> Release All

>

> Stick 'em on a function key.

That's my X.PRG, so at the command line, I just say "DO X" and viola.

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4E985499.3010806@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 MB Software Solutions, LLC
Back to top
Re: How to RELEASE a .app file from FoxPro IDE?

Author: Dan Covill

Posted: 2011-10-14 11:52:40   Link

On 10/14/11 08:26, MB Software Solutions, LLC wrote:

> On 10/14/2011 11:03 AM, Alan Bourke wrote:

>> Try

>>

>> Close All

>> Clear All

>> Release All

>>

>> Stick 'em on a function key.

>

>

> That's my X.PRG, so at the command line, I just say "DO X" and viola.

>

I called mine Reset.prg. It gets run quite a lot. <g>

Dan Covill

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4E985AC8.3000502@san.rr.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Dan Covill
Back to top
Re: How to RELEASE a .app file from FoxPro IDE?

Author: Ted Roche

Posted: 2011-10-14 13:26:21   Link

Matt: You've got access to the code for the app, right? You might want

to check if there is a SET CLASSLIB TO or SET PROCEDURE TO within the

APP that's still hanging around keeping you from fully releasing the

application.

On Fri, Oct 14, 2011 at 10:56 AM, Matt Slay <mattslay@jordanmachine.com> wrote:

> In the FoxPro IDE, I have a tool that is a .APP file. Whenever I have run

> the tool once in a session, and then exit the App (but I remain in the

> FoxPro IDE), then FoxPro still seems to have the .app file opened, or

> locked, or something.

--

Ted Roche

Ted Roche & Associates, LLC

http://www.tedroche.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACW6n4tZMkTgXBu+FQ=fwGedys4PK7QBdCk5_KsidCTjWyFU8g@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Ted Roche
Back to top
Re: How to RELEASE a .app file from FoxPro IDE?

Author: Eurico Chagas Filho

Posted: 2011-10-14 13:55:00   Link

Change to .exe and avoid all this hassle, using the RUN comand.

E.

>________________________________

>> In the FoxPro IDE, I have a tool that is a .APP file. Whenever I have run

>> the tool once in a session, and then exit the App (but I remain in the

>> FoxPro IDE), then FoxPro still seems to have the .app file opened, or

>> locked, or something.

>

>

>

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1318614900.74263.YahooMailNeo@web160805.mail.bf1.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Eurico Chagas Filho
Back to top
Re: How to RELEASE a .app file from FoxPro IDE?

Author: Jean Haidar

Posted: 2011-10-14 18:33:37   Link

try using the following commands:

CLOSE ALL

CLEAR ALL

Jean Haidar

jhhaidar@sbcglobal.net

________________________________

From: Matt Slay <mattslay@jordanmachine.com>

To: profoxtech@leafe.com

Sent: Fri, October 14, 2011 7:56:57 AM

Subject: How to RELEASE a .app file from FoxPro IDE?

In the FoxPro IDE, I have a tool that is a .APP file. Whenever I have run

the tool once in a session, and then exit the App (but I remain in the

FoxPro IDE), then FoxPro still seems to have the .app file opened, or

locked, or something.

The result of this is, for instance, I cannot "DELETE FILE MyTool.app" from

the command window, nor can I rename or delete the .app file from a Windows

Explorer window. In both cases, I get an access denied error. Again, this

true even after I exit the .APP (but, again, I still remain the FoxPro IDE).

Don't ask why I want to delete it, just believe me that I need to.

This proves that FoxPro still has a lock on the file, even after quiting the

.app. The only way I have have to free it is to exit FoxPro. Only then can I

delete the .app file.

So, how can I tell the FoxPro IDE to "Release" this file?

I tried RELEASE ALL, but that does not worlk.

Any ideas?

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1318631617.54262.YahooMailRC@web180114.mail.gq1.yahoo.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jean Haidar
Back to top
Re: How to RELEASE a .app file from FoxPro IDE?

Author: Christof Wollenhaupt

Posted: 2011-10-18 08:52:42   Link

I've seen this when classes are instantiated with NEWOBJECT() passing the

application name as the third parameter or when the IN clause is used with

SET CLASSLIB. You could run the code from my security session to peek into

the system datasession whether there's any VCX open.

When you clear classes you might need to clear them repeatedly as you can't

clear a class when a sub class is still loaded.

I assume you can't simply run CLEAR ALL / CLOSE ALL as you need to do this

as part of a process in the IDE?

In that case another approach is not using the APP in the first place. In

one of my application the user can edit an external VCX class while the

class is loaded. The way this works is that I make a copy of the VCX in a

temporary directory and load this one at runtime instead. After editing I

just remove the object and make a new copy.

Could a similar approach work you my making a copy of the APP into a temp

directory and executing it instead?

Christof

On Fri, Oct 14, 2011 at 4:56 PM, Matt Slay <mattslay@jordanmachine.com>wrote:

> In the FoxPro IDE, I have a tool that is a .APP file. Whenever I have run

> the tool once in a session, and then exit the App (but I remain in the

> FoxPro IDE), then FoxPro still seems to have the .app file opened, or

> locked, or something.

>

>

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAL4QJhjwP2RgYp8+ms-ddD_Lh2P5tiOxof1=Ni5nvw7iqabRXQ@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Christof Wollenhaupt