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

C / C++ / MFC

 
GeneralRe: Drawing Unicode Text with GDI Pin
Stefan Pedersen21-Jan-03 15:21
Stefan Pedersen21-Jan-03 15:21 
GeneralCOM and Multithreading Pin
act_x21-Jan-03 10:44
act_x21-Jan-03 10:44 
GeneralRe: COM and Multithreading Pin
John M. Drescher21-Jan-03 11:02
John M. Drescher21-Jan-03 11:02 
GeneralRe: COM and Multithreading Pin
act_x21-Jan-03 11:12
act_x21-Jan-03 11:12 
GeneralRe: COM and Multithreading Pin
Stefan Pedersen21-Jan-03 11:03
Stefan Pedersen21-Jan-03 11:03 
GeneralQuestion about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 10:38
FrankRizzo21-Jan-03 10:38 
GeneralRe: Question about NEW throwing in MFC app Pin
Michael Dunn21-Jan-03 10:55
sitebuilderMichael Dunn21-Jan-03 10:55 
GeneralRe: Question about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 11:11
FrankRizzo21-Jan-03 11:11 
Yep, and that is what happens when MFC calls new and it fails.

But what happens if you call STL or your own funtions from within an MFC function override and your new handler is called throwing bad_alloc?

It appears that MFC wont catch it, you will get an unhandled exception. If you try to recover from it, you might leak MFC resources.

PS: Did this change in VC .NET? Or does new still return NULL?
GeneralTransparent Group Box , huh?! Pin
brianwelsch21-Jan-03 10:11
brianwelsch21-Jan-03 10:11 
GeneralRe: Transparent Group Box , huh?! Pin
dazinith21-Jan-03 10:30
dazinith21-Jan-03 10:30 
GeneralRe: Transparent Group Box , huh?! Pin
Brit21-Jan-03 14:00
Brit21-Jan-03 14:00 
GeneralCatching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:04
The Lady of Shallots21-Jan-03 10:04 
GeneralRe: Catching maximize of an app Pin
AlexO21-Jan-03 10:14
AlexO21-Jan-03 10:14 
GeneralRe: Catching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:21
The Lady of Shallots21-Jan-03 10:21 
QuestionSimulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 9:54
dazinith21-Jan-03 9:54 
AnswerRe: Simulate a keypress, or go to the next field? Pin
Joaquín M López Muñoz21-Jan-03 9:55
Joaquín M López Muñoz21-Jan-03 9:55 
GeneralRe: Simulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 10:29
dazinith21-Jan-03 10:29 
Question"Not Responding" - how to prevent? Pin
ExtraLean21-Jan-03 9:43
ExtraLean21-Jan-03 9:43 
AnswerRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 9:50
protectorChristian Graus21-Jan-03 9:50 
GeneralRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 9:51
Joaquín M López Muñoz21-Jan-03 9:51 
GeneralRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 10:47
protectorChristian Graus21-Jan-03 10:47 
GeneralRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 11:03
Joaquín M López Muñoz21-Jan-03 11:03 
GeneralRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 13:03
protectorChristian Graus21-Jan-03 13:03 
AnswerRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 9:49
Joaquín M López Muñoz21-Jan-03 9:49 
AnswerRe: "Not Responding" - how to prevent? Pin
#realJSOP21-Jan-03 10:21
professional#realJSOP21-Jan-03 10:21 

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.