Click here to Skip to main content
15,922,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralURGENT Help Required Pin
James Spibey16-Jan-02 1:19
James Spibey16-Jan-02 1:19 
GeneralRe: URGENT Help Required Pin
Phil.Benson16-Jan-02 1:31
professionalPhil.Benson16-Jan-02 1:31 
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 1:36
James Spibey16-Jan-02 1:36 
GeneralRe: URGENT Help Required Pin
Matt Gullett16-Jan-02 2:05
Matt Gullett16-Jan-02 2:05 
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 2:54
James Spibey16-Jan-02 2:54 
GeneralFIXED WOO-HOO Pin
James Spibey16-Jan-02 3:03
James Spibey16-Jan-02 3:03 
GeneralRe: FIXED WOO-HOO Pin
Matt Gullett16-Jan-02 3:33
Matt Gullett16-Jan-02 3:33 
GeneralRe: URGENT Help Required Pin
Tim Smith16-Jan-02 2:13
Tim Smith16-Jan-02 2:13 
A few things to check.

1. Rogue pointer - You have a pointer that hasn't been properly initialized that is trashing another variable when used.

2. Use of deallocated memory - You deallocate memory, that memory is then allocated to your new object. However, another piece of code is still trying to access the old object thus trashing the data in the new.

3. You are returning a pointer to a stack object.

4. Your object is located on the stack and another buffer (such as a character string) isn't large enough to hold an array of data. Thus when you write this data into the buffer, you trash other objects on the stack. This can also happen with allocated memory.



Tim Smith
Descartes Systems Sciences, Inc.
GeneralRe: URGENT Help Required Pin
James Spibey16-Jan-02 2:26
James Spibey16-Jan-02 2:26 
GeneralSetting Control Focus Within Property Sheet Pin
John Clump16-Jan-02 0:09
John Clump16-Jan-02 0:09 
GeneralRe: Setting Control Focus Within Property Sheet Pin
Fred D.16-Jan-02 0:34
Fred D.16-Jan-02 0:34 
GeneralRe: Setting Control Focus Within Property Sheet Pin
Roger Allen16-Jan-02 3:17
Roger Allen16-Jan-02 3:17 
GeneralEnumerating All Visible Printers Pin
jerry0davis15-Jan-02 23:43
jerry0davis15-Jan-02 23:43 
GeneralRe: Enumerating All Visible Printers Pin
567890123416-Jan-02 0:51
567890123416-Jan-02 0:51 
GeneralRe: Enumerating All Visible Printers Pin
jerry0davis16-Jan-02 3:34
jerry0davis16-Jan-02 3:34 
GeneralRe: Enumerating All Visible Printers Pin
l a u r e n16-Jan-02 2:29
l a u r e n16-Jan-02 2:29 
GeneralRe: Enumerating All Visible Printers Pin
jerry0davis16-Jan-02 2:35
jerry0davis16-Jan-02 2:35 
QuestionMs Word Automation, is this possible or expecting too much from Automation ? Pin
Braulio Dez15-Jan-02 23:29
Braulio Dez15-Jan-02 23:29 
QuestionMP3 Playlist format (*.pls) ?? Pin
Phil.Benson15-Jan-02 23:13
professionalPhil.Benson15-Jan-02 23:13 
AnswerRe: MP3 Playlist format (*.pls) ?? Pin
Fred D.15-Jan-02 23:58
Fred D.15-Jan-02 23:58 
GeneralRe: MP3 Playlist format (*.pls) ?? Pin
Phil.Benson16-Jan-02 1:00
professionalPhil.Benson16-Jan-02 1:00 
GeneralRe: MP3 Playlist format (*.pls) ?? Pin
Fred D.16-Jan-02 1:08
Fred D.16-Jan-02 1:08 
GeneralRe: MP3 Playlist format (*.pls) ?? Pin
Phil.Benson16-Jan-02 5:23
professionalPhil.Benson16-Jan-02 5:23 
GeneralCDateTimeCtrl Pin
Djibril15-Jan-02 23:05
professionalDjibril15-Jan-02 23:05 
GeneralRe: CDateTimeCtrl Pin
Joaquín M López Muñoz15-Jan-02 23:33
Joaquín M López Muñoz15-Jan-02 23:33 

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.