Click here to Skip to main content
15,898,938 members
Home / Discussions / COM
   

COM

 
AnswerRe: Starting COM Pin
ShilpiP27-Sep-06 23:54
ShilpiP27-Sep-06 23:54 
AnswerRe: Starting COM Pin
Hamid_RT4-Oct-06 19:38
Hamid_RT4-Oct-06 19:38 
AnswerRe: Starting COM Pin
Nisamudheen4-Oct-06 23:11
Nisamudheen4-Oct-06 23:11 
QuestionProblem with Interface creation Pin
Sakthiu25-Sep-06 0:57
Sakthiu25-Sep-06 0:57 
QuestionRe: Problem with Interface creation Pin
prasad_som25-Sep-06 1:07
prasad_som25-Sep-06 1:07 
AnswerRe: Problem with Interface creation Pin
Sakthiu25-Sep-06 1:09
Sakthiu25-Sep-06 1:09 
GeneralRe: Problem with Interface creation Pin
prasad_som25-Sep-06 1:15
prasad_som25-Sep-06 1:15 
QuestionProblem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi24-Sep-06 23:23
kschi24-Sep-06 23:23 
My problem describes as follows:

A server module fires events through its COM interfaces.
For that the pointer to the interface is retrieved by GetInterfaceFromGlobal().

m_CPMTCritSec.Lock();

LPUNKNOWN pUnk = NULL;
DWORD dwGITCookie = (DWORD)(m_vec.GetAt(nConnectionIndex));

if (dwGITCookie != NULL)
{
IID iid;
GetConnectionInterface(&iid);
HRESULT hr = m_pGIT->GetInterfaceFromGlobal(
dwGITCookie, iid, reinterpret_cast<void **="">(&pUnk));
ATLASSERT(hr == S_OK);
}
m_CPMTCritSec.Unlock();

The client implements event dispinterfaces (IDispEventImpl) and establishs with DispAdvise() connections with the event sources.
When software starts up client and server are created, the server starts to fire events
and the client establishs connections and receives the events.
That works in most cases fine. But some times (10%) the software hangs.
The problem occurs always at the same situation:
the server is firing events and trys to get the interface pointer with GetInterfaceFromGlobal()
while the client trys to connect with DispAdvise().
AnswerRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon25-Sep-06 6:54
Zodiacon25-Sep-06 6:54 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi25-Sep-06 20:44
kschi25-Sep-06 20:44 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon25-Sep-06 21:24
Zodiacon25-Sep-06 21:24 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi26-Sep-06 2:06
kschi26-Sep-06 2:06 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
Zodiacon26-Sep-06 2:39
Zodiacon26-Sep-06 2:39 
GeneralRe: Problem with GetInterfaceFromGlobal() or IDispEventImpl::DispEventAdvise() Pin
kschi26-Sep-06 3:19
kschi26-Sep-06 3:19 
QuestionIntercepting file events. Pin
Geron24-Sep-06 21:28
Geron24-Sep-06 21:28 
AnswerRe: Intercepting file events. Pin
User 21559724-Sep-06 21:42
User 21559724-Sep-06 21:42 
GeneralRe: Intercepting file events. Pin
Geron24-Sep-06 22:17
Geron24-Sep-06 22:17 
AnswerRe: Intercepting file events. Pin
User 21559724-Sep-06 22:48
User 21559724-Sep-06 22:48 
QuestionHow do i create COM Interface ? Pin
Sakthiu21-Sep-06 18:53
Sakthiu21-Sep-06 18:53 
AnswerRe: How do i create COM Interface ? Pin
Stephen Hewitt21-Sep-06 18:59
Stephen Hewitt21-Sep-06 18:59 
GeneralRe: How do i create COM Interface ? Pin
ShilpiP28-Sep-06 0:00
ShilpiP28-Sep-06 0:00 
AnswerRe: How do i create COM Interface ? Pin
Hamid_RT28-Sep-06 9:09
Hamid_RT28-Sep-06 9:09 
QuestionRegSvr32 failed Pin
Will888888821-Sep-06 9:40
Will888888821-Sep-06 9:40 
AnswerRe: RegSvr32 failed Pin
Sakthiu21-Sep-06 18:50
Sakthiu21-Sep-06 18:50 
GeneralRe: RegSvr32 failed Pin
saania khan21-Sep-06 19:12
saania khan21-Sep-06 19:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.