.Ldb file

rufen101
10-02-2003, 09:08 AM
A lock file(.ldb) is created when i create an ADO Connection to an Access database, wich is totaly normal. This lock file is usually deleted when the conenction is closed. My problem is that my app runs as a NT Service, and when i stop the service, it simply kills the process of my app. This way, the lock file does not get deleted. I'm looking for an event that i could use before the process gets kill, so i could close the ADO Connection.... any ideas

Thanks

Rufen

rufen101
10-02-2003, 11:21 AM
Here's a good example..
http://vbwire.com/advanced/howto/service.asp

Rufen

Flyguy
10-02-2003, 11:26 AM
When your processed is killed don't you get an event about getting killed, in which you can close all connections?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum