Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Intensive Computations Pin
markkuk27-Nov-02 23:53
markkuk27-Nov-02 23:53 
GeneralRe: Memory Intensive Computations Pin
Gary R. Wheeler30-Nov-02 3:16
Gary R. Wheeler30-Nov-02 3:16 
GeneralAbout socket input queue. Pin
TianYang27-Nov-02 22:44
TianYang27-Nov-02 22:44 
GeneralRe: About socket input queue. Pin
Peak28-Nov-02 0:34
Peak28-Nov-02 0:34 
Questiondynamic view ,how to deal with it????? Pin
owen_200127-Nov-02 22:26
owen_200127-Nov-02 22:26 
QuestionHow to Merge two floating dialogbar into one floating tabbed dialogbar? Pin
Yu_Matrix27-Nov-02 22:18
Yu_Matrix27-Nov-02 22:18 
Questionwhat's the API for deleting directories? Pin
devvvy27-Nov-02 21:34
devvvy27-Nov-02 21:34 
AnswerRe: what's the API for deleting directories? Pin
berndg27-Nov-02 21:49
berndg27-Nov-02 21:49 
GeneralRe: what's the API for deleting directories? Pin
KarstenK28-Nov-02 0:35
mveKarstenK28-Nov-02 0:35 
AnswerRe: what's the API for deleting directories? Pin
Rickard Andersson2028-Nov-02 7:41
Rickard Andersson2028-Nov-02 7:41 
GeneralCList, POSITION and template pointers Pin
Xavier Shay27-Nov-02 21:23
Xavier Shay27-Nov-02 21:23 
GeneralRe: CList, POSITION and template pointers Pin
Alexandru Savescu27-Nov-02 21:25
Alexandru Savescu27-Nov-02 21:25 
GeneralRe: CList, POSITION and template pointers Pin
Xavier Shay27-Nov-02 22:30
Xavier Shay27-Nov-02 22:30 
GeneralODBC question Pin
Niko Tanghe27-Nov-02 21:11
Niko Tanghe27-Nov-02 21:11 
GeneralMultiple Instance of an application.... Pin
Neha27-Nov-02 20:35
Neha27-Nov-02 20:35 
GeneralRe: Multiple Instance of an application.... Pin
Leedoriden27-Nov-02 20:56
Leedoriden27-Nov-02 20:56 
GeneralRe: Multiple Instance of an application.... Pin
Neha27-Nov-02 21:07
Neha27-Nov-02 21:07 
GeneralRe: Multiple Instance of an application.... Pin
Rohit  Sinha28-Nov-02 10:07
Rohit  Sinha28-Nov-02 10:07 
GeneralRe: Multiple Instance of an application.... Pin
Alvaro Mendez29-Nov-02 9:50
Alvaro Mendez29-Nov-02 9:50 
QuestionHow to Merge two floating dialogbar into one floating tabbed dialogbar? Pin
Yu_Matrix27-Nov-02 20:26
Yu_Matrix27-Nov-02 20:26 
GeneralDownload manager like flashget, download accelator etc Pin
YogeshH27-Nov-02 20:14
YogeshH27-Nov-02 20:14 
GeneralPerformance cost of IsBadReadPtr and IsBadWritePtr... Pin
Matt Gullett27-Nov-02 19:56
Matt Gullett27-Nov-02 19:56 
GeneralRe: Performance cost of IsBadReadPtr and IsBadWritePtr... Pin
Patje27-Nov-02 21:05
Patje27-Nov-02 21:05 
GeneralRe: Performance cost of IsBadReadPtr and IsBadWritePtr... Pin
Matt Gullett28-Nov-02 3:43
Matt Gullett28-Nov-02 3:43 
Thanks for the info.

I guess I need to just perform some testing and see how well it performs. I am most concerned with the performance on valid pointers so the overhead of exceptions for bad pointers isn't really an issue for me.

The particular application which lead me to the question is a Windows NT service I have written which powers a web site. I use the IsBadReadPtr/IsBadWritePtr functions in the release builds to insure stability. You are correct that just because IsBadXXXPtr returns false does not mean that you have a valid object. I also use dog-tags (similar to your suggestion of a checksum except that there is a tag at the beginning and the end of the class/struct) on the important structures and classes and validate them before accessing their data, again to insure stability.

I think I will do some performance testing and write an article on the results.
QuestionHow to deal with it ? thanks Pin
owen_200127-Nov-02 19:44
owen_200127-Nov-02 19:44 

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.