Click here to Skip to main content
15,902,846 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDll fucntions called in EXE ! Pin
lgatcodeproject29-Jan-08 20:42
lgatcodeproject29-Jan-08 20:42 
GeneralRe: Dll fucntions called in EXE ! Pin
Cedric Moonen29-Jan-08 20:59
Cedric Moonen29-Jan-08 20:59 
Generalexception handling, function call and memory Pin
George_George29-Jan-08 20:33
George_George29-Jan-08 20:33 
GeneralRe: exception handling, function call and memory Pin
CPallini29-Jan-08 21:21
mveCPallini29-Jan-08 21:21 
GeneralRe: exception handling, function call and memory Pin
Maxwell Chen29-Jan-08 21:25
Maxwell Chen29-Jan-08 21:25 
QuestionRe: exception handling, function call and memory Pin
CPallini29-Jan-08 21:27
mveCPallini29-Jan-08 21:27 
GeneralRe: exception handling, function call and memory Pin
Maxwell Chen29-Jan-08 21:29
Maxwell Chen29-Jan-08 21:29 
GeneralRe: exception handling, function call and memory Pin
George_George29-Jan-08 21:49
George_George29-Jan-08 21:49 
Thanks CPallini,


1.

CPallini wrote:
The above cannot happen.


I think you agree with my points that the sequence analysis execute (1) then execute (2).

Which is,

--------------------
My question is when the exception is thrown, and goes to exception handler in catch block, it will do operations in the following sequences,

(1) execute the exception handler code (since there will be recursive function call -- stack will ever increasing);
(2) unwind stack.
--------------------

Runs out of memory because function call will make stack ever-increasing, right?


2.

CPallini wrote:
I think we can consider it in a broad sense, i.e. if you remove the throw statement, then no stack overflow happens.


Does your above point related to my 2nd question? What additional memory is consumed by exception handling mechanism?


regards,
George
GeneralRe: exception handling, function call and memory Pin
CPallini29-Jan-08 22:04
mveCPallini29-Jan-08 22:04 
GeneralRe: exception handling, function call and memory Pin
George_George29-Jan-08 23:30
George_George29-Jan-08 23:30 
Generalstruct and union difference Pin
gentleguy29-Jan-08 20:04
gentleguy29-Jan-08 20:04 
GeneralRe: struct and union difference Pin
Maxwell Chen29-Jan-08 20:19
Maxwell Chen29-Jan-08 20:19 
GeneralRe: struct and union difference Pin
Rajesh R Subramanian29-Jan-08 20:33
professionalRajesh R Subramanian29-Jan-08 20:33 
JokeThank you very mutch, man Pin
CPallini29-Jan-08 21:16
mveCPallini29-Jan-08 21:16 
JokeRe: Thank you very mutch, man Pin
Cedric Moonen29-Jan-08 21:19
Cedric Moonen29-Jan-08 21:19 
JokeRe: Thank you very mutch, man Pin
Rajesh R Subramanian29-Jan-08 22:20
professionalRajesh R Subramanian29-Jan-08 22:20 
GeneralNeed Help on c and c++ merging Pin
manish.patel29-Jan-08 19:49
manish.patel29-Jan-08 19:49 
QuestionRe: Need Help on c and c++ merging Pin
Maxwell Chen29-Jan-08 20:04
Maxwell Chen29-Jan-08 20:04 
GeneralRe: Need Help on c and c++ merging Pin
manish.patel29-Jan-08 20:06
manish.patel29-Jan-08 20:06 
GeneralRe: Need Help on c and c++ merging Pin
Maxwell Chen29-Jan-08 20:18
Maxwell Chen29-Jan-08 20:18 
GeneralCTreeCtrl TV_ITEM labels - trasparent help needed plz Pin
sarat29-Jan-08 18:47
sarat29-Jan-08 18:47 
GeneralRe: CTreeCtrl TV_ITEM labels - trasparent help needed plz Pin
Iain Clarke, Warrior Programmer29-Jan-08 23:58
Iain Clarke, Warrior Programmer29-Jan-08 23:58 
GeneralRe: CTreeCtrl TV_ITEM labels - trasparent help needed plz Pin
sarat30-Jan-08 3:45
sarat30-Jan-08 3:45 
GeneralRe: CTreeCtrl TV_ITEM labels - trasparent help needed plz Pin
Iain Clarke, Warrior Programmer30-Jan-08 4:11
Iain Clarke, Warrior Programmer30-Jan-08 4:11 
GeneralRe: CTreeCtrl TV_ITEM labels - trasparent help needed plz Pin
sarat30-Jan-08 4:34
sarat30-Jan-08 4:34 

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.