Fast Notification in Service - WeOnlyDo Discussion board

Fast Notification in Service (wodWebServer / wodWebServer.NET)

by stitze, Tuesday, November 04, 2008, 17:51 (5653 days ago)

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

by woddrazen, Tuesday, November 04, 2008, 18:46 (5653 days ago) @ stitze

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

by stitze, Wednesday, November 05, 2008, 13:30 (5652 days ago) @ woddrazen

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

by woddrazen, Wednesday, November 05, 2008, 14:44 (5652 days ago) @ stitze

Hi,


Yes. Most probably reason why you are receiving error is because you don't have message map inside that thread.


Drazen