Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

File Access Problem in C6.1
I have a Clarion app that was working properly in C6.0.  I upgraded
Clarion to C6.1 (build 9025), installed hot fixes 9026-9031 and
installed the most recent versions of ABCFree6 and FM2 for C6.1.
Now my app is crashing with these error messages:

Could not get write access to WORKINGD so trying read-only.
File WORKINGD could not be opened. Error: Access Denied (5). Press OK
to end this application.

WorkingData is a .tps file which contains working data.  The physical
.tps file is deleted at the end of each run via the remove function.
To try to isolate the problem I add messages to my app and performed
these steps:

1. In Main, the Relate:WorkingData.Open creates the .tps file.  I added
messages before and after this statement to ensure the physical .tps
file was created by this statement.  The file does not exist before
this statement and it does after this statement.
2. Main uses the start(WorkingDataBrowse) statement to open the browse
for WorkingData.  When the WorkingDataBrowse procedure executes the
Relate:WorkingData.Open statement, the app crashes with the messages
listed above.

After the app crashes the WORKINGD.TPS file exists and the only
attribute that is set for the file is Archive, so the file is not set
for read-only access.
Does anyone know of anything inC6.1 that would cause this problem?


Report this thread to moderator Post Follow-up to this message
Old Post
rwmorrison@bigfoot.com
01-03-05 08:55 AM


Re: File Access Problem in C6.1
We had the same problem, but I had a client Windows XP machine trying
to open a file on another Windows XP machine's shared drive.

Is this a standalone machine or are you networking? Are you using XP?
Does the user have read/write permission on that machine?

Our problem was identified when the user couldn't write a notepad file
in the working data directory on the shared drive.

The solution was to allow user's who shared the drive to have
read/write access. Checkbox on the shared properties of the folder.

Good Luck
Gary Bennett




rwmorrison@bigfoot.com wrote:
> I have a Clarion app that was working properly in C6.0.  I upgraded
> Clarion to C6.1 (build 9025), installed hot fixes 9026-9031 and
> installed the most recent versions of ABCFree6 and FM2 for C6.1.
> Now my app is crashing with these error messages:
>
> Could not get write access to WORKINGD so trying read-only.
> File WORKINGD could not be opened. Error: Access Denied (5). Press OK
> to end this application.
>
> WorkingData is a .tps file which contains working data.  The physical
> .tps file is deleted at the end of each run via the remove function.
> To try to isolate the problem I add messages to my app and performed
> these steps:
>
> 1. In Main, the Relate:WorkingData.Open creates the .tps file.  I
added
> messages before and after this statement to ensure the physical .tps
> file was created by this statement.  The file does not exist before
> this statement and it does after this statement.
> 2. Main uses the start(WorkingDataBrowse) statement to open the
browse
> for WorkingData.  When the WorkingDataBrowse procedure executes the
> Relate:WorkingData.Open statement, the app crashes with the messages
> listed above.
>
> After the app crashes the WORKINGD.TPS file exists and the only
> attribute that is set for the file is Archive, so the file is not set
> for read-only access.
> Does anyone know of anything inC6.1 that would cause this problem?


Report this thread to moderator Post Follow-up to this message
Old Post
talmadge50@msn.com
01-03-05 08:55 AM


Re: File Access Problem in C6.1
Gary,

Thank you for your reply!  This problem is occurring on a standalone
PC.  It is my development PC and I have full permission on the
directory where the file is created.  It holds my other .tps files and
I have no problem accessing those files.

Randy Morrison


Report this thread to moderator Post Follow-up to this message
Old Post
rwmorrison@bigfoot.com
01-03-05 08:55 PM


Re: File Access Problem in C6.1
Randy,

I had a few similar problems when moving from 6.0 to 6.1 and found that
liberally sprinkling Access:Filename.Usefile() in the problem areas
took care of the issue.

I assumed that the problem was caused by the timing differentials (due
to threading, or ?) in 6.1.

Rich Knoch
www.compulink-ltd.com


Report this thread to moderator Post Follow-up to this message
Old Post
Rich
01-04-05 08:55 PM


Re: File Access Problem in C6.1
Rich,

Thank you!  I found this suggestion in another thread (probably
yours!).  I added a usefile() statement immediately before the point at
which the app was crashing, but it did not help.

Based on the threads I found, several others have experienced this
problem.  Has anyone heard anything from SoftVelocity on this issue?
It is frustrating and discouraging when an upgrade breaks working code.
Randy Morrison


Report this thread to moderator Post Follow-up to this message
Old Post
rwmorrison@bigfoot.com
01-04-05 08:55 PM


Re: File Access Problem in C6.1
Randy,

I had a few similar problems when moving from 6.0 to 6.1 and found that
liberally sprinkling Access:Filename.Usefile() in the problem areas
took care of the issue.

I assumed that the problem was caused by the timing differentials (due
to threading, or ?) in 6.1.

Rich Knoch
www.compulink-ltd.com


Report this thread to moderator Post Follow-up to this message
Old Post
Rich
01-07-05 01:55 AM


Re: File Access Problem in C6.1
Rich,

Thank you!  I found this suggestion in another thread (probably
yours!).  I added a usefile() statement immediately before the point at
which the app was crashing, but it did not help.

Based on the threads I found, several others have experienced this
problem.  Has anyone heard anything from SoftVelocity on this issue?
It is frustrating and discouraging when an upgrade breaks working code.
Randy Morrison


Report this thread to moderator Post Follow-up to this message
Old Post
rwmorrison@bigfoot.com
01-07-05 01:55 AM


Re: File Access Problem in C6.1
Gary,

Thank you for your reply!  This problem is occurring on a standalone
PC.  It is my development PC and I have full permission on the
directory where the file is created.  It holds my other .tps files and
I have no problem accessing those files.

Randy Morrison


Report this thread to moderator Post Follow-up to this message
Old Post
rwmorrison@bigfoot.com
01-08-05 08:55 AM


Re: File Access Problem in C6.1
Gary,

Thank you for your reply!  This problem is occurring on a standalone
PC.  It is my development PC and I have full permission on the
directory where the file is created.  It holds my other .tps files and
I have no problem accessing those files.

Randy Morrison


Report this thread to moderator Post Follow-up to this message
Old Post
rwmorrison@bigfoot.com
01-10-05 01:55 PM


Re: File Access Problem in C6.1
Rich,

Thank you!  I found this suggestion in another thread (probably
yours!).  I added a usefile() statement immediately before the point at
which the app was crashing, but it did not help.

Based on the threads I found, several others have experienced this
problem.  Has anyone heard anything from SoftVelocity on this issue?
It is frustrating and discouraging when an upgrade breaks working code.
Randy Morrison


Report this thread to moderator Post Follow-up to this message
Old Post
rwmorrison@bigfoot.com
01-10-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Clarion archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:42 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.