Click here to Skip to main content
15,905,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Heap error Pin
simoncoul5-Jun-07 5:44
simoncoul5-Jun-07 5:44 
QuestionRe: Heap error Pin
David Crow5-Jun-07 10:22
David Crow5-Jun-07 10:22 
AnswerRe: Heap error Pin
Matthew Faithfull5-Jun-07 5:50
Matthew Faithfull5-Jun-07 5:50 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 6:06
simoncoul5-Jun-07 6:06 
GeneralRe: Heap error Pin
Matthew Faithfull5-Jun-07 6:14
Matthew Faithfull5-Jun-07 6:14 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 6:33
simoncoul5-Jun-07 6:33 
AnswerRe: Heap error Pin
simoncoul5-Jun-07 8:10
simoncoul5-Jun-07 8:10 
GeneralRe: Heap error Pin
Matthew Faithfull5-Jun-07 8:55
Matthew Faithfull5-Jun-07 8:55 
This can happen if you have a memory overrun. If you allocate a buffer and then write beyond the end, or beginning, of it you can damage data belonging to the C Runtime. There used to be a classic example using stdio which blew up spectacularly. OMG | :OMG:
I would be interesting to know if it actually crashes in Release builds. If so you may just be damaging the gaurd bytes inserted between allocations in debug mode. This can happen with a very slight overrun, <= 4 bytes, and you'll get away with it often in debug except for the rude messages from the runtime. In Release it will very likely go bang.


Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: Heap error Pin
simoncoul5-Jun-07 9:53
simoncoul5-Jun-07 9:53 
GeneralRe: Heap error Pin
simoncoul5-Jun-07 9:58
simoncoul5-Jun-07 9:58 
GeneralRe: Heap error Pin
Matthew Faithfull5-Jun-07 10:28
Matthew Faithfull5-Jun-07 10:28 
GeneralRe: Heap error Pin
Michael Sadlon5-Jun-07 12:01
Michael Sadlon5-Jun-07 12:01 
GeneralRe: Heap error Pin
simoncoul6-Jun-07 3:56
simoncoul6-Jun-07 3:56 
GeneralRe: Heap error Pin
simoncoul6-Jun-07 4:03
simoncoul6-Jun-07 4:03 
AnswerRe: Heap error Pin
Stephen Hewitt5-Jun-07 14:33
Stephen Hewitt5-Jun-07 14:33 
GeneralRe: Heap error Pin
simoncoul6-Jun-07 8:41
simoncoul6-Jun-07 8:41 
QuestionUsing STL iterator as class member variable [modified] Pin
Anton1125-Jun-07 5:27
Anton1125-Jun-07 5:27 
AnswerRe: Using STL iterator as class member variable Pin
David Crow5-Jun-07 5:33
David Crow5-Jun-07 5:33 
GeneralRe: Using STL iterator as class member variable Pin
Anton1125-Jun-07 5:52
Anton1125-Jun-07 5:52 
AnswerRe: Using STL iterator as class member variable Pin
Arman S.5-Jun-07 5:55
Arman S.5-Jun-07 5:55 
GeneralRe: Using STL iterator as class member variable Pin
Anton1125-Jun-07 6:05
Anton1125-Jun-07 6:05 
QuestionTCPIP Socket error Pin
NorGUI5-Jun-07 4:59
NorGUI5-Jun-07 4:59 
QuestionRe: TCPIP Socket error Pin
David Crow5-Jun-07 5:27
David Crow5-Jun-07 5:27 
AnswerRe: TCPIP Socket error Pin
Mark Salsbery5-Jun-07 7:04
Mark Salsbery5-Jun-07 7:04 
QuestionDll used by app Pin
garfield1855-Jun-07 4:52
garfield1855-Jun-07 4:52 

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.