Click here to Skip to main content
16,006,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: allocate memory Pin
Gérald Mercet13-Sep-01 23:39
Gérald Mercet13-Sep-01 23:39 
GeneralRe: allocate memory Pin
Steen Krogsgaard13-Sep-01 23:48
Steen Krogsgaard13-Sep-01 23:48 
GeneralRe: allocate memory Pin
Gérald Mercet14-Sep-01 2:37
Gérald Mercet14-Sep-01 2:37 
GeneralRe: allocate memory Pin
Steen Krogsgaard14-Sep-01 2:53
Steen Krogsgaard14-Sep-01 2:53 
GeneralRe: allocate memory Pin
Gérald Mercet14-Sep-01 3:24
Gérald Mercet14-Sep-01 3:24 
GeneralRe: allocate memory Pin
Steen Krogsgaard14-Sep-01 3:27
Steen Krogsgaard14-Sep-01 3:27 
GeneralRe: allocate memory Pin
Gérald Mercet12-Sep-01 4:00
Gérald Mercet12-Sep-01 4:00 
GeneralRe: allocate memory Pin
Steen Krogsgaard12-Sep-01 4:07
Steen Krogsgaard12-Sep-01 4:07 
Well, in your above code snippet the line
delete[] Date;

never gets called, because you do a return in the line above. Result: Memory leak. See my other reply on how to keep the Date pointer "alive" across function calls.

As to your question: You're right, you can only see Date[0], but that's because the Variables window only knows that Date is a pointer to _a_ COleDateTime object, not to an array of objects. If you in your watch window types Date[1] you'll se that it's there.

Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
Questionwhile statement probleam, please help? Pin
Tea CH11-Sep-01 17:31
Tea CH11-Sep-01 17:31 
AnswerRe: while statement probleam, please help? Pin
Christian Graus11-Sep-01 17:47
protectorChristian Graus11-Sep-01 17:47 
GeneralRe: while statement probleam, please help? Pin
Tea CH11-Sep-01 20:19
Tea CH11-Sep-01 20:19 
GeneralRe: while statement probleam, please help? Pin
Christian Graus11-Sep-01 21:53
protectorChristian Graus11-Sep-01 21:53 
GeneralRe: while statement probleam, please help? Pin
11-Sep-01 22:16
suss11-Sep-01 22:16 
GeneralIntresting Question Pin
The_Server11-Sep-01 17:08
The_Server11-Sep-01 17:08 
GeneralRe: Intresting Question Pin
Joaquín M López Muñoz12-Sep-01 0:19
Joaquín M López Muñoz12-Sep-01 0:19 
GeneralWTL CCommandBarCtrl troubles Pin
The Liquid Plumber11-Sep-01 15:37
The Liquid Plumber11-Sep-01 15:37 
GeneralWin32 Console Programming Question Pin
the_grip11-Sep-01 10:30
the_grip11-Sep-01 10:30 
GeneralRe: Win32 Console Programming Question Pin
Joaquín M López Muñoz11-Sep-01 12:09
Joaquín M López Muñoz11-Sep-01 12:09 
GeneralRe: Win32 Console Programming Question Pin
User 988511-Sep-01 12:14
User 988511-Sep-01 12:14 
GeneralSerialize problem Pin
José Luis Sogorb11-Sep-01 9:38
José Luis Sogorb11-Sep-01 9:38 
GeneralRe: Serialize problem Pin
Tomasz Sowinski12-Sep-01 0:48
Tomasz Sowinski12-Sep-01 0:48 
GeneralDisabling and Enabling MFC Wizard buttons Pin
11-Sep-01 6:46
suss11-Sep-01 6:46 
GeneralRe: Disabling and Enabling MFC Wizard buttons Pin
Tomasz Sowinski12-Sep-01 2:56
Tomasz Sowinski12-Sep-01 2:56 
GeneralCan't add variable to static text Pin
mattiase11-Sep-01 6:44
mattiase11-Sep-01 6:44 
GeneralRe: Can't add variable to static text Pin
Anders Molin11-Sep-01 7:28
professionalAnders Molin11-Sep-01 7: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.