Click here to Skip to main content
15,923,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalenumerating domain names & computers in each domain Pin
skpanda30-Jan-04 5:22
skpanda30-Jan-04 5:22 
GeneralRe: enumerating domain names & computers in each domain Pin
valikac30-Jan-04 6:16
valikac30-Jan-04 6:16 
GeneralRe: enumerating domain names & computers in each domain Pin
skpanda3-Feb-04 3:43
skpanda3-Feb-04 3:43 
GeneralAccessing XML data in the IWebBrowser2 object Pin
MistER-j30-Jan-04 5:14
MistER-j30-Jan-04 5:14 
GeneralRe: Creating a window on top of IWebBrowser2 control Pin
Neville Franks31-Jan-04 1:15
Neville Franks31-Jan-04 1:15 
GeneralPrint from a .dll Pin
nathanreynolds30-Jan-04 5:03
nathanreynolds30-Jan-04 5:03 
GeneralRe: Print from a .dll Pin
basementman30-Jan-04 9:47
basementman30-Jan-04 9:47 
Generalmulti threaded COM woes Pin
Jim Crafton30-Jan-04 4:36
Jim Crafton30-Jan-04 4:36 
I have created a ActiveX control using ATL.
The ATL control houses an MFC based control (that is use in other app). The ActiveX library also makes uses of some code that uses sockets and is multithreaded. The DLL itself is a CWinApp based class.
The problem is that when the DLL registers itself, all the initialization calls work fine, but when the closing ExitInstance call is made, it hangs while I try and clean up a thread, first telling the thread to stop, and then calling
WaitForSingleObject( threadHandle, INFINITE );
to wait till it's gone. This works fine when the code is used in an EXE, but used as part of the ActiveX DLL it just hangs.

Is there some trick I am missing to making an ATL based ActiveX control work with multiple worker threads?




¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

GeneralRe: multi threaded COM woes Pin
Diddy1-Feb-04 22:49
Diddy1-Feb-04 22:49 
GeneralPreventing Memory Leaks Pin
BrockVnm30-Jan-04 4:20
BrockVnm30-Jan-04 4:20 
GeneralRe: Preventing Memory Leaks Pin
John M. Drescher30-Jan-04 4:42
John M. Drescher30-Jan-04 4:42 
GeneralRe: Preventing Memory Leaks Pin
BrockVnm30-Jan-04 4:49
BrockVnm30-Jan-04 4:49 
GeneralRe: Preventing Memory Leaks Pin
John M. Drescher30-Jan-04 8:31
John M. Drescher30-Jan-04 8:31 
GeneralRe: Preventing Memory Leaks Pin
Maximilien30-Jan-04 5:03
Maximilien30-Jan-04 5:03 
GeneralRe: Preventing Memory Leaks Pin
Nemanja Trifunovic30-Jan-04 7:34
Nemanja Trifunovic30-Jan-04 7:34 
GeneralRe: Preventing Memory Leaks Pin
Ryan Binns30-Jan-04 17:32
Ryan Binns30-Jan-04 17:32 
GeneralDoubt in SHFileOperation !!! Pin
Ilamparithi30-Jan-04 4:10
Ilamparithi30-Jan-04 4:10 
GeneralRe: Doubt in SHFileOperation !!! Pin
Roger Allen30-Jan-04 4:15
Roger Allen30-Jan-04 4:15 
GeneralRe: Doubt in SHFileOperation !!! Pin
Ilamparithi30-Jan-04 4:27
Ilamparithi30-Jan-04 4:27 
GeneralRe: Doubt in SHFileOperation !!! Pin
John M. Drescher30-Jan-04 4:45
John M. Drescher30-Jan-04 4:45 
Generalcustom thumbnails for windows explorer Pin
bpChristoph30-Jan-04 4:05
bpChristoph30-Jan-04 4:05 
QuestionWhat is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 3:14
vmaltsev30-Jan-04 3:14 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Joel Lucsy30-Jan-04 3:23
Joel Lucsy30-Jan-04 3:23 
GeneralRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 3:53
vmaltsev30-Jan-04 3:53 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Mike Dimmick30-Jan-04 4:56
Mike Dimmick30-Jan-04 4:56 

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.