469,903 Members | 1,481 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Strange problem when running a Windows service using Windows Server 2003

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 installed on Windows 2003 Server, the application
works well, and the COM object can be called just as it's meant to be.
The service is however running under the IWAM account (I know strange
account to run a service).

However, after a while (from approximately 15 minutes till 2 days) the
service suddenly stops. I get an error message in the EventLog stating
the 'service terminated unexpectedly'. The Win32_exit_code = 1067.

First I added try catch exceptions around all code, and write the
exception to the eventlog. However no exceptions occur when the service
crashes.

Then I started the debugger of Visual Studio.NET and debugged the
service. This works well, but when the service crashes, only an error
message is displayed stating 'Application Error : The instruction at
"0x03ab186b" referenced memory at "0x03ab186b". The memory could not be
"read"' .

When I try to debug nothing happens.

It looks like Windows calls a method from the service that I have not
implemented. If I compare my code with a standard Windows Service
Framework as created by VS.NET 2003, I don't see anything strange.

Can someone point me in the right direction?

Thanks in advance,

Martijn Remmen
Oct 22 '05 #1
0 1977

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by MGB | last post: by
reply views Thread by Daniel O'Brien | last post: by
5 posts views Thread by Adam Kucharski | last post: by
3 posts views Thread by fred bliss | last post: by
3 posts views Thread by Jay-nospam | last post: by
3 posts views Thread by KNC | last post: by
1 post views Thread by =?Utf-8?B?S2F1c2hhbCBNZWh0YQ==?= | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.