crash with CoUnintailize() api of COM
My main process(main.exe)开发者_如何学JAVA 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
Have you tried using CoInitializeEx()?
You should youse CoInitializeEx with COINIT_APARTMENTTHREADED.
精彩评论