Re: Application Still In Use after Closing Main Form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Neelima Godugu (gneelima_at_HOTMAIL.COM)
Date: 08/30/04


Date: Mon, 30 Aug 2004 12:24:02 -0500

I am doing the following

1.Closing DB Connection
2. Main_Form.Close();

"Trollpower" <trollpower@gmx.de> wrote in message
news:abcbca9.0408270157.66836778@posting.google.com...
> What do you do to close/exit your app. I use Application.exit which work
great.
>
> Do you hide the Forms or do you close them (Form.Close() oder
Form.hide())?
>
> Greetings
>
> Jens
>
> "Neelima Godugu" <gneelima@HOTMAIL.COM> wrote in message
news:<uXAPQq7iEHA.3456@TK2MSFTNGP12.phx.gbl>...
> > Hi
> > I checked and there are no threads.
> > I also tried making frmEntityList the Startup class and it did not help.
> > Is there any way to detect what objects are still in use after the
> > application shutsdown?
> > Thanks
> >
> > "Chris Tacke, eMVP" <ctacke[at]OpenNETCF_dot_org> wrote in message
> > news:OQs$rF7iEHA.2688@TK2MSFTNGP15.phx.gbl...
> > > 1. The form is closed, not minimized? If it's a PPC and it has an
(X)
> > > instak of (ok) in the corner, then it's only minimized.
> > > 2. Are you running any worker threads that you don't stop befoer
leaving
> > the
> > > app?
> > >
> > > -Chris
> > >
> > >
> > > "Neelima Godugu" <gneelima@HOTMAIL.COM> wrote in message
> > > news:esYfhA7iEHA.3232@TK2MSFTNGP10.phx.gbl...
> > > > Hi
> > > > I am experiencing a weird issue.
> > > > I have an application that has multiple forms.The Startup class of
the
> > > > application is a Class(not a form) named Application.
> > > > I instantiate all forms in the static Main method of this class.
> > > > Finally I do
> > > > System.Windows.Forms.Application.Run(frmEntityList);
> > > > at the end of main method.
> > > >
> > > > To exit from the app I do the following
> > > >
> > > > 1. Close DB Connection
> > > > 2. frmEntityList.Close();
> > > >
> > > > The form disappears but the application is still in use. I verified
this
> > by
> > > > trying to overwrite the Application exe.
> > > >
> > > > I am baffled by this.
> > > >
> > > > Your help is appreciated.
> > > >
> > > > TIA
> > > > Neelima Godugu
> > > >
> > > >
> > >
> > >



Relevant Pages

  • Re: Restart SQL Server
    ... you should be closing the connection immediately after ... Leaving a single connection open and reused ... > on sql server errors, then next time an sql action is required I recreate ... >> Is it possible to detect or more importantly allow the app to continue to ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: A month with a Nokia n95 (long)
    ... and can't play. ... One of these days I will get around to writing a small app to do it all on the fly. ... HSDPA works well and you can have more than one internet connection going at once. ... For example I can use it as a modem for my laptop and also "listen again" to a Beeb radio programme. ...
    (uk.telecom.mobile)
  • Re: ADO Connection.Execute Method leaves Open SQL Process
    ... Have the App create a single ADODB.Connection object, ... requesting only one connection from a single ADO Connection ... Pool, thus if all requests are sequenced and not over-lapping ...
    (microsoft.public.vb.database.ado)
  • Re: ADO Connection.Execute Method leaves Open SQL Process
    ... your first paragraph where it talks about "a VB6 app". ... requesting only one connection from a single ADO Connection ... ' at this point a new SQL process HAS been created!! ...
    (microsoft.public.vb.database.ado)
  • Memory leak with ADO
    ... When the app runs through the loop 2k times about 16-30 megs ... procedure TForm1.SpeedButton1Click(Sender: TObject); ... Caption = 'Connection String' ... object Connection: TADOConnection ...
    (borland.public.delphi.database.ado)