Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvista-vs 2005 compatability Pin
beegu14-Feb-07 5:19
beegu14-Feb-07 5:19 
AnswerRe: vista-vs 2005 compatability Pin
toxcct14-Feb-07 6:02
toxcct14-Feb-07 6:02 
AnswerRe: vista-vs 2005 compatability Pin
Maximilien14-Feb-07 6:50
Maximilien14-Feb-07 6:50 
AnswerRe: vista-vs 2005 compatability Pin
Michael Dunn14-Feb-07 8:55
sitebuilderMichael Dunn14-Feb-07 8:55 
Questiondetect invalid reference Pin
Mr.Brainley14-Feb-07 5:10
Mr.Brainley14-Feb-07 5:10 
AnswerRe: detect invalid reference Pin
toxcct14-Feb-07 5:24
toxcct14-Feb-07 5:24 
GeneralRe: detect invalid reference Pin
Mr.Brainley14-Feb-07 5:35
Mr.Brainley14-Feb-07 5:35 
GeneralRe: detect invalid reference [modified] Pin
toxcct14-Feb-07 5:37
toxcct14-Feb-07 5:37 
what do you mean by "print non-sense" ? what do you expect ?

[edit]
oh, my bad, i read your post incorrectly (i read that you were printing out the address in the testVector pointer).

AFAIK, a reference cannot be changed of address, so by clearing the vector, then deleting it, you invalidate the reference. the only way you have to know the reference may be invalid is not writing such code.
i don't think we can know otherwise

BTW, it seems that you need some synchronizing code around your vector... one should not read it until another thread finished to modify it, and such references being temporary shouldn't be stored
[/edit]


GeneralRe: detect invalid reference Pin
Mr.Brainley14-Feb-07 5:54
Mr.Brainley14-Feb-07 5:54 
GeneralRe: detect invalid reference Pin
toxcct14-Feb-07 5:58
toxcct14-Feb-07 5:58 
GeneralRe: detect invalid reference Pin
David Crow14-Feb-07 5:43
David Crow14-Feb-07 5:43 
AnswerRe: detect invalid reference Pin
Michael Dunn14-Feb-07 8:57
sitebuilderMichael Dunn14-Feb-07 8:57 
GeneralRe: detect invalid reference Pin
Stephen Hewitt14-Feb-07 11:50
Stephen Hewitt14-Feb-07 11:50 
AnswerRe: detect invalid reference Pin
John R. Shaw14-Feb-07 11:08
John R. Shaw14-Feb-07 11:08 
AnswerRe: detect invalid reference Pin
Stephen Hewitt14-Feb-07 11:46
Stephen Hewitt14-Feb-07 11:46 
AnswerRe: detect invalid reference Pin
Nemanja Trifunovic14-Feb-07 14:34
Nemanja Trifunovic14-Feb-07 14:34 
QuestionC->C++ ported app - unresolved externals Pin
nadiric14-Feb-07 5:04
nadiric14-Feb-07 5:04 
AnswerRe: C->C++ ported app - unresolved externals Pin
nadiric14-Feb-07 5:17
nadiric14-Feb-07 5:17 
GeneralRe: C->C++ ported app - unresolved externals Pin
John R. Shaw14-Feb-07 8:39
John R. Shaw14-Feb-07 8:39 
QuestionRegistering ActiveX ctrls on PC & Embedded platforms Pin
Like2Byte14-Feb-07 3:34
Like2Byte14-Feb-07 3:34 
AnswerRe: Registering ActiveX ctrls on PC & Embedded platforms Pin
Like2Byte14-Feb-07 5:37
Like2Byte14-Feb-07 5:37 
QuestionArray pointer lost Pin
Renato Carvalho14-Feb-07 2:59
Renato Carvalho14-Feb-07 2:59 
AnswerRe: Array pointer lost [modified] Pin
prasad_som14-Feb-07 3:13
prasad_som14-Feb-07 3:13 
GeneralRe: Array pointer lost Pin
David Crow14-Feb-07 3:24
David Crow14-Feb-07 3:24 
GeneralRe: Array pointer lost Pin
prasad_som14-Feb-07 4:30
prasad_som14-Feb-07 4:30 

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.