That all makes sense but why wouldn't giving the file a new name let me start over? I did look for evidence in the task manager but I am new to the Windows 10 version and did not spot anything with Foxpro in the name.
Joe
On Fri, May 6, 2016 at 3:53 AM, Dave Crozier DaveC@flexipol.co.uk wrote:
I guess you crashed the form at some stage and the .scx/sct table was left open somewhere hence not being able to open it. The open file could also be in another instance of VFP which isn't displayed because it has gone rogue at some stage and doesn't present a visual interface.
I have had this happen quite frequently when testing tricky code especially when using office automation. The "stranded" instances of VFP or office apps can be seen in the task manager and closed accordingly.
Dave
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Joe Yoder Sent: 05 May 2016 22:05 To: Foxpro forum profox@leafe.com Subject: Re: Strange " File access is denied" message
Thanks Tracy,
I tried using with the share clause and it worked without error. I renamed the files and the same files with different names continued to give the error, I restarted the computer and the problem went away!
I'm glad to have my code back but am still puzzled about what was happening,
Thanks again,
Joe
On Thu, May 5, 2016 at 2:20 PM, Tracy Pearson tracy@powerchurch.com wrote:
Joe Yoder wrote on 2016-05-05:
I have a situation where "File Access is denied" shows up any time I try
to
open the main form in my current project. I'm running Windows 10 and
when
I get into File Explorer I can open both the .SCT and the .SCX files
from
notepad without a problem. If I double click on either one VFP opens, attempts to open the file, and throws the error message.
VFP opens other screen files without a problem so it seems there must be
a
problem with that specific file inside VFP. I tried opening the .SCX as
a
table and got the error too.
Any ideas about why this is happening and how to get around it will be
most
welcome!
Thanks in advance,
Joe
Joe,
VFP will open the files exclusive. Notepad will not. Did you try to use the SCX as a table with the SHARE clause?
Do you have a process open or hung that still has the form open?
Tracy Pearson PowerChurch Software
[excessive quoting removed by server]