Click here to Skip to main content
15,886,655 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi,

I am encountering a strange issue. Here is the jist of my code :

main_thread()
{

// create connection point

// save COM pointers in a map

// wait on a lock

// call fn1() which uses the map of COM pointers
}


connection_point_callback()
{
  // initialize COM with CoInitialize

  // call fn1() which uses the map of COM pointers

  // release the lock
}


In the above code, connection point call back function first calls fn1() and fails to send data from that. How-ever after it releases the lock, fn1() is called from main-thread and it successfully executes. i am using global interface table for transferring COM pointers between threads. I am not sure what else is going wrong. Please help me with your suggestions.

Thanks,
Shishir
Posted
Updated 27-Jan-11 5:52am
v3
Comments
Richard MacCutchan 27-Jan-11 16:23pm    
Did you happen to notice that you do not actually have any code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900