Dart Home | PowerTCP WebServer for ActiveX | Custom Development | Reply | PowerTCP WebServer for ActiveX Topics | Forums |
Author | Forum: PowerTCP WebServer for ActiveX Topic: Service mode terminates right after start |
chris@digitalinsights.com From: San Clemente, CA USA Posts: 73 Member Since: 11/03/03 |
posted April 1, 2004 4:37 PM I have an application that will start on every computer in service mode except one. The application will run in "normal" mode, but when I turn it on in service mode, it immediately returns back with a popup box saying "Error 1067", the process terminated unexpectedly. The program gets beyond the .connect, but then seems to terminate on its own. If I put a trace log in the Service1_Error event, the Description returned is "Unknown Error". Two applications on the same computer that was using the service mode both will not start. Any places to look? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 1, 2004 5:28 PM I got a ton of hits on google. You might to start there: http://groups.google.com/groups?q=service+%2B+1067+%2B+error&ie=UTF-8&oe=UTF-8&hl=en |
chris@digitalinsights.com From: San Clemente, CA USA Posts: 73 Member Since: 11/03/03 |
posted April 2, 2004 1:39 PM Tony, thanks for the info. There were a bizzillion of entries there. Unfortunitely it did not help. Here is what I have found since though. The problem is when I send a message via the .log method. If I start the service and not put the .log entry in the STATE event when the service starts, everything works great. The instant I do a .log method though, the Service1_Error event starts firing, and then the application shuts down. The "An Unknown Error Has Occurred" message is the only thing that comes up. The problem seems to be with the control not able to send a message to the event log. What can I look at? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 5, 2004 8:56 AM I would start by looking at what's different between the one machine where it fails and the rest of the machines where it works. There has to be something fundamentally different, like OS or the way the service is started. |
chris@digitalinsights.com From: San Clemente, CA USA Posts: 73 Member Since: 11/03/03 |
posted April 5, 2004 11:37 AM The problem is that the machine that the control is working on worked great up until recently. There is nothing different about this machine, the OS is the same, even the applications on it are the same as others. Do you know what support files are needed for the service control to write out a log (.log method) to the event viewer? It must be a simple area in your code that does this, so is there any way I can turn on a debug mode on your control to understand better what it is trying to do? The general error that is being returned is not good enough. Thanks Chris Lewis |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 5, 2004 12:33 PM All we do is call the Windows API function "ReportEvent". The only support files you need would already be part of the operating system (unless you aren't using an "NT" based OS, in which case there would be no services anyway) Unfortunately there is no way for you to turn on a "debug mode" with our DLL. You statement that "There is nothing different about this machine" cannot be entirely true. The only thing you can state definitely is that the DartService control has not changed. If it was working great until recently and nothing changed in our DLL then something must have changed in you system. Have you tried clearing the event log? Maybe it's full? |
chris@digitalinsights.com From: San Clemente, CA USA Posts: 73 Member Since: 11/03/03 |
posted April 6, 2004 7:06 PM Tony, telling me about the ReportEvent API call was the key. I wrote a small program that did this and put it on the machine in question. It turned out the System Log was full. I was always looking at the Application Log to see if it was full. Too back that even the ReportEvent API does not return anything saying the event log is full. Sorry for the run-a-round. But one thing I learned is not to put a .LOG method inside the ERROR event! |
Reply | PowerTCP WebServer for ActiveX Topics | Forums |
This site is powered by
![]() |