Link to home
Start Free TrialLog in
Avatar of gplana
gplanaFlag for Spain

asked on

How to debug a service in VB6

I have a problem in a Windows Service I created: when I call the StartService API function, it appears the typical Windows message saying the application crashed.

So I imagine I have a problem in the code that implements the service, but I don't know how can I debug. I created a log system (writing to a file) but the code inside the service doesn't write anything inside.

Could you show me any ideas to know how to debug this part of code ?

Many thanks.
ASKER CERTIFIED SOLUTION
Avatar of dlmichener
dlmichener

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gplana

ASKER


Sorry, but all controls under the debug tab appears disabled. The first option "Wait component creation" is checked (but disabled also).

I tried to put the breakpoint on the start service code, but it doesn't stops, because he calls another process (well, the same .exe program but with other parameters).
What I am doing for debugging the service is, Copy the source code into a GUI application and Start Service Code will be changed to a button click event. I hope you got what I mean.
Avatar of gplana

ASKER

Ok, the problem was I have more than one process and I were debugging the other one.

Thank you for your support.