473,511 Members | 14,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

app running as os service?

I received one additional piece of information which may help
(doesn't help me, but maybe it will help someone help me): someone
suggested that the application, or a part of it, begins running as a
service of the operating system. If this sounds plausible, where does
the problem likely originate? Is it some part of the program code, or
some program code that is not present (the app. has nothing in it that
attempts to identify its environment), or maybe something in the
project properties?

Thanks for any info.

Here is the relevant part of my original post:
I have a vb6 application which may have been started on Windows95
using an earlier vb version, definitely updated on Windows98(inc. SP
5). It is deployed on a machine running WindowsXP, and in this
environment the user can close the program, yet it (or some remnant of
it) remains listed in the Task Manager. This doesn't happen every time
user closes the program, and without looking at Task Manager it
appears the program is completely gone--no minimized windows in the
task bar, no error or warning messages.
Jul 17 '05 #1
2 2183
Thank you! I was all set to check this because I recalled a definite
lack of cleaning up in the program overall, but then "someone" (who
knows about Windows XP, about which I am ignorant) put me on the track
of something that sounded less tedious and more interesting...a
pitfall to be sure.
er*****@nowhere.com (J French) wrote in message news:<3f***************@news.btclick.com>...
On 7 Aug 2003 06:37:05 -0700, ka**@curio.com (Kate) wrote:
I received one additional piece of information which may help
(doesn't help me, but maybe it will help someone help me):

Someone
suggested that the application, or a part of it, begins running as a
service of the operating system.


'Someone' needs a remedial course

Your App is not unloading itself properly
- maybe an 'orphan' Form
- perhaps a Class ... or a UserControl
- Timers can sometimes be a problem

Track the Initialize and Terminate events of *everything*

Chances are that you have a silly little hidden Form
- but it can be nastier ....

Explicitly Kill everything you Create
- and check that it dies

f this sounds plausible, where does
the problem likely originate? Is it some part of the program code, or
some program code that is not present (the app. has nothing in it that
attempts to identify its environment), or maybe something in the
project properties?

Thanks for any info.

Here is the relevant part of my original post:
I have a vb6 application which may have been started on Windows95
using an earlier vb version, definitely updated on Windows98(inc. SP
5). It is deployed on a machine running WindowsXP, and in this
environment the user can close the program, yet it (or some remnant of
it) remains listed in the Task Manager. This doesn't happen every time
user closes the program, and without looking at Task Manager it
appears the program is completely gone--no minimized windows in the
task bar, no error or warning messages.

Jul 17 '05 #2
On 7 Aug 2003 16:01:04 -0700, ka**@curio.com (Kate) wrote:
Thank you! I was all set to check this because I recalled a definite
lack of cleaning up in the program overall, but then "someone" (who
knows about Windows XP, about which I am ignorant) put me on the track
of something that sounded less tedious and more interesting...a
pitfall to be sure.


At the very least put this in a 'cleanup' routine :

Dim F As Form
For Each F In Forms
Unload F
Next

That solves a lot of simple problems

It would also be wise to log the Initialize and Terminate Events of
all Forms, UserControls and Classes

Private cmnDebugHandle As Integer

Sub Form_Initialize
cmnDebugHandle = RegObj( "SomeName" )
End Sub

Sub Form_Terminate
UnRegObj cmnDebugHandle
End Sub

//
RegObj() and UnRegObj() can reside in a .BAS module in which you can
maintain a list of 'living' Objects

It is interesting to have a Debug option where you can MsgBox that
list - it saves a lot of grief - even in the medium term

HTH
Jul 17 '05 #3

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

Similar topics

13
2811
by: BK | last post by:
Can someone point me to a code sample that illustrates executing long running tasks (asynchronous) from a web application in ASP.NET? I assume that Web Services might come into play at some point,...
7
6904
by: Ross Presser | last post by:
OK, I've been researching this problem and can't find a definitive answer yet. The situation is one that seems to have come up a few times to different folks. I am writing an application that...
0
565
by: Martijn Remmen | last post by:
I have developed a service which exposes a COM object. This service is running perfect on Windows 2000 Server and Windows 2000 Professional under the SYSTEM account. When the service is...
3
1460
by: Kevin L | last post by:
How do I check to see if a particular service is running?
4
15901
by: Simon Verona | last post by:
My software relies on a third party data provider to a propretary database. In turn the third party database relies on a Windows Service that runs on the server to supply the data... The problem...
12
14501
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
8945
by: =?Utf-8?B?cnZhbmdlbGRyb3A=?= | last post by:
Hello, I have a problem with our OnlineBackupService.exe. This is a Windows Service which is built in .Net 1.1 and basically grabs files from the file system and will try to upload them using...
12
12783
by: Shadlan | last post by:
Hi. I need to know if a service is running on my server. Is there any PHP instruction that I can use to do this?
0
2897
by: Gordon | last post by:
On Oct 23, 9:43 am, Curtis <dye...@gmail.comwrote: if ($handle = fsockopen ('localhost', 80, $errnum, $errmsg, 1)) { echo ('A web server is running on this system<br>'); fclose ($handle); }...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
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
7430
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
7089
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
7517
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...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
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
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.