CFutino


I have a VFP 6.0 application that is used simoultaniously on many computers over a network. Sometimes, when a certain form is opened, it returns a error that says that some component can't be loaded for it is used in exclusive mode by another user. Problem is, I can't figure out what it is that's beeing opened as exclusive.

Anyone knows what I should be looking for



Re: Excluisve access

dni


May be application is using some tables opened as exclusive.You may use

SET exclusive off







Re: Excluisve access

CFutino

It's already set off. And all my database access is made through ODBC.





Re: Excluisve access

dni

I had once this problem when I had lauched (accidentaly) the same form twice.I noticed this, in task manager.




Re: Excluisve access

Carl Warner

>> says that some component can't be loaded

Could you please post the exact error message That would be much more helpful than all of us trying to guess what you are seeing on your end. Thanks.





Re: Excluisve access

CFutino

The problem is my system (and therefore the error) is in protuguese.
It translates to something like 'Impossible to perform because other user is using some component exclusivelly'.

It does not say which component.




Re: Excluisve access

Alex Feldstein

 CFutino wrote:
The problem is my system (and therefore the error) is in protuguese.
It translates to something like 'Impossible to perform because other user is using some component exclusivelly'.

It does not say which component.

 

Isso e um problema, ne

What seems to be happening is that not everything in your program is opened in SHARED more.

In multiuser programs you SET EXCLUSIVE OFF and/or open every file meant to be shared with the SHARED clause:

USE mytable SHARED

It might be difficult to determine which one it is unless you know the program inside and out. If it happens around the same place, you could do error trapping using either TRY..CATCH (preferred) or the older ON ERROR to try to find the problem and fix it.