Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionable Pin
yogendra kaushik4-Jun-06 23:06
yogendra kaushik4-Jun-06 23:06 
AnswerRe: able Pin
toxcct4-Jun-06 23:08
toxcct4-Jun-06 23:08 
GeneralRe: ableplz [modified] Pin
yogendra kaushik4-Jun-06 23:43
yogendra kaushik4-Jun-06 23:43 
AnswerRe: able Pin
Hamid_RT4-Jun-06 23:11
Hamid_RT4-Jun-06 23:11 
AnswerRe: able [modified] Pin
_AnsHUMAN_ 4-Jun-06 23:15
_AnsHUMAN_ 4-Jun-06 23:15 
QuestionWindow on Dialog Pin
Manjunath S4-Jun-06 22:56
Manjunath S4-Jun-06 22:56 
AnswerRe: Window on Dialog Pin
Hamid_RT4-Jun-06 23:08
Hamid_RT4-Jun-06 23:08 
AnswerRe: Window on Dialog [modified] Pin
_AnsHUMAN_ 4-Jun-06 23:08
_AnsHUMAN_ 4-Jun-06 23:08 
AnswerRe: Window on Dialog Pin
Nishad S4-Jun-06 23:16
Nishad S4-Jun-06 23:16 
QuestionRe: Window on Dialog Pin
Manjunath S4-Jun-06 23:16
Manjunath S4-Jun-06 23:16 
AnswerRe: Window on Dialog Pin
Nishad S4-Jun-06 23:22
Nishad S4-Jun-06 23:22 
QuestionRe: Window on Dialog Pin
Manjunath S4-Jun-06 23:31
Manjunath S4-Jun-06 23:31 
AnswerRe: Window on Dialog Pin
Nishad S4-Jun-06 23:49
Nishad S4-Jun-06 23:49 
AnswerRe: Window on Dialog Pin
_AnsHUMAN_ 4-Jun-06 23:24
_AnsHUMAN_ 4-Jun-06 23:24 
GeneralRe: Window on Dialog Pin
Nishad S4-Jun-06 23:27
Nishad S4-Jun-06 23:27 
AnswerRe: Window on Dialog Pin
_AnsHUMAN_ 4-Jun-06 23:31
_AnsHUMAN_ 4-Jun-06 23:31 
QuestionRe: Window on Dialog Pin
Manjunath S4-Jun-06 23:47
Manjunath S4-Jun-06 23:47 
Questionabout edit box Pin
yogendra kaushik4-Jun-06 22:55
yogendra kaushik4-Jun-06 22:55 
AnswerRe: about edit box Pin
_AnsHUMAN_ 4-Jun-06 22:59
_AnsHUMAN_ 4-Jun-06 22:59 
AnswerRe: about edit box Pin
Hamid_RT4-Jun-06 23:05
Hamid_RT4-Jun-06 23:05 
AnswerRe: about edit box Pin
ThatsAlok5-Jun-06 0:26
ThatsAlok5-Jun-06 0:26 
Questionconfused about system stack Pin
George_George4-Jun-06 22:54
George_George4-Jun-06 22:54 
AnswerRe: confused about system stack Pin
Viorel.5-Jun-06 0:19
Viorel.5-Jun-06 0:19 
GeneralRe: confused about system stack [modified] Pin
George_George5-Jun-06 1:38
George_George5-Jun-06 1:38 
GeneralRe: confused about system stack [modified] Pin
Viorel.5-Jun-06 2:05
Viorel.5-Jun-06 2:05 
In multithreading application each of the thread in the same process will have its own stack. (That's why the functions like CreateThread or _beginthread have an optional argument for stack's size).

But the heap area is common for all of the threads. As a result, access to common heap data, as well as to common data segment, must be "synchronized". When you build multithreading applications, it is important to specify the correct compiler options (like "Runtime library"), otherwise shared data will be unexpectedly corrupted.

Global and constant variables are allocated in data segment. Actually this segment can be divided into constant data and changeable data. Compiler can apply some microprocessor’s or OS features in order to detect violation of constant data.

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.