Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strcpy and CString question Pin
Jon Hulatt1-Oct-02 5:34
Jon Hulatt1-Oct-02 5:34 
GeneralRe: strcpy and CString question Pin
Ravi Bhavnani1-Oct-02 6:54
professionalRavi Bhavnani1-Oct-02 6:54 
GeneralRe: strcpy and CString question Pin
Michael Dunn1-Oct-02 7:50
sitebuilderMichael Dunn1-Oct-02 7:50 
GeneralDocument/View startup problem Pin
will13831-Oct-02 4:32
will13831-Oct-02 4:32 
GeneralRe: Document/View startup problem Pin
Tomasz Sowinski1-Oct-02 5:58
Tomasz Sowinski1-Oct-02 5:58 
GeneralRe: Document/View startup problem Pin
will13831-Oct-02 6:46
will13831-Oct-02 6:46 
GeneralRe: Document/View startup problem Pin
Tomasz Sowinski1-Oct-02 6:55
Tomasz Sowinski1-Oct-02 6:55 
GeneralRe: Document/View startup problem Pin
will13831-Oct-02 7:29
will13831-Oct-02 7:29 
I have several Objects that are instantiated upon the opening of a new document to store the data in the formats I need. So I'm creating them dynamically using new. In the OnCloseDocument, I'm cleaning up the "mess" from the current document by checking to see if the pointers are null (basic assertions) and if not null, then I call delete <class> to clean out the memory.

What was happening is the document went away along with the pointers, so those pointers I was cleaning up were pointing out in no-man's land resulting in the memory access error I was having.

Once again, thanks.

Dan
GeneralRe: Document/View startup problem Pin
Tomasz Sowinski1-Oct-02 8:23
Tomasz Sowinski1-Oct-02 8:23 
QuestionWhy does my app close right after starting if i add an IP Address Control? Pin
Anonymous1-Oct-02 4:32
Anonymous1-Oct-02 4:32 
AnswerRe: Why does my app close right after starting if i add an IP Address Control? Pin
Nish Nishant1-Oct-02 5:02
sitebuilderNish Nishant1-Oct-02 5:02 
GeneralString in constructor Pin
Derrick Flannigan1-Oct-02 4:24
Derrick Flannigan1-Oct-02 4:24 
GeneralRe: String in constructor Pin
KarstenK1-Oct-02 4:39
mveKarstenK1-Oct-02 4:39 
GeneralRe: String in constructor Pin
Jon Hulatt1-Oct-02 5:37
Jon Hulatt1-Oct-02 5:37 
QuestionHow to Find the parent application Pin
Ranjan Banerji1-Oct-02 4:11
Ranjan Banerji1-Oct-02 4:11 
GeneralClose button Pin
suresh_sathya1-Oct-02 3:26
suresh_sathya1-Oct-02 3:26 
GeneralRe: Close button Pin
Maximilien1-Oct-02 3:37
Maximilien1-Oct-02 3:37 
GeneralRe: Close button Pin
lucy1-Oct-02 3:58
lucy1-Oct-02 3:58 
GeneralOwner drawn CButton position detection Pin
Merle Pittman1-Oct-02 3:12
Merle Pittman1-Oct-02 3:12 
GeneralRe: Owner drawn CButton position detection Pin
56789012341-Oct-02 3:31
56789012341-Oct-02 3:31 
GeneralRe: Owner drawn CButton position detection Pin
jhwurmbach1-Oct-02 3:40
jhwurmbach1-Oct-02 3:40 
GeneralRe: Owner drawn CButton position detection Pin
Merle Pittman1-Oct-02 5:31
Merle Pittman1-Oct-02 5:31 
GeneralRe: Owner drawn CButton position detection Pin
jhwurmbach1-Oct-02 20:16
jhwurmbach1-Oct-02 20:16 
GeneralVS.NET like interface Pin
Anonymous1-Oct-02 3:05
Anonymous1-Oct-02 3:05 
GeneralPrinting the Contents of a CDialog Pin
MobileCoder1-Oct-02 2:18
MobileCoder1-Oct-02 2:18 

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.