Volleynerd Knowledge Base

Tuesday, March 09, 2004


Bug in ATL 7 COM Server Code

The code in the ATL base class for AtlModule has a bug in the startup sequence.

As posted by this MS dude, PreMessageLoop fails to call CoResumeClassObjects( ) when running as a service. There is a missing section of code in the if/else around the m_bDelayShutdown var.

Fix, as shown in the posts, override the PreMessageLoop, call the base class, then if m_bDelayShutdown is set, call CoResumeClassObjects( ) yourself.

Google Groups: View Thread "Problem with ATL 7.0 service (HELP!)"

Google Groups: View Thread "But in ATL CAtlExeModuleT?"




Comments: Post a Comment

Home