CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mattl

Search: Search took 0.03 seconds.

  1. Replies
    16
    Views
    2,331

    Re: stop in Windows Service causes CRASH

    OK, windows services run off in the background of a system. They are executables that are started by the service control manager.

    They can be created by using the 'sc.exe' program.

    To create...
  2. Replies
    16
    Views
    2,331

    Re: stop in Windows Service causes CRASH

    in debug mode?

    Are you able to run this as a service in debug mode?

    That is news to me. How did you accomplish this?

    My understanding was debug and services dont mix...

    Let me know...
  3. Replies
    16
    Views
    2,331

    Re: stop in Windows Service causes CRASH

    OK, I added the prototyping and made the changes to the ServiceMain header and it still crashes, with the log file still indicating it is getting to the end.

    Worth a try though...

    Let me know...
  4. Replies
    16
    Views
    2,331

    Re: stop in Windows Service causes CRASH

    Sorry, I didnt answer your question.

    I didnt mean the sleep of the 1 second between checks for the stop request.

    It seems the service will crash more frequently if it is started and stopped...
  5. Replies
    16
    Views
    2,331

    Re: stop in Windows Service causes CRASH

    Thanks!

    Out of curiosity, I put this service onto a Windows 2K system and I cannot get it to crash there either. This crash is going to haunt me...
  6. Replies
    16
    Views
    2,331

    Re: stop in Windows Service causes CRASH

    OK, that's strange.

    I am using VC++ version 6.0

    And yes, I compiled it with just the 3 pieces attached and tried it and it crashed on the first stop. It doenst always crash on the first stop,...
  7. Replies
    16
    Views
    2,331

    Re: stop in Windows Service causes CRASH

    OK, here is a more stand-alone version. It should compile with just these pieces.

    The service will start ok and may stop ok the first couple of times. But, start and stop, then start and stop...
  8. Replies
    16
    Views
    2,331

    stop in Windows Service causes CRASH

    I am attempting to put logic into an existing service that will allow it to shutdown gracefully. As soon as I add the piece of code to recognize the service has been requested to shutdown the...
  9. Replies
    2
    Views
    2,457

    How to recognize a STOP in Windows Services

    I am writing a Service in 'C' which has lots of database activity. When the user requests to STOP the Service (within the Service Control Manager) the program simply halts. It does not matter what it...
  10. Replies
    1
    Views
    2,177

    How to recognize a STOP in windows Services

    I am writing a Service in 'C' which has lots of database activity. When the user requests to STOP the Service (within the Service Control Manager) the program simply halts. It does not matter what...
  11. Replies
    4
    Views
    698

    OK, now I see. I'll try it and see how it...

    OK, now I see.

    I'll try it and see how it goes...

    Thanks very much!

    Matt
  12. Replies
    4
    Views
    698

    Hi there, the GetModuleHandle(NULL); returns...

    Hi there, the
    GetModuleHandle(NULL);

    returns a handle to a module (HMODULE). I need to somehow get or create an instance for a window...

    Matt
  13. Replies
    4
    Views
    698

    creating a window instance in C

    I am writing a Windows Service and need to dummy a window to call my application. My Windows Service program has (and must have) a main() function instead of a WinMain function. The program that I...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured