Click here to Skip to main content
15,790,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why this is not failing in VC6 Pin
Sameer_Thakur31-May-06 1:04
Sameer_Thakur31-May-06 1:04 
GeneralRe: Why this is not failing in VC6 Pin
BadKarma31-May-06 1:05
BadKarma31-May-06 1:05 
AnswerRe: Why this is not failing in VC6 Pin
Sarath C31-May-06 0:57
Sarath C31-May-06 0:57 
GeneralRe: Why this is not failing in VC6 Pin
NiceNaidu31-May-06 1:01
NiceNaidu31-May-06 1:01 
AnswerRe: Why this is not failing in VC6 Pin
Sarath C31-May-06 1:02
Sarath C31-May-06 1:02 
AnswerRe: Why this is not failing in VC6 Pin
Michael Dunn31-May-06 3:06
sitebuilderMichael Dunn31-May-06 3:06 
QuestionWhy "new" operator is "thread_safe" ? Pin
Ajax9531-May-06 0:17
Ajax9531-May-06 0:17 
AnswerRe: Why "new" operator is "thread_safe" ? Pin
BadKarma31-May-06 0:40
BadKarma31-May-06 0:40 
you are correct, the second sample is NOT threadsafe. Its worse there can also be a memory leak

You should protect the creation with a critical section.
But beware, it is not because the creation of your singleton is threadsafe that the data the singleton wraps will be threadsafe.

codito ergo sum
AnswerRe: Why "new" operator is "thread_safe" ? Pin
Nemanja Trifunovic31-May-06 2:28
Nemanja Trifunovic31-May-06 2:28 
QuestionC++ and ADO problem Pin
antonaras30-May-06 23:58
antonaras30-May-06 23:58 
AnswerRe: C++ and ADO problem Pin
NiceNaidu31-May-06 0:05
NiceNaidu31-May-06 0:05 
GeneralRe: C++ and ADO problem Pin
antonaras31-May-06 0:09
antonaras31-May-06 0:09 
GeneralRe: C++ and ADO problem Pin
antonaras31-May-06 1:04
antonaras31-May-06 1:04 
GeneralRe: C++ and ADO problem Pin
NiceNaidu31-May-06 1:12
NiceNaidu31-May-06 1:12 
AnswerRe: C++ and ADO problem Pin
echozeng31-May-06 6:24
echozeng31-May-06 6:24 
QuestionSet Windows login authentication option programmatically Pin
QuickDeveloper30-May-06 23:20
QuickDeveloper30-May-06 23:20 
AnswerRe: Set Windows login authentication option programmatically Pin
Ștefan-Mihai MOGA30-May-06 23:43
professionalȘtefan-Mihai MOGA30-May-06 23:43 
AnswerRe: Set Windows login authentication option programmatically [modified] Pin
_anil_30-May-06 23:44
_anil_30-May-06 23:44 
GeneralRe: Set Windows login authentication option programmatically [modified] Pin
narayanagvs31-May-06 0:30
narayanagvs31-May-06 0:30 
GeneralRe: Set Windows login authentication option programmatically [modified] Pin
_anil_31-May-06 0:44
_anil_31-May-06 0:44 
GeneralRe: Set Windows login authentication option programmatically [modified] Pin
narayanagvs31-May-06 1:26
narayanagvs31-May-06 1:26 
GeneralRe: Set Windows login authentication option programmatically [modified] Pin
_anil_31-May-06 2:06
_anil_31-May-06 2:06 
GeneralRe: Set Windows login authentication option programmatically [modified] Pin
narayanagvs31-May-06 3:34
narayanagvs31-May-06 3:34 
QuestionTime Pin
Try30-May-06 23:11
Try30-May-06 23:11 
AnswerRe: Time Pin
Nibu babu thomas30-May-06 23:19
Nibu babu thomas30-May-06 23:19 

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.