Click here to Skip to main content
15,891,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pop of the tops Pin
Zizilamoroso12-Aug-02 1:02
Zizilamoroso12-Aug-02 1:02 
GeneralRe: pop of the tops Pin
Tomasz Sowinski12-Aug-02 1:09
Tomasz Sowinski12-Aug-02 1:09 
GeneralRe: pop of the tops Pin
Zizilamoroso12-Aug-02 1:20
Zizilamoroso12-Aug-02 1:20 
GeneralRe: pop of the tops Pin
Zizilamoroso12-Aug-02 1:26
Zizilamoroso12-Aug-02 1:26 
GeneralSDK version of LISTBOX Pin
zecodela12-Aug-02 0:21
zecodela12-Aug-02 0:21 
GeneralRe: SDK version of LISTBOX Pin
Tomasz Sowinski12-Aug-02 0:28
Tomasz Sowinski12-Aug-02 0:28 
GeneralPassing data to thread Pin
s_k11-Aug-02 23:01
s_k11-Aug-02 23:01 
GeneralRe: Passing data to thread Pin
Daniel Lohmann11-Aug-02 23:15
Daniel Lohmann11-Aug-02 23:15 
You are passing the thread data that has been allocated on the stack. This is a big no no, because these variables may have gone out of scope even before the thread starts execution.

Parameters to threads should always be created on the heap and freed by the thread that takes the parameter.


BTW: Does anybody know why WM_COPYDATA should not be used with PostMessage()? The MSDN are a bit unclear about the reasons and I have a feeling that it is just to make sure the sended data is valid unitl the target process has recieved it.

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralRe: Passing data to thread Pin
s_k11-Aug-02 23:36
s_k11-Aug-02 23:36 
GeneralRe: Passing data to thread Pin
Tomasz Sowinski11-Aug-02 23:40
Tomasz Sowinski11-Aug-02 23:40 
GeneralRe: Passing data to thread Pin
Daniel Lohmann12-Aug-02 2:24
Daniel Lohmann12-Aug-02 2:24 
Generalthreads and wotnots... Pin
l a u r e n11-Aug-02 22:57
l a u r e n11-Aug-02 22:57 
GeneralRe: threads and wotnots... Pin
Tomasz Sowinski11-Aug-02 23:04
Tomasz Sowinski11-Aug-02 23:04 
GeneralRe: threads and wotnots... Pin
l a u r e n12-Aug-02 4:19
l a u r e n12-Aug-02 4:19 
GeneralRe: threads and wotnots... Pin
Shog912-Aug-02 13:50
sitebuilderShog912-Aug-02 13:50 
QuestionHow to display graphic image in a dialog box? Pin
Solero11-Aug-02 22:45
Solero11-Aug-02 22:45 
AnswerRe: How to display graphic image in a dialog box? Pin
Tomasz Sowinski11-Aug-02 22:53
Tomasz Sowinski11-Aug-02 22:53 
QuestionCFileDialog interferes later used fopen? Pin
Janine11-Aug-02 21:11
Janine11-Aug-02 21:11 
AnswerRe: CFileDialog interferes later used fopen? Pin
Tomasz Sowinski11-Aug-02 23:17
Tomasz Sowinski11-Aug-02 23:17 
AnswerRe: CFileDialog interferes later used fopen? Pin
Anonymous11-Aug-02 23:56
Anonymous11-Aug-02 23:56 
GeneralRe: CFileDialog interferes later used fopen? Pin
Janine12-Aug-02 0:04
Janine12-Aug-02 0:04 
GeneralKey Stokes Pin
Kristian3311-Aug-02 21:06
Kristian3311-Aug-02 21:06 
GeneralRe: Key Stokes Pin
567890123411-Aug-02 21:16
567890123411-Aug-02 21:16 
GeneralRe: Key Stokes Pin
Kristian3311-Aug-02 21:58
Kristian3311-Aug-02 21:58 
GeneralRe: Key Stokes Pin
567890123411-Aug-02 22:18
567890123411-Aug-02 22:18 

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.