CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    App not completely exiting?

    When I unload my application it all closes yet it remains in Task Manager as "Running". I have tried using End with no avail. I also checked for forms that may not have been closed. Is it possible that some components are keeping it running? Any ideas on how to determine what is keeping it running is greatly appreciated!

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: App not completely exiting?

    You have to check that all the form are closed and set to Nothing. That will release the memory. End statement does not release the memory.


    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: App not completely exiting?

    Iouri is right. And you should also set to nothing -before unloading forms!- all object/control/variable you created in your code with keyword "set..."
    ie:
    dim x as whatyouneed
    set x = whatyouneed
    or
    set x= new whatyouneed
    both required
    set x= nothing
    for a correct unload of form. Hope this help.


    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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