Services Programmed in Visual Basic

  • 16 years ago

    I'm looking in to writing an Application as a service using the Service OCX (want to use a one off ADO Connection and a few shell commands within the Service)


    For an example check out: -
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolectrl/html/msdn_ntsrvocx.asp


    But whilst researching stumbled across this which infers that Services programmed from VB are not the most reliable implementation: -
    http://support.microsoft.com/support/kb/articles/Q175/9/48.ASP


    There are other products around that claim to offer similar promise to the OCX but don't mention how they compare eg ActivePlus's ServiceMILL: -
    http://www.activeplus.com


    Overall I've written something that does what I want it to do (!?!?!) but is this going to be robust?, does anyone know if I can "go on holiday for a month" and come back and the thing still be running?


    Cheers Guys


    Tim

  • 16 years ago

    To be honest, I wouldn't trust VB... I've heard reports of too many problems!


    I would recommend writing the service in C++/VC++ or .NET.... However, if you have already written all of the code in VB, you might just want to put up with it... and see how reliable it actually is. Another possibility (and I don't know if this would work), would be to create a service in C++ or whatever, and then call a VB DLL... which has most of your existing code in it....

  • 16 years ago

    Thanks James
    That was the kind of answer I should have expected - I don't trust it either but from the purposes of RAD the service control is fantastic, but comes across as being too easy


    Tim

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila” - Mitch Ratcliffe