Fast Notification in Service (wodWebServer / wodWebServer.NET)
Hi,
I've included the wodWebServer COM in a MFC Windows Service Project. During service startup a CWinThread class is created by calling AfxBeginThread. Inside this thread I'm trying to use the fast notification interface of the wodWebServer component but my callbacks aren't called ... it looks like a deadlock.
Is it possible that the outgoing call to the notification class blocks because the call tries to reenter the STA of the webServer CoClass?
btw: I've copyied the FastNotification Sample (the sample is working) classes into my project.
Re: Fast Notification in Service
Hi,
Can you please zip and send us your project to:
techsupport@weonlydo.com
We will need to duplicate your problem in order to deal with it.
Drazen
Re: Fast Notification in Service
Found it.
It seems that the problem only occurs if we start the webserver inside the worker thread (AfxBeginThread) and try to handle the notifications there ... maybe because there's no message map inside the thread.
Re: Fast Notification in Service
Hi,
Yes. Most probably reason why you are receiving error is because you don't have message map inside that thread.
Drazen