Program takes 30 seconds to shutdown 
Author Message
 Program takes 30 seconds to shutdown

I have a VB5 program that closes its main form, then hits the END, but
if you look at processes running with CTRL-ALT-DELETE, it is still there
for between 20-30 seconds.  Any ideas?

--
DigiBand Radio - The Future of Internet Radio
http://www.*-*-*.com/



Mon, 27 Mar 2000 03:00:00 GMT  
 Program takes 30 seconds to shutdown


Quote:
>it is still there for between 20-30 seconds

Do you have a timer control there, or other a TreeView, or other controls?
Timers should be disabled before termination of a program, and all objects
should be released (set to Nothing).

DoDi



Wed, 29 Mar 2000 03:00:00 GMT  
 Program takes 30 seconds to shutdown

I have this same problem, it started happening to me when I upgraded the
Internet Transfer Control to SP2.  If I go back to the original, the
problem goes away, but then the control doesn't work anymore.

David Schwener



Sat, 01 Apr 2000 03:00:00 GMT  
 Program takes 30 seconds to shutdown

Quote:


> >it is still there for between 20-30 seconds

> Do you have a timer control there, or other a TreeView, or other controls?
> Timers should be disabled before termination of a program, and all objects
> should be released (set to Nothing).

> DoDi

I think I've turned off all of the timers.  What kind of objects need to be set
to nothing?  I have lots of controls, on different forms.  Does every control on
any form need to be set to nothing?

--
DigiBand Radio - The Future of Internet Radio
http://www.digiband.com



Sat, 01 Apr 2000 03:00:00 GMT  
 Program takes 30 seconds to shutdown


Quote:
>What kind of objects need to be set
>to nothing?  I have lots of controls, on different forms.

Controls should be unloaded with the form, so no special precautions are
necessary besides with Timer controls, and perhaps Data controls, where you
can close the database before Unload. Perhaps also OLE containers can be
emptied. But you cannot set a control to Nothing, I think, and it's never
required.

DoDi



Mon, 03 Apr 2000 03:00:00 GMT  
 Program takes 30 seconds to shutdown

You nailed that one.  The Internet Transfer Control hangs until it's timeout
is reached.  So, when my program starts to shutdown, I'm setting
RequestTimeout for all Inet controls to 1.  It still takes 1 second, but
that is way better than 30.

Quote:

> I have this same problem, it started happening to me when I upgraded the
> Internet Transfer Control to SP2.  If I go back to the original, the
> problem goes away, but then the control doesn't work anymore.

> David Schwener

--
DigiBand Radio - The Future of Internet Radio
http://www.digiband.com


Sat, 08 Apr 2000 03:00:00 GMT  
 Program takes 30 seconds to shutdown


Quote:

>>What kind of objects need to be set
>>to nothing?  I have lots of controls, on different forms.

>Controls should be unloaded with the form, so no special precautions are
>necessary besides with Timer controls, and perhaps Data controls, where you
>can close the database before Unload. Perhaps also OLE containers can be
>emptied. But you cannot set a control to Nothing, I think, and it's never
>required.

>DoDi

Also when you create a form, let's say, and want to destroy that
object..   It would be something like:

Dim oNewForm as New frmMain

        oNewForm.Text1.Text = "Sending without seeing the form load.."
        oNewForm.Show 1
        MsgBox oNewForm.Text1.Text
        oNewForm = Nothing

L8r,
Chizl - CEO
Karland International
www.karland.com



Mon, 10 Apr 2000 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. createobject of Excel.Application.8 takes 30 seconds

2. MSComm when no modem it hangs for 30 seconds

3. 30 second timeout in Crystal.Net viewer or report

4. Data Environment command timeout exactly 30 seconds

5. DEMO development? - 30 day trial programming

6. Why Parity Change Takes 1/4 Second???

7. VBScript taking a few seconds why?...

8. It takes 3 seconds to empty treeview...

9. It takes 3 seconds to empty treeview...

10. Query takes 0 seconds in Query Analyzer, times out in VB

11. VB takes 4 second to load 14,380 customers into DB combo box

12. My eVB app takes 5 seconds to load

 

 
Powered by phpBB® Forum Software