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

C / C++ / MFC

 
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 
GeneralRe: detect invalid reference Pin
Mr.Brainley14-Feb-07 5:54
Mr.Brainley14-Feb-07 5:54 
Synchronization is of course neccessary (bad seplling ?!), but i want to keep it minimal, since too much synchronization can make a multithreaded application almost sequential, this voiding the advantage of multithreading.
It is also correct that the reference should not be stored, but experience tells us, that users always do whatever it takes to crash a program, or the library in that case. So i try to keep my code bulletproof.
My approach now is to write a wrapper-class that behaves like a reference, but checks on every access weather the elemennt/vector actually still exists. I'm not sure though if that is the smartest way to do it, it seems like a waste of resources.
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 
GeneralRe: Array pointer lost Pin
David Crow14-Feb-07 4:40
David Crow14-Feb-07 4:40 

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.