Click to See Complete Forum and Search --> : Previnstance preperty is true afte unloading the App.


raghu123
April 4th, 2001, 03:50 AM
My application is an Activex Exe developed using VB6

When i am trying to unload and reload the application immedeately. The App.previnstance property is set to true sometimes. As a result My app becomes very slow. I get this problem in
Win2000 prefessional and sometimes in win2000 server

If i wait for 2- 3 min after unloading then the there is no problem it works fine.

Thank you in advance for the possible solutions.

John G Duffy
April 4th, 2001, 07:21 AM
If your program involves Databases, or some long running process, the close process for these databases, etc. may be still running even though your application has terminated. The close process for the database(s) is associated with your application. Hence your application will still be "running" even though the .exe file is completed.

John G

raghu123
April 4th, 2001, 11:06 PM
Thank you the help.

It is a database application where some forms uses ADO connection and rest uses DAO connection. The app is quite big in where we refer around 20 DLL's and at any point of time we are holding 3 -5 persistent connection with the database.

Is there is any way using API calls to detect the unwanted usage of connections and usage of other dlls?