调了半天,总算找到问题了,我想呢,怎么可能资源泄露用到的成员变量ISynchronize不能按照常规的做法,在析构函数中Release,必须先Release智能指针好像也可以,atl不熟,不知道具体什么时候Release的因为,http://msdn.microsoft.com/en-us/magazine/cc301334.aspx,《COM+ Programming: A Practical Guide Using Visual C++ and ATL》,里面的图再清楚不过了asynchronous call复杂是复杂,还分client和server,不过自己能控制的不多,都是系统在做
无语,ISynchronize又搞了半天,实现了还是要用系统的 Your ISynchronize interface is used only if your call object is not aggregated by the stub. This only happens if your call object resides in the same apartment as the thread that calls ICallFactory::CreateCall.
--------------------------------------------
不是很明白,创建异步对象时候,为什么想要执行析构函数?哪个类的析构函数?
Your ISynchronize interface is used only if your call object is not aggregated by the stub. This only happens if your call object resides in the same apartment as the thread that calls ICallFactory::CreateCall.