Click here to Skip to main content
15,908,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionoperator new and CObject Pin
bob1697218-Jun-07 11:17
bob1697218-Jun-07 11:17 
AnswerRe: operator new and CObject Pin
Mark Salsbery18-Jun-07 11:33
Mark Salsbery18-Jun-07 11:33 
GeneralRe: operator new and CObject Pin
bob1697218-Jun-07 12:01
bob1697218-Jun-07 12:01 
GeneralRe: operator new and CObject Pin
Mark Salsbery18-Jun-07 12:11
Mark Salsbery18-Jun-07 12:11 
GeneralRe: operator new and CObject Pin
Bram van Kampen18-Jun-07 14:45
Bram van Kampen18-Jun-07 14:45 
GeneralRe: operator new and CObject Pin
bob1697218-Jun-07 15:00
bob1697218-Jun-07 15:00 
GeneralRe: operator new and CObject Pin
Mark Salsbery18-Jun-07 13:11
Mark Salsbery18-Jun-07 13:11 
GeneralRe: operator new and CObject Pin
bob1697218-Jun-07 15:08
bob1697218-Jun-07 15:08 
I came across that stuff as well but I didn't walk away with that fuzzy feeling with how they kinda make us piece it all together when they used to just come right out and tell us that the class throws CXXXXException.

I figured I'd give it a brute force test and you are right, good ole CMemoryException is still thrown so I don't have to scurry about rewriting all my 6.0 code after all.

try {

while (TRUE) {
CxObject* pObject=new CxObject();
}
}

catch (CMemoryException* e) {
TRACE("CMemoryException\n"); // Get's thrown
}

catch (CException* e) {
TRACE("CException\n");
}

catch (...) {
TRACE("Other Exception\n");
}

My machine isn't too happy now (reboot). Big Grin | :-D

Thanks for the assistance!
GeneralRe: operator new and CObject Pin
Mark Salsbery18-Jun-07 15:27
Mark Salsbery18-Jun-07 15:27 
GeneralRe: operator new and CObject Pin
Bram van Kampen19-Jun-07 14:27
Bram van Kampen19-Jun-07 14:27 
GeneralRe: operator new and CObject Pin
Mark Salsbery19-Jun-07 14:58
Mark Salsbery19-Jun-07 14:58 
QuestionQuery interface parameter Pin
_tasleem18-Jun-07 10:47
_tasleem18-Jun-07 10:47 
AnswerRe: Query interface parameter Pin
Mark Salsbery18-Jun-07 11:08
Mark Salsbery18-Jun-07 11:08 
GeneralRe: Query interface parameter Pin
_tasleem19-Jun-07 2:47
_tasleem19-Jun-07 2:47 
GeneralRe: Query interface parameter Pin
Mark Salsbery19-Jun-07 4:33
Mark Salsbery19-Jun-07 4:33 
GeneralRe: Query interface parameter Pin
_tasleem19-Jun-07 9:04
_tasleem19-Jun-07 9:04 
QuestionGDI+ documentation Pin
Force Code18-Jun-07 7:43
Force Code18-Jun-07 7:43 
AnswerRe: GDI+ documentation Pin
Mark Salsbery18-Jun-07 7:47
Mark Salsbery18-Jun-07 7:47 
GeneralRe: GDI+ documentation Pin
Force Code18-Jun-07 8:16
Force Code18-Jun-07 8:16 
GeneralRe: GDI+ documentation Pin
Mark Salsbery18-Jun-07 8:34
Mark Salsbery18-Jun-07 8:34 
GeneralRe: GDI+ documentation Pin
Force Code18-Jun-07 10:08
Force Code18-Jun-07 10:08 
GeneralRe: GDI+ documentation Pin
Mark Salsbery18-Jun-07 11:04
Mark Salsbery18-Jun-07 11:04 
QuestionHandling input and graphics in a game engine Pin
Cyrilix18-Jun-07 7:33
Cyrilix18-Jun-07 7:33 
AnswerRe: Handling input and graphics in a game engine Pin
Force Code18-Jun-07 8:10
Force Code18-Jun-07 8:10 
GeneralRe: Handling input and graphics in a game engine Pin
Cyrilix18-Jun-07 8:29
Cyrilix18-Jun-07 8:29 

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.