Results 1 to 3 of 3

Thread: exit from application problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    israel
    Posts
    13
    every time i exit from the application that i made with VB its name still stay in the TASK WINDOWS so i cant open the application again
    beni y

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Could be a various number of things.

    Have you any references to Dll objects etc. If so you should be setting the refernce to nothing on Form Unload. You should do this anyway, for all objects.

    Database connection need to be closed and the refrences set to nothing.

    Is there a loop still running in the background. Often occurs if you have a DoEvents in the middle of a loop, and the user quits the program.
    Iain, thats with an i by the way!

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    'put this in all your exit routines
       Dim Form As Form
       For Each Form In Forms
          	Unload Form
          	Set Form = Nothing
       Next Form
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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