From: Gustaf N. <ne...@wu...> - 2014-10-23 10:45:46
|
Am 22.10.14 14:35, schrieb Andrew Piskorski: > Is this a separate problem, not a consequence of skipping some sort of > needed initialization because the initProc from ServiceMain() was NULL? no, it is something different: the actual code you posted is a sanity check between ifdefs for NDEBUG, which is meant just for development. It is a quick check to determine, whether the current thread looks suitable for running connection requests. By reading the code for windows "services", i see that the corresponding thread is named "-service-". I've extended the sanity check to include this value. if this is not sufficient, please report, what the returned threadName is. all the best -g |