Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSwitching between installed languages ! Pin
Hadi Rezaee28-Aug-02 9:58
Hadi Rezaee28-Aug-02 9:58 
GeneralRe: Switching between installed languages ! Pin
Pavel Klocek28-Aug-02 10:51
Pavel Klocek28-Aug-02 10:51 
GeneralRe: Switching between installed languages ! Pin
Joaquín M López Muñoz28-Aug-02 10:55
Joaquín M López Muñoz28-Aug-02 10:55 
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 
Hi.

I am working on a winsock program that supports multiple connections simultaneously. For example, the user could connection to more than one server at any given time. The design works, but it fails if the user cancels. In other words, if the user lets the program finish doing work no matter how many connections the user has selected, then the program works. However, if the user cancels via cancel button that sets a status variable in the program to false, then the program begin closing all connections and closing all worker threads.

I am still trying to fingure out what causes the program to crash. Visual C++ outputs this error.

-----
Unhandled exception at 0x77f5111b in myProgram.exe: 0xC0000008: An invalid HANDLE was specified.
-----

Does anyone know what is a good place to start debugging this kind of error? I check all thread handle via WaitForSingleObject() before closing. I use a linked list to store the threads handles.

Thanks,
Kuphryn
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 
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 

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.