Click here to Skip to main content
15,917,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: WS_CLIPSIBLINGS problem Pin
DaFrawg27-Oct-03 1:47
DaFrawg27-Oct-03 1:47 
GeneralRe: WS_CLIPSIBLINGS problem Pin
Gary R. Wheeler27-Oct-03 11:17
Gary R. Wheeler27-Oct-03 11:17 
GeneralRe: WS_CLIPSIBLINGS problem Pin
DaFrawg27-Oct-03 22:55
DaFrawg27-Oct-03 22:55 
GeneralC++ Question. Pin
WREY26-Oct-03 2:54
WREY26-Oct-03 2:54 
GeneralRe: C++ Question. Pin
Andrew Walker26-Oct-03 3:31
Andrew Walker26-Oct-03 3:31 
WREY wrote:
If I have an array of pointers to objects (class objects created using "new"), are the state of those objects preserved?

So long as the array hasn't gone out of scope, then yes your objects have been preserved. If they have gone out of scope you have a memory leak, and the memory you are writing / reading to or from may or may not contain your objects - you should assume it doesn't! Sometimes running in debug mode can hide things like that.




If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

GeneralRe: C++ Question. Pin
WREY26-Oct-03 4:51
WREY26-Oct-03 4:51 
GeneralRe: C++ Question. Pin
Gary R. Wheeler26-Oct-03 4:53
Gary R. Wheeler26-Oct-03 4:53 
GeneralRe: C++ Question. Pin
WREY26-Oct-03 11:25
WREY26-Oct-03 11:25 
GeneralRe: C++ Question. Pin
Ravi Bhavnani26-Oct-03 5:25
professionalRavi Bhavnani26-Oct-03 5:25 
GeneralCreate Snapshot for MS ACCESS Pin
Azghar Hussain26-Oct-03 2:23
professionalAzghar Hussain26-Oct-03 2:23 

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.