Click here to Skip to main content
16,008,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Switching between installed languages ! Pin
Chris Losinger28-Aug-02 11:12
professionalChris Losinger28-Aug-02 11:12 
GeneralRe: Switching between installed languages ! Pin
Joaquín M López Muñoz28-Aug-02 11:20
Joaquín M López Muñoz28-Aug-02 11:20 
GeneralRe: Switching between installed languages ! Pin
Chris Losinger28-Aug-02 11:22
professionalChris Losinger28-Aug-02 11:22 
GeneralRe: Switching between installed languages ! Pin
Joaquín M López Muñoz28-Aug-02 11:40
Joaquín M López Muñoz28-Aug-02 11:40 
GeneralUnhandled Exception & Winsock :: Winsock Pin
valikac28-Aug-02 9:25
valikac28-Aug-02 9:25 
GeneralRe: Unhandled Exception & Winsock :: Winsock Pin
Rohit  Sinha28-Aug-02 10:42
Rohit  Sinha28-Aug-02 10:42 
GeneralRe: Unhandled Exception & Winsock :: Winsock Pin
Joaquín M López Muñoz28-Aug-02 10:43
Joaquín M López Muñoz28-Aug-02 10:43 
GeneralRe: Unhandled Exception & Winsock :: Winsock Pin
valikac28-Aug-02 17:29
valikac28-Aug-02 17:29 
Okay. Thanks everyone. I know the problem and has implemented a working solution.

Joaquín M López Muñoz was right on the right track about the threads closing simultaneously. I did in fact set all threads to INVALID_HANDLE_VALUE and checked them all using WaitForSingleObject().

The problem has to do with collapsing all sockets and threads as the user cancels a process. A solution I now use is to close each socket which means all their worker threads after their threads ends and sends a messages to main frame for closing. In other words, instead of stepping through all sockets in the linked list and closing them and their worker threads, now the program waits for them to end since I am using a boolean variable to indicate cancelation. This solution works flawlessly.

Kuphryn
GeneralUnicode, MBCS, DBCS... Pin
devvvy28-Aug-02 9:13
devvvy28-Aug-02 9:13 
GeneralRe: Unicode, MBCS, DBCS... Pin
Paul M Watt28-Aug-02 9:42
mentorPaul M Watt28-Aug-02 9:42 
GeneralRe: Unicode, MBCS, DBCS... Pin
devvvy28-Aug-02 9:44
devvvy28-Aug-02 9:44 
GeneralRe: Unicode, MBCS, DBCS... Pin
Michael Dunn28-Aug-02 10:11
sitebuilderMichael Dunn28-Aug-02 10:11 
Generaladding external dependencies Pin
pnpfriend28-Aug-02 9:05
pnpfriend28-Aug-02 9:05 
GeneralRe: adding external dependencies Pin
Paul M Watt28-Aug-02 9:45
mentorPaul M Watt28-Aug-02 9:45 
GeneralRe: adding external dependencies Pin
pnpfriend28-Aug-02 10:41
pnpfriend28-Aug-02 10:41 
GeneralRe: adding external dependencies Pin
Stuart Dootson28-Aug-02 21:09
professionalStuart Dootson28-Aug-02 21:09 
GeneralRe: adding external dependencies Pin
.dan.g.28-Aug-02 21:32
professional.dan.g.28-Aug-02 21:32 
GeneralInitializing data structure Pin
Todd Smith28-Aug-02 8:31
Todd Smith28-Aug-02 8:31 
GeneralRe: Initializing data structure Pin
Maciej Pirog28-Aug-02 9:35
Maciej Pirog28-Aug-02 9:35 
GeneralRe: Initializing data structure Pin
Todd Smith28-Aug-02 12:42
Todd Smith28-Aug-02 12:42 
GeneralRe: Initializing data structure Pin
Maciej Pirog29-Aug-02 2:34
Maciej Pirog29-Aug-02 2:34 
GeneralRe: Initializing data structure Pin
jhwurmbach29-Aug-02 2:43
jhwurmbach29-Aug-02 2:43 
GeneralRe: Initializing data structure Pin
Maciej Pirog29-Aug-02 3:53
Maciej Pirog29-Aug-02 3:53 
GeneralON_MESSAGE .NET Issue Pin
Ryan B.28-Aug-02 8:01
Ryan B.28-Aug-02 8:01 
GeneralRe: ON_MESSAGE .NET Issue Pin
Fazlul Kabir28-Aug-02 8:46
Fazlul Kabir28-Aug-02 8:46 

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.