Click here to Skip to main content
15,919,879 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWM_SHUTDOWN notification Win32 dll Pin
AssemblySoft22-Nov-04 23:58
AssemblySoft22-Nov-04 23:58 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
geo_m23-Nov-04 1:37
geo_m23-Nov-04 1:37 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
AssemblySoft23-Nov-04 10:43
AssemblySoft23-Nov-04 10:43 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
BaldwinMartin23-Nov-04 10:21
BaldwinMartin23-Nov-04 10:21 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
AssemblySoft23-Nov-04 10:40
AssemblySoft23-Nov-04 10:40 
GeneralRe: WM_SHUTDOWN notification Win32 dll Pin
BaldwinMartin23-Nov-04 10:46
BaldwinMartin23-Nov-04 10:46 
GeneralThread termination problem. Pin
ledallam22-Nov-04 21:38
ledallam22-Nov-04 21:38 
GeneralRe: Thread termination problem. Pin
Joaquín M López Muñoz22-Nov-04 22:35
Joaquín M López Muñoz22-Nov-04 22:35 
TerminateThread is guaranteed to leak every sort of resources the thread might have acquired. Do not use it ever for finalizing the thread, except in extreme circumstances.

So, try setting a stop event. In order to be able to handle this event while doing the ReadDirectoryChangesW stuff, you must perform the latter in overlapped mode (check the docs for ReadDirectoryChangesW): basically, the op is done asynchronously, and its completion is signalled through an event, so you can fire the operation and wait in one single WaitForMultipleObjects for both completion or the stopping event, whatever comes first.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Want a Boost forum in Code Project? Vote here[^]!
GeneralRe: Thread termination problem. Pin
ledallam22-Nov-04 22:47
ledallam22-Nov-04 22:47 
QuestionReBar - how to set button state on it? Pin
Darked developer22-Nov-04 20:57
Darked developer22-Nov-04 20:57 
AnswerRe: ReBar - how to set button state on it? Pin
Darked developer22-Nov-04 21:02
Darked developer22-Nov-04 21:02 
GeneralRe: ReBar - how to set button state on it? Pin
pc_dev22-Nov-04 21:13
pc_dev22-Nov-04 21:13 
Generalmodeless dialog Pin
pc_dev22-Nov-04 20:04
pc_dev22-Nov-04 20:04 
GeneralRe: modeless dialog Pin
BaldwinMartin23-Nov-04 10:22
BaldwinMartin23-Nov-04 10:22 
GeneralRe: modeless dialog Pin
pc_dev23-Nov-04 18:21
pc_dev23-Nov-04 18:21 
GeneralTimers and Threads Pin
asv22-Nov-04 19:31
asv22-Nov-04 19:31 
GeneralRe: Timers and Threads Pin
shiraztk22-Nov-04 20:58
shiraztk22-Nov-04 20:58 
GeneralRe: Timers and Threads Pin
David Crow23-Nov-04 3:09
David Crow23-Nov-04 3:09 
GeneralCFileDialog i want select only directories Pin
tiziacaia22-Nov-04 19:29
tiziacaia22-Nov-04 19:29 
GeneralRe: CFileDialog i want select only directories Pin
Michael Dunn22-Nov-04 19:43
sitebuilderMichael Dunn22-Nov-04 19:43 
GeneralRe: CFileDialog i want select only directories Pin
BlackDice23-Nov-04 2:44
BlackDice23-Nov-04 2:44 
GeneralAdding unicode support Pin
Shiva Prasad22-Nov-04 18:34
Shiva Prasad22-Nov-04 18:34 
Generalmfc mysteries Pin
the_augy22-Nov-04 16:47
the_augy22-Nov-04 16:47 
GeneralRe: mfc mysteries Pin
shiraztk22-Nov-04 18:01
shiraztk22-Nov-04 18:01 
GeneralRe: mfc mysteries Pin
the_augy26-Nov-04 19:45
the_augy26-Nov-04 19:45 

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.