LWW and Delivering a NTSERVICE
Has anyone successfully made a LWW deliverable that runs as a NT Service? I have ported Franz's ntservice.cl to LW but have run into a a few snags. First I have to deliver the executable with :multiprocessing nil, if not the StartServiceCtrlDispatcher fails because of stack problems. I think it is because a multiprocessing deliverable does not run the "main" delivery entry point on the main stack. If I deliver with :multiprocessing nil than when I try to (mp:initialize-multiprocessing) it drops my main entry function into the top-level-repl (ugh). If I forgo multiprocessing I can get most everything to work but the service-control-handler fails because (I assume) it is called from another service manager thread into the LW image which does not have multiprocessing enabled. Any ideas? This is a long and involved problem which needs a lot moving parts to test and debug. Files attached. Wade