473,472 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

application not closed properly

I have a few programs written that can't be closed completely.

I click on the 'x' and the form closes, but the program still shows
in task manager. I tried using Application.exit() in form_closing
event and it didn't work.

any suggestion please

Feb 12 '07 #1
3 1292
Are they your apps in Process list or do you create MS Office objects too
that aren't closing?

Are you using threading?

--
Newbie Coder
(It's just a name)
Feb 12 '07 #2
If there are threads running you have to close them all properly.

Maybe you have a socket open?

Make sure you hae something like

Socket.close()
Thread.abort()

before you close your app.

M.

"wanwan" <er*******@yahoo.comwrote in message
news:11*********************@a75g2000cwd.googlegro ups.com...
>I have a few programs written that can't be closed completely.

I click on the 'x' and the form closes, but the program still shows
in task manager. I tried using Application.exit() in form_closing
event and it didn't work.

any suggestion please

Feb 12 '07 #3
On Feb 12, 4:32 pm, "Miro" <miron...@golden.netwrote:
If there are threads running you have to close them all properly.

Maybe you have a socket open?

Make sure you hae something like

Socket.close()
Thread.abort()

before you close your app.

M.

"wanwan" <ericwa...@yahoo.comwrote in message

news:11*********************@a75g2000cwd.googlegro ups.com...
I have a few programs written that can't be closed completely.
I click on the 'x' and the form closes, but the program still shows
in task manager. I tried using Application.exit() in form_closing
event and it didn't work.
any suggestion please
ya, I forgot to stop a thread. Thanks.
Feb 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: aa | last post by:
I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters. Is there a similar...
0
by: MDB | last post by:
I have a strange problem. I recently made the leap from VB6 to VB.NE I built a simple test Windows application with 2 forms that logs into an Accounting system using its COM control. The reference...
1
by: Matt | last post by:
Hi everyone, I'm using the command mysqlcheck --all-databases --auto-repair --silent and I see these warnings (listed below) on a daily occurrence. Is mysqlcheck causing these warnings? I...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
10
by: vvenk | last post by:
Hello: When I tried to use an Access database, I get the following exception: Server Error in '/WebGrid' Application....
3
by: John Wildes | last post by:
Hello All I have an application that has one form. I start the application using a Application.Run(New frmMain) command in Sub Main(). When I exit, the exit menu Item simply does a Me.Close ....
10
by: Ricky W. Hunt | last post by:
I have written a close routine to handle an "Exit" button to close the application properly. How do I make sure this gets executed if the user closes it another way (by pressing the "X" in the...
3
by: mamin | last post by:
My application works under IIS 5.1 and is connected with oracle 9.2 database. After a few days of working it starts to work slower aned slower. I've checked connections with database if they are...
6
by: billiejoex | last post by:
Hi there. I'm setting up test suite for a project of mine. situations, if the socket is closed on the other end or not. I noticed that I can "detect" such state if a call to socket.read() returns...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.