|
-
Sep 27th, 2003, 06:56 AM
#1
Thread Starter
Addicted Member
Form closing problem
when i click close in my program , it takes some 30-40 seconds before it closes ( the program is close but vb still shows the program in running mode ) , is that something normal for big programs or its a result of bad programming? what should i do?!
-
Sep 27th, 2003, 01:34 PM
#2
Sleep mode
Do you have any finalization code under Close button ? and also what's the nature of your proj ? I mean does it do some kind of graphics stuff and are there many controls on it ?
-
Sep 27th, 2003, 02:11 PM
#3
Thread Starter
Addicted Member
allot of controls, and its a client/server program, uses tcpclient,tcpserver ! when the client connents i have no problem , when the client side program is closing , i close the tcpclient object, but it still stays open for a while ( when server is closed , clients closes exactly the same moment ) , how are these two still connected when i closed the connection?!
-
Sep 27th, 2003, 02:52 PM
#4
Sleep mode
Maybe you could try Kill function !! and btw , did you use Application.Exit to close your app or you just use End ?
-
Sep 27th, 2003, 02:55 PM
#5
Thread Starter
Addicted Member
i dispose every object thats using computer resources , then just close , whats does application.exit do more ?
-
Sep 27th, 2003, 02:59 PM
#6
Sleep mode
From MS Help File :
Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed
This method stops all running message loops on all threads and closes all windows of the application. This method does not force the application to exit. The Exit method is typically called from within a message loop, and forces Run to return. To exit a message loop for the current thread only, call ExitThread.
-
Sep 27th, 2003, 03:08 PM
#7
Thread Starter
Addicted Member
sounds like its a solution, gotta try it, dont have vb arround now, thanks man, your allot of help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|