Click here to Skip to main content
16,011,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAny alternative for IsBadReadPtr / IsBadWritePtr Pin
sw@thi11-Oct-07 3:03
sw@thi11-Oct-07 3:03 
AnswerRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Cedric Moonen11-Oct-07 3:25
Cedric Moonen11-Oct-07 3:25 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
sw@thi11-Oct-07 20:12
sw@thi11-Oct-07 20:12 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
JudyL_MD12-Oct-07 3:19
JudyL_MD12-Oct-07 3:19 
AnswerRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Matthew Faithfull11-Oct-07 3:32
Matthew Faithfull11-Oct-07 3:32 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Stephen Hewitt11-Oct-07 17:58
Stephen Hewitt11-Oct-07 17:58 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Matthew Faithfull11-Oct-07 23:22
Matthew Faithfull11-Oct-07 23:22 
GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Stephen Hewitt14-Oct-07 14:55
Stephen Hewitt14-Oct-07 14:55 
I’ve actually fallen victim to a stack guard-page corruption caused by the numerous calls to IsBadReadPtr and IsBadWritePtr in MFC. It wasn’t at all obvious that the memory page in question was on the stack and not the heap (it took ages to even discover that the guard page on the stack was corrupted); after all every local variable is on the stack and many such variables are passed “through” MFC. It took many weeks to debug the issue. Anyway, what’s the point of a function succeeding if it’s called with some random pointer and thus can’t access the data it needs to do its job? Don’t validate memory, crash! Then the source of the problem is staring you in the face instead of some problem far removed from the actual source.


Steve

GeneralRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
sw@thi11-Oct-07 20:22
sw@thi11-Oct-07 20:22 
QuestionRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
David Crow11-Oct-07 3:54
David Crow11-Oct-07 3:54 
AnswerRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
led mike11-Oct-07 4:12
led mike11-Oct-07 4:12 
QuestionRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
ThatsAlok11-Oct-07 4:08
ThatsAlok11-Oct-07 4:08 
AnswerRe: Any alternative for IsBadReadPtr / IsBadWritePtr Pin
Stephen Hewitt11-Oct-07 18:00
Stephen Hewitt11-Oct-07 18:00 
QuestionHow to access properties of ActiveX control in atl Pin
Rajesh_Yadav_8011-Oct-07 2:40
Rajesh_Yadav_8011-Oct-07 2:40 
GeneralRe: How to access properties of ActiveX control in atl Pin
Matthew Faithfull11-Oct-07 2:52
Matthew Faithfull11-Oct-07 2:52 
QuestionHow to send hex data to TCP socket using Winsock Pin
alofang11-Oct-07 2:35
alofang11-Oct-07 2:35 
AnswerRe: How to send hex data to TCP socket using Winsock Pin
ThatsAlok11-Oct-07 2:55
ThatsAlok11-Oct-07 2:55 
GeneralRe: How to send hex data to TCP socket using Winsock Pin
alofang11-Oct-07 4:13
alofang11-Oct-07 4:13 
QuestionBackground color Pin
ArielR11-Oct-07 2:33
ArielR11-Oct-07 2:33 
AnswerRe: Background color Pin
Nelek11-Oct-07 2:41
protectorNelek11-Oct-07 2:41 
GeneralRe: Background color Pin
ThatsAlok11-Oct-07 3:55
ThatsAlok11-Oct-07 3:55 
GeneralRe: Background color Pin
Stephen Hewitt11-Oct-07 18:42
Stephen Hewitt11-Oct-07 18:42 
GeneralRe: Background color Pin
ThatsAlok11-Oct-07 19:15
ThatsAlok11-Oct-07 19:15 
GeneralRe: Background color Pin
Stephen Hewitt11-Oct-07 19:18
Stephen Hewitt11-Oct-07 19:18 
AnswerRe: Background color Pin
ThatsAlok11-Oct-07 3:54
ThatsAlok11-Oct-07 3:54 

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.