Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force Windows2000 to close files opened by anothe
Message
 
 
À
14/06/2003 16:57:25
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00800156
Message ID:
00800157
Vues:
24
Have you thought about adding a code to the COM DLL to check for a "flag" file and shutdown (close databases, etc) if the file is there? Of course it would require that COM DLL would have a timer object and check for the "flag" file periodically.

Just a thought.


>Multithread dll was written on Visual FoxPro 7.0 and was registered as COM+ Application on Win2000 Server. An object of this component is created on a remote computer (client) in local network. Multithread dll opens a database on the server and performs queries or other procedures. The base is closed and the object is destroyed on the client after work is finished. It’s clear and correct.
> But if between a client and the server something bad happens, like problems with local net, the database on the server stays opened by the COM+ object. So we can’t open database exclusively to perform reindexation or something alike until the object is destroyed and the database is closed. We cannot destroy it in conventional way because the creator is disconnected and don’t have access to the server and so -- to the object. Win2000 destroys the object automatically in 11 minutes (experimental data). But it is too much – system administrator may want to open the database exclusively at any time!
>
>Looking in Windows – Administrative Tools – Computer Management – Open Files we can see that the user has opened files of the database.
>How to force Windows to close these files? Or any other ideas how to resolve the problem.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform