FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Trouble with windows 7
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Trouble with windows 7
Posted: Sat Jun 25, 2011 10:28 PM

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?

Thank you

Harvey
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Trouble with windows 7
Posted: Sun Jun 26, 2011 12:13 AM

Looks like a permission problem on your harddisk to me.

Does the user have the correct rights ?

Good luck.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Trouble with windows 7
Posted: Sun Jun 26, 2011 12:27 AM

I'm the user. How do I know if I have the rights?

Thank you

Harvey
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Trouble with windows 7
Posted: Sun Jun 26, 2011 09:42 AM

Please tell us in which folder are dbf and ntx

Marco Boschi
info@marcoboschi.it
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Trouble with windows 7
Posted: Sun Jun 26, 2011 04:18 PM

everything in the same folder. It is a standalone single user program.

Thank you

Harvey
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Trouble with windows 7
Posted: Sun Jun 26, 2011 05:04 PM

Please create a minimized program and I test it for you in my windows 7 notebook.

Marco Boschi
info@marcoboschi.it
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Trouble with windows 7
Posted: Sun Jun 26, 2011 09:12 PM

Much to big to forward. Do you think the indexes may not be created because of Admin rights.

Thank you

Harvey
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 06:58 AM

No I don't think so

Marco Boschi
info@marcoboschi.it
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 09:41 AM
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…

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 09:50 AM
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.
kind regards

Stefan
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 05:50 PM

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.

Thank you

Harvey
Posts: 422
Joined: Mon Aug 17, 2009 12:18 PM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 07:02 PM

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.

Saludos,



Eduardo
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 07:04 PM

Any way to prevent it?

Thank you

Harvey
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 07:05 PM

any way to fix the problem.

Thank you

Harvey
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Trouble with windows 7
Posted: Mon Jun 27, 2011 07:38 PM

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?

Marco Boschi
info@marcoboschi.it