Page 1 of 2

Trouble with windows 7

PostPosted: Sat Jun 25, 2011 10:28 pm
by hag
I have an application that closes and creates data base indexs (ntx). When using Win 7 i get create errors on the index (inconsistent). When I run program as administrator these errors seem to disappear. Any body have an idea as to what might be happening and is there a solution?

Re: Trouble with windows 7

PostPosted: Sun Jun 26, 2011 12:13 am
by driessen
Looks like a permission problem on your harddisk to me.

Does the user have the correct rights ?

Good luck.

Re: Trouble with windows 7

PostPosted: Sun Jun 26, 2011 12:27 am
by hag
I'm the user. How do I know if I have the rights?

Re: Trouble with windows 7

PostPosted: Sun Jun 26, 2011 9:42 am
by MarcoBoschi
Please tell us in which folder are dbf and ntx

Re: Trouble with windows 7

PostPosted: Sun Jun 26, 2011 4:18 pm
by hag
everything in the same folder. It is a standalone single user program.

Re: Trouble with windows 7

PostPosted: Sun Jun 26, 2011 5:04 pm
by MarcoBoschi
Please create a minimized program and I test it for you in my windows 7 notebook.

Re: Trouble with windows 7

PostPosted: Sun Jun 26, 2011 9:12 pm
by hag
Much to big to forward. Do you think the indexes may not be created because of Admin rights.

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 6:58 am
by MarcoBoschi
No I don't think so

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 9:41 am
by Bayron
Hi, Hag.

I assume you don't have the program installed in the Program Files directory, but if you do so, that may give you permission problems...

Have you tried to install the program in a different directory or to rename the .exe file???

For what I see, it may even be the logic in your program!!!!

It becomes very hard to help since you do not give any information as:
How big the program is,
What compiler you are using,
What version of FiveWin,
What error produces and where in your code,
And more importantly: Some Code

Please see this link:
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=19688

Once the problem is identified, you will find more people willing to help with experiences…
Remember, your problem and the solution, does not only helps you, but it helps us all, and the better documented the problem is, the better documented the solution will be…

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 9:50 am
by StefanHaupt
hag wrote:everything in the same folder. It is a standalone single user program.


What folder is it ?

As Bayron mentioned, in win7 it is not allowed to users to write in any folder under the program files folder. Normally in c:\program files there are only the executables and the data must be in programdata.

But you can create your own folder maybe in the root of c: or d: or any other partition and set the rights (change) to everyone.

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 5:50 pm
by hag
Thank you all for responding. I live in Los Angeles so there's a large time difference.

Presently using
Borland 55
FWH 8.9
Harbor lib dates 6/10
exe 11900KB
eXE and data files are all installed in the same directory.
The program has been in use for 21 years and consistently updated.
The program is installed directly to the C Drive. However some users may place it in the program folder.

the program uses over 130 PRG's 100+ RC's and opens many databases and closes them throughout the program. it is a very extensive program.To send working code would be virtually impossible. Not only that but the error message that I receive are intermittent sometimes they happen sometimes it doesn't.

It seems to me that using Windows 7 causes the program to fail to create indexes when called for. It seems to not occur if the program is opened as an administrator. For example yesterday I did the same process over and over and over never to crash however using in another machine it crashes except when it's opened as an administrator. All databases open fine it's strictly the index files.

Is it possible that Windows 7 will not allow the creation of indexes unless the user has administrative rights?
If that's the case how does one make sure that the user has administrative rights.

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 7:02 pm
by mgsoft
Hi,

It is a question of permissions.

If it is not set to total control, sometimes you will get random dbf errors, particulary when creating indexes.

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 7:04 pm
by hag
Any way to prevent it?

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 7:05 pm
by hag
any way to fix the problem.

Re: Trouble with windows 7

PostPosted: Mon Jun 27, 2011 7:38 pm
by MarcoBoschi
Hag,
I've tried to copy a dbf table into c:\ in my windows 7 but I have ACCESS DENIED.
Can you create a c:\myfolder and copy all files into this folder?
And repeat all tests?