tags:

views:

59

answers:

1

My main process(main.exe) initilaized COM library and created a thread which creates a new process(p1.exe) this new process is again initializing COM library and after making all references as zero unintialized COM here.. the unintailezed COM in the main process (i.e main.exe) also....

When i run p1.exe individually it is successful.. but it is crashing when i create a process for p1.exe from main.exe

A: 

Have you tried using CoInitializeEx()?
You should youse CoInitializeEx with COINIT_APARTMENTTHREADED.

vrrathod