Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: What is wrong with this? Pin
James R. Twine26-Jun-06 3:02
James R. Twine26-Jun-06 3:02 
GeneralRe: What is wrong with this? [modified] Pin
ovidiucucu26-Jun-06 3:43
ovidiucucu26-Jun-06 3:43 
JokeRe: What is wrong with this? Pin
James R. Twine26-Jun-06 5:02
James R. Twine26-Jun-06 5:02 
AnswerRe: What is wrong with this? Pin
ovidiucucu26-Jun-06 3:35
ovidiucucu26-Jun-06 3:35 
AnswerRe: What is wrong with this? Pin
Sarath C26-Jun-06 3:48
Sarath C26-Jun-06 3:48 
GeneralRe: What is wrong with this? Pin
Naveen26-Jun-06 3:52
Naveen26-Jun-06 3:52 
GeneralRe: What is wrong with this? Pin
Sarath C26-Jun-06 4:25
Sarath C26-Jun-06 4:25 
AnswerRe: What is wrong with this? Pin
James R. Twine26-Jun-06 5:00
James R. Twine26-Jun-06 5:00 
   You are missing the point of the post.  The problem is that if you ever catch that exception, you should never try to handle it in the way that the snippet demonstrates.

   There are only two reasons to get that exception (ignore the fact that some developers call AfxThrowMemoryException() for the wrong reasons):  [1] A heap request cannot be allocated due to an out of memory condition, and [2] the heap is corrupted and Thinks it is out of memory Smile | :) .

   For either case, you probably should not be then trying to allocate memory again.

   Peace!

-=- James
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!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: What is wrong with this? [modified] Pin
ovidiucucu26-Jun-06 5:06
ovidiucucu26-Jun-06 5:06 
GeneralRe: What is wrong with this? Pin
James R. Twine26-Jun-06 4:42
James R. Twine26-Jun-06 4:42 
AnswerRe: What is wrong with this? Pin
Chris Meech26-Jun-06 4:25
Chris Meech26-Jun-06 4:25 
Questionhow we caan add files to listbox Pin
happy_ram26-Jun-06 1:18
happy_ram26-Jun-06 1:18 
AnswerRe: how we caan add files to listbox Pin
Hamid_RT26-Jun-06 1:25
Hamid_RT26-Jun-06 1:25 
GeneralRe: how we caan add files to listbox Pin
happy_ram26-Jun-06 1:34
happy_ram26-Jun-06 1:34 
AnswerRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 1:31
Sarath C26-Jun-06 1:31 
AnswerRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 1:33
Sarath C26-Jun-06 1:33 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 1:34
Sarath C26-Jun-06 1:34 
GeneralRe: how we caan add files to listbox Pin
happy_ram26-Jun-06 1:46
happy_ram26-Jun-06 1:46 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 2:07
Sarath C26-Jun-06 2:07 
GeneralRe: how we caan add files to listbox Pin
happy_ram26-Jun-06 2:11
happy_ram26-Jun-06 2:11 
GeneralRe: how we caan add files to listbox Pin
Naveen26-Jun-06 2:23
Naveen26-Jun-06 2:23 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 2:27
Sarath C26-Jun-06 2:27 
GeneralRe: how we caan add files to listbox Pin
vasusree26-Jun-06 3:03
vasusree26-Jun-06 3:03 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 3:49
Sarath C26-Jun-06 3:49 
GeneralRe: how we caan add files to listbox Pin
Sarath C26-Jun-06 3:50
Sarath C26-Jun-06 3:50 

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.