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

C / C++ / MFC

 
AnswerRe: VARIANT CONVERSION TO SPECIFIC CLASS TYPE POINTER Pin
Cedric Moonen6-Mar-07 0:56
Cedric Moonen6-Mar-07 0:56 
GeneralRe: VARIANT CONVERSION TO SPECIFIC CLASS TYPE POINTER Pin
Stephen Hewitt6-Mar-07 11:53
Stephen Hewitt6-Mar-07 11:53 
GeneralRe: VARIANT CONVERSION TO SPECIFIC CLASS TYPE POINTER Pin
Cedric Moonen6-Mar-07 21:27
Cedric Moonen6-Mar-07 21:27 
GeneralRe: VARIANT CONVERSION TO SPECIFIC CLASS TYPE POINTER Pin
Stephen Hewitt7-Mar-07 11:26
Stephen Hewitt7-Mar-07 11:26 
GeneralRe: "Selecting all entries on Ctrl+A of key board" Pin
harsh_29616-Mar-07 1:13
harsh_29616-Mar-07 1:13 
GeneralRe: "Selecting all entries on Ctrl+A of key board" Pin
Rajesh R Subramanian6-Mar-07 1:26
professionalRajesh R Subramanian6-Mar-07 1:26 
Questiondebug mode VS execution mode Pin
Ayman Mashal6-Mar-07 0:20
Ayman Mashal6-Mar-07 0:20 
AnswerRe: debug mode VS execution mode Pin
James R. Twine6-Mar-07 1:06
James R. Twine6-Mar-07 1:06 
Ayman Mashal wrote:
0x0000002c


   That address tells you that you likely did something off of a NULL pointer, so I would start there.

   If the calculation of the memory size used in the call to realloc(...) is broken, and it looks possible because there is no testing/verification visible in the code you provided, realloc(...) can return a NULL value, and the following line would cause an exception in that case.

   BTW - the allocation differences between release and debug are many, and some objects (like MFC's CString) even allocate memory differently in release mode than in debug mode (it allocates exact amounts in debug, but allcoates in blocks in release).  The first thing is that under debug mode, memory allocation routines will often pad allocated memory with special bytes allowing you to detect overruns.

   Are you sure that you have no memory-related issues in debug mode?  You have to run the program to completion to find all of them, not just stop it in the debugger.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: debug mode VS execution mode Pin
Ayman Mashal6-Mar-07 1:43
Ayman Mashal6-Mar-07 1:43 
GeneralRe: debug mode VS execution mode Pin
David Crow6-Mar-07 2:57
David Crow6-Mar-07 2:57 
AnswerRe: debug mode VS execution mode Pin
toxcct6-Mar-07 10:14
toxcct6-Mar-07 10:14 
Questioni," Selecting All entries by on Ctrl +A" Pin
harsh_29616-Mar-07 0:17
harsh_29616-Mar-07 0:17 
AnswerRe: i," Selecting All entries by on Ctrl +A" Pin
Hamid_RT6-Mar-07 0:36
Hamid_RT6-Mar-07 0:36 
GeneralRe: i," Selecting All entries by on Ctrl +A" Pin
harsh_29616-Mar-07 1:08
harsh_29616-Mar-07 1:08 
GeneralRe: i," Selecting All entries by on Ctrl +A" Pin
Hamid_RT6-Mar-07 7:12
Hamid_RT6-Mar-07 7:12 
GeneralRe: i," Selecting All entries by on Ctrl +A" Pin
harsh_29616-Mar-07 18:46
harsh_29616-Mar-07 18:46 
GeneralRe: i," Selecting All entries by on Ctrl +A" Pin
Hamid_RT6-Mar-07 19:17
Hamid_RT6-Mar-07 19:17 
GeneralRe: i," Selecting All entries by on Ctrl +A" Pin
harsh_29616-Mar-07 19:22
harsh_29616-Mar-07 19:22 
GeneralRe: i," Selecting All entries by on Ctrl +A" Pin
Hamid_RT7-Mar-07 6:53
Hamid_RT7-Mar-07 6:53 
QuestionTabcontrol background color Pin
deeps_cute6-Mar-07 0:04
deeps_cute6-Mar-07 0:04 
AnswerRe: Tabcontrol background color Pin
Hamid_RT6-Mar-07 0:11
Hamid_RT6-Mar-07 0:11 
GeneralRe: Tabcontrol background color Pin
deeps_cute6-Mar-07 0:14
deeps_cute6-Mar-07 0:14 
QuestionTextbox focus Pin
baerten6-Mar-07 0:01
baerten6-Mar-07 0:01 
AnswerRe: Textbox focus Pin
James R. Twine6-Mar-07 1:10
James R. Twine6-Mar-07 1:10 
GeneralRe: Textbox focus Pin
baerten6-Mar-07 2:07
baerten6-Mar-07 2:07 

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.