Click here to Skip to main content
15,895,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 7:24
DViggiano24-Jan-03 7:24 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:49
professionalChris Losinger24-Jan-03 7:49 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 7:46
professionalChris Losinger24-Jan-03 7:46 
GeneralRe: PIN Generation Algorithm Pin
Jamie Hale24-Jan-03 7:54
Jamie Hale24-Jan-03 7:54 
GeneralRe: PIN Generation Algorithm Pin
Chris Losinger24-Jan-03 8:01
professionalChris Losinger24-Jan-03 8:01 
GeneralRe: PIN Generation Algorithm Pin
DViggiano24-Jan-03 8:11
DViggiano24-Jan-03 8:11 
GeneralNon-MFC OLEDB / ADO Class Pin
Anonymous24-Jan-03 6:25
Anonymous24-Jan-03 6:25 
GeneralThread function graceful shutdown Pin
Anonymous24-Jan-03 6:11
Anonymous24-Jan-03 6:11 
Hi friends!!!

I've created a simple program, the main function of my program starts another thread and itself remain busy doing other things. Now at some point, my main program wants to "terminate" the thread "immediately" no matter whatever thread was doing. The problem is that my thread function uses lots of new/delete and regularly calls other functions that allocates/deallocates memory from the heap. I feal that if main program interrupt this thread in between using TerminateThread(), there may be memory leakages.

But i want my main program to exit this thread "immediately" and "gracefully"..what do you suggest ???


GeneralRe: Thread function graceful shutdown Pin
Ted Ferenc24-Jan-03 6:20
Ted Ferenc24-Jan-03 6:20 
GeneralRe: Thread function graceful shutdown Pin
Anonymous24-Jan-03 7:21
Anonymous24-Jan-03 7:21 
GeneralRe: Thread function graceful shutdown Pin
John M. Drescher24-Jan-03 7:34
John M. Drescher24-Jan-03 7:34 
GeneralRe: Thread function graceful shutdown Pin
Ted Ferenc24-Jan-03 7:43
Ted Ferenc24-Jan-03 7:43 
GeneralSmart ComboBox Pin
ns24-Jan-03 5:57
ns24-Jan-03 5:57 
GeneralRe: Smart ComboBox Pin
Ben Burnett24-Jan-03 17:31
Ben Burnett24-Jan-03 17:31 
GeneralRe: Smart ComboBox...THanks! Pin
ns27-Jan-03 4:35
ns27-Jan-03 4:35 
GeneralConfused Help!!!! Pin
nlecren24-Jan-03 5:25
nlecren24-Jan-03 5:25 
Generalcombobox in toolbar question HELP!!! Pin
ns24-Jan-03 4:43
ns24-Jan-03 4:43 
GeneralRe: combobox in toolbar question HELP!!! Pin
Gary Kirkham24-Jan-03 4:47
Gary Kirkham24-Jan-03 4:47 
GeneralRe: combobox in toolbar question HELP!!! Pin
HENDRIK R24-Jan-03 4:53
HENDRIK R24-Jan-03 4:53 
GeneralRe: combobox in toolbar question HELP!!! Pin
ns24-Jan-03 5:04
ns24-Jan-03 5:04 
Generalmap .clear() question Pin
ns24-Jan-03 3:50
ns24-Jan-03 3:50 
GeneralRe: map .clear() question Pin
ns24-Jan-03 4:02
ns24-Jan-03 4:02 
GeneralRe: map .clear() question Pin
benjymous24-Jan-03 4:12
benjymous24-Jan-03 4:12 
GeneralRe: map .clear() question Pin
ns24-Jan-03 4:27
ns24-Jan-03 4:27 
GeneralRe: map .clear() question Pin
jhwurmbach24-Jan-03 4:41
jhwurmbach24-Jan-03 4:41 

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.