Click here to Skip to main content
15,911,890 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSize of exe file Pin
Anonymous26-Oct-03 4:55
Anonymous26-Oct-03 4:55 
GeneralRe: Size of exe file Pin
Gary R. Wheeler26-Oct-03 5:04
Gary R. Wheeler26-Oct-03 5:04 
GeneralRe: Size of exe file Pin
igor196026-Oct-03 9:57
igor196026-Oct-03 9:57 
GeneralRe: Size of exe file Pin
Gary R. Wheeler27-Oct-03 11:13
Gary R. Wheeler27-Oct-03 11:13 
GeneralArrays, heap, delete and crash again... Pin
Rickard Andersson2026-Oct-03 4:41
Rickard Andersson2026-Oct-03 4:41 
GeneralRe: Arrays, heap, delete and crash again... Pin
Gary R. Wheeler26-Oct-03 4:55
Gary R. Wheeler26-Oct-03 4:55 
GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 5:31
Jörgen Sigvardsson26-Oct-03 5:31 
GeneralRe: Arrays, heap, delete and crash again... Pin
Michael Dunn26-Oct-03 6:00
sitebuilderMichael Dunn26-Oct-03 6:00 
It's not a crash, it's an assertion failure. The CRT is telling you that you wrote past the end of the memory block that you allocated.

Here's how it works. When you new some memory, say 10 bytes, the CRT allocates more for its own use. So you'll get back something like this:
$$$$..........$$$$
    ^
    |
    returned pointer
Where the dots are your 10 bytes, and the $ are the extra memory. The $ bytes are set to 0xFD. When you delete the pointer, the CRT checks the $ bytes again, and if they are not all 0xFD, it asserts to let you know that you have an underrun/overrun error in your code.

--Mike--
Ericahist [updated Oct 26] | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Pinky, are you pondering what I'm pondering?
I think so Brain, but if we shaved our heads, we'd look like weasels!

GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 6:02
Jörgen Sigvardsson26-Oct-03 6:02 
GeneralRe: Arrays, heap, delete and crash again... Pin
Michael Dunn26-Oct-03 6:51
sitebuilderMichael Dunn26-Oct-03 6:51 
GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 12:07
Jörgen Sigvardsson26-Oct-03 12:07 
GeneralRe: Arrays, heap, delete and crash again... Pin
Rickard Andersson2026-Oct-03 11:55
Rickard Andersson2026-Oct-03 11:55 
GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 12:05
Jörgen Sigvardsson26-Oct-03 12:05 
GeneralRe: Arrays, heap, delete and crash again... Pin
Rickard Andersson2026-Oct-03 11:53
Rickard Andersson2026-Oct-03 11:53 
GeneralCompletely and Totally OT Pin
Atlantys27-Oct-03 10:43
Atlantys27-Oct-03 10:43 
GeneralRe: Completely and Totally OT Pin
Michael Dunn27-Oct-03 12:14
sitebuilderMichael Dunn27-Oct-03 12:14 
GeneralRe: Completely and Totally OT Pin
Atlantys27-Oct-03 14:08
Atlantys27-Oct-03 14:08 
GeneralRe: Completely and Totally OT Pin
Michael Dunn27-Oct-03 14:39
sitebuilderMichael Dunn27-Oct-03 14:39 
GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 5:37
Jörgen Sigvardsson26-Oct-03 5:37 
GeneralRe: Arrays, heap, delete and crash again... Pin
Rickard Andersson2026-Oct-03 12:26
Rickard Andersson2026-Oct-03 12:26 
GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 12:30
Jörgen Sigvardsson26-Oct-03 12:30 
GeneralVC++ Runtime Installation Error Pin
Roger Wright26-Oct-03 4:20
professionalRoger Wright26-Oct-03 4:20 
GeneralRe: VC++ Runtime Installation Error Pin
Gary R. Wheeler26-Oct-03 4:26
Gary R. Wheeler26-Oct-03 4:26 
GeneralWS_CLIPSIBLINGS problem Pin
DaFrawg26-Oct-03 3:03
DaFrawg26-Oct-03 3:03 
GeneralRe: WS_CLIPSIBLINGS problem Pin
Gary R. Wheeler26-Oct-03 4:28
Gary R. Wheeler26-Oct-03 4:28 

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.