CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Posts
    2

    Previnstance preperty is true afte unloading the App.

    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.


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Previnstance preperty is true afte unloading the App.

    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

  3. #3
    Join Date
    Apr 2001
    Posts
    2

    Re: Previnstance preperty is true afte unloading the App.

    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?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured