Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Read-only files
PostPosted: March 4th, 2009, 11:41 pm 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi
Have created an application that stores user data in a dat file using the write to disk function.

The product appears to work correctly when tested.

However, a couple of purchasers of the software are having a problem. When they make any changes to the userbase (eg adding a pupil), the data file is not updated, even though it should be.

I've asked these users to check if the files are 'read only' and to unselect this option if they are - however they report that whilst they set the files to not be read-only and click 'APPLY', as soon as they look again, the file has reverted to being 'read-only'. Is this something that Opus does (I doubt it very much!), or is there any further advice I can give them to solve this 'read-only' issue?

Many thanks

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 5th, 2009, 9:22 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
No this isn't something Opus should do out of the box.

When you say Pupils' data file - is this running on a school network? If so do the the users have the correct permissions and is the file in folder with the correct permissions.

Also is the file shared - it really shouldn't be.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Permissions
PostPosted: March 5th, 2009, 10:18 am 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

The software has been written for both education and home market, but the problems I've experienced so far have been with home users with software installed just on one PC.

The issue I think is related to how these home PCs have permissions set up - ie something to do with the folder being read-only.

When I'm creating the school version, the files are available for all users - so I guess they must be shared - is this likely to cause any problem? (I have designed it so that, for pupil use, most files only need to be read, with only the pupil's own individual file needing to be amended each time they use system).

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 5th, 2009, 10:53 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
It seems odd that it would happen on a standalone home machine.

As for a school network - it depends on how you're using the data file - is it a flat database that might be accessed by more than one person on the school network at once?

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Permissions
PostPosted: March 5th, 2009, 11:19 am 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

Sorry, but I don't know what you mean by a flat database.

There's a main file with settings that is read by all pupils, and then they select a class, which reads another data file in with class info. They then click on their name, which readds in their own data file. When they finish their go, their results are saved in their own data file, and the program is ready for the next user.

Had more input from someone who's having problems. The folder (created by Opus) is read-only, and even though the files within it are apparently not read-only, Opus doesn't save any changes as it should - the program is working in hundreds of other homes without a problem!

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 5th, 2009, 12:00 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
H Paul,

http://en.wikipedia.org/wiki/Flat_database

It doesn't sound like you need to worry overly about this for you networked programs but do keep in mind that if different users on the network are trying to write to the same file that this will cause problems.

As for Opus creating a folder, yes this is read-only but the file shouldn't be.

Have you used the Close() to close your file objects correctly after use.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Permissions
PostPosted: March 5th, 2009, 12:06 pm 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
So if Opus creates a folder, it'll be read only, but the files themselves won't be read only? I thought the problem the user was having was because the folder was read-only and he couldn't make it available for full access, but if as you say the files aren't read only, then the user should have been able to amend the data.

When you mention Close(), I don't write in script, but is this the same as the option to Close a data file? If so, maybe I need to go back and check that every time I open the file (either to read or write), I close it every time. I thought I had, but it's possible one has slipped through the net.

Thanks

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 5th, 2009, 12:19 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
If I recall correctly, have a folder set as read-only doesn't actually do anything anyway - it has to be applied to the files.

As for Close(), yes it's a good idea to check - people have posted problem with files in the past and this has been due to not closing them but I cannot see this changing the file permissions.

Can you find out what operating system people are using? There have been various posts about files saved in the wrong location under Vista causing problems as well.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Permissions
PostPosted: March 5th, 2009, 12:25 pm 
Offline

Joined: May 28th, 2007, 11:39 pm
Posts: 81
Location: Wirral, UK
Opus: v7.03
OS: XP / Win 7
System: Various
Hi

Both users were on XP - I checked this with them as I'm aware that there are problems saving to the Program Files area of Vista.

_________________
Opus Pro. v6.0
XP hOME
Intel Core 2 Duo 6550, 2 gb Ram
iNTEGRATED graphics card


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 5th, 2009, 1:59 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Well that throws out the idea of blaming t on Vista :-)

When you say that the file returns to read only - is this with your program shut down in which case it must be another application or the OS that is causing this.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group