Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Win32::Daemon::CreateService to set autorecovery ?

by hackdaddy (Hermit)
on Dec 17, 2005 at 15:19 UTC ( [id://517493]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Win32::Daemon::CreateService to set autorecovery ?
in thread Win32::Daemon::CreateService to set autorecovery ?

C# is somewhat Perlish. (Well, I say that for any language that has a foreach loop.)

I've written Windows Services in C# before and it's rather straightforward. However, if you plan to write an installer for .NET Windows Services, that's another story. You have to reverse engineer working MSI's with Orca to see what the Visual Studio setup project is doing if you are building your project outside of Visual Studio. (Undocumented stuff, of course.)

Also there's a bug in v1.1 of .NET which causes deadlock when loading a DLL with .NET and native code. One too many entry points for the load libary call and your program just locks up. Nice... How the hell did they decide to ship .NET with that bug?

  • Comment on Re^3: Win32::Daemon::CreateService to set autorecovery ?

Replies are listed 'Best First'.
Re^4: Win32::Daemon::CreateService to set autorecovery ?
by renodino (Curate) on Dec 17, 2005 at 16:44 UTC
    Er, I'm not certain what C#/.NET/VS have to do w/ this particular issue ? If you check my update to Odd threads::shared behavior within a Win32::Daemon app, you'll see I have managed to get everything working, tho wo/ really understanding why my minor change fixes the problem. Thus far I've gotten 28 threads up and running as a Win32 service, and expect to start testing 50+ on a beefier server in the next few days.

    The only remaining area of concern I have is the autorecovery issue, which I already know how to fix (using plain old C/C++ and the new API I linked in my update in the OP), but don't have time at the moment.

    Admittedly, MSFT has once again made this process is a PITA, but once I figured it all out, it's not too bad. I spose I should writeup a little Meditation or Cool Uses article on the process.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://517493]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-23 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found