Click here to Skip to main content
16,006,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFinding PCI cards.... Pin
Trollslayer10-Dec-02 4:14
mentorTrollslayer10-Dec-02 4:14 
GeneralRe: Finding PCI cards.... Pin
Daniel Turini10-Dec-02 4:29
Daniel Turini10-Dec-02 4:29 
GeneralRe: Finding PCI cards.... Pin
Trollslayer10-Dec-02 8:36
mentorTrollslayer10-Dec-02 8:36 
GeneralRe: Finding PCI cards.... Pin
Iain Clarke, Warrior Programmer10-Dec-02 4:28
Iain Clarke, Warrior Programmer10-Dec-02 4:28 
GeneralRe: Finding PCI cards.... Pin
Nick Parker10-Dec-02 4:30
protectorNick Parker10-Dec-02 4:30 
GeneralRe: Finding PCI cards.... Pin
jhwurmbach10-Dec-02 5:31
jhwurmbach10-Dec-02 5:31 
GeneralCWinThread problems... Pin
RobJones10-Dec-02 4:12
RobJones10-Dec-02 4:12 
GeneralRe: CWinThread problems... Pin
Alvaro Mendez10-Dec-02 4:57
Alvaro Mendez10-Dec-02 4:57 
You're building UI thread, right? Are you sure they need UI threads, or can you just go with worker threads?

Anyway, my guess as to why they don't quit is because you're somehow tying up the threads' message pump. If no messages can be processed, then the WM_QUIT message will not be received and the thread will not end. I have no clue as to why it works fine on your box. It may help to show some code.

Also, 60 sounds like a high number of threads for one process. It seems like the CPU will be sitting there doing a lot of context switching while allocating time for all those threads. You may want to use a more efficient method, like a thread pool, to keep the max down, to say, 20 threads.

Regards,
Alvaro


Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
GeneralRe: CWinThread problems... Pin
RobJones10-Dec-02 5:15
RobJones10-Dec-02 5:15 
GeneralRe: CWinThread problems... Pin
valikac10-Dec-02 7:50
valikac10-Dec-02 7:50 
GeneralRe: CWinThread problems... Pin
Alvaro Mendez10-Dec-02 9:06
Alvaro Mendez10-Dec-02 9:06 
GeneralAVI files in windows 2000 Pin
daphna10-Dec-02 3:42
daphna10-Dec-02 3:42 
GeneralRich Edit and Decimal Tab Stops Pin
xanatos10-Dec-02 3:33
xanatos10-Dec-02 3:33 
Generalpositioning CPropertySheet dialog Pin
mariuszpopiolek10-Dec-02 2:36
mariuszpopiolek10-Dec-02 2:36 
GeneralRe: positioning CPropertySheet dialog Pin
Dominik Reichl10-Dec-02 2:51
Dominik Reichl10-Dec-02 2:51 
GeneralRe: positioning CPropertySheet dialog Pin
mariuszpopiolek10-Dec-02 7:46
mariuszpopiolek10-Dec-02 7:46 
GeneralCFileDialog trouble Pin
Andrew Medvedev10-Dec-02 1:27
Andrew Medvedev10-Dec-02 1:27 
GeneralRe: CFileDialog trouble Pin
User 665810-Dec-02 1:31
User 665810-Dec-02 1:31 
GeneralRe: CFileDialog trouble Pin
Andrew Medvedev10-Dec-02 1:35
Andrew Medvedev10-Dec-02 1:35 
GeneralRe: CFileDialog trouble Pin
Nitron10-Dec-02 3:17
Nitron10-Dec-02 3:17 
GeneralRe: CFileDialog trouble Pin
Andrew Medvedev10-Dec-02 22:45
Andrew Medvedev10-Dec-02 22:45 
GeneralRe: CFileDialog trouble Pin
Nitron11-Dec-02 6:39
Nitron11-Dec-02 6:39 
GeneralWindow flickering in Taskbar Pin
Ricky_TheBard10-Dec-02 1:16
Ricky_TheBard10-Dec-02 1:16 
GeneralRe: Window flickering in Taskbar Pin
Richard Green10-Dec-02 1:56
Richard Green10-Dec-02 1:56 
GeneralRe: Window flickering in Taskbar Pin
Ricky_TheBard10-Dec-02 6:26
Ricky_TheBard10-Dec-02 6:26 

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.