Click here to Skip to main content
16,006,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionprofiling Pin
wb9-Mar-06 21:35
wb9-Mar-06 21:35 
AnswerRe: profiling Pin
Jack Puppy10-Mar-06 1:55
Jack Puppy10-Mar-06 1:55 
Questioncatching a crashing call to a third party api Pin
Jerome Conus9-Mar-06 21:20
Jerome Conus9-Mar-06 21:20 
AnswerRe: catching a crashing call to a third party api Pin
Xing Chen9-Mar-06 21:25
Xing Chen9-Mar-06 21:25 
GeneralRe: catching a crashing call to a third party api Pin
Jerome Conus9-Mar-06 21:45
Jerome Conus9-Mar-06 21:45 
AnswerRe: catching a crashing call to a third party api Pin
kakan9-Mar-06 21:32
professionalkakan9-Mar-06 21:32 
GeneralRe: catching a crashing call to a third party api Pin
Jerome Conus9-Mar-06 21:39
Jerome Conus9-Mar-06 21:39 
AnswerRe: catching a crashing call to a third party api Pin
Stephen Hewitt9-Mar-06 21:59
Stephen Hewitt9-Mar-06 21:59 
Chenxing's solution will work - As much as catching an unexpected exception will ever work. Here's how to do it:
__try
{
     api_call(mydata);
}
__except(EXCEPTION_EXECUTE_HANDLER)
{
     // Error!
}


Note that catching an unexpected exception is never a good idea - For example the exception might have occurred while a node was being linked into a linked list but has only been half linked in. Or perhaps after a CRITICAL_SECTION was entered but before it is released. Once an unexpected exception occurs the state of the application is suspect.

I realize you may have no choice but nethertheless beware - You may end up creating more problems for yourself.


Steve


I just noticed the comment where you said you're programming on Linux - Sorry.

-- modified at 4:22 Friday 10th March, 2006
QuestionControlling powerpoint?! Pin
markhaslehurst9-Mar-06 21:04
markhaslehurst9-Mar-06 21:04 
AnswerRe: Controlling powerpoint?! Pin
Ryan Binns9-Mar-06 21:47
Ryan Binns9-Mar-06 21:47 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst9-Mar-06 21:57
markhaslehurst9-Mar-06 21:57 
GeneralRe: Controlling powerpoint?! Pin
Ryan Binns9-Mar-06 22:25
Ryan Binns9-Mar-06 22:25 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst9-Mar-06 22:33
markhaslehurst9-Mar-06 22:33 
GeneralRe: Controlling powerpoint?! Pin
Ryan Binns9-Mar-06 22:41
Ryan Binns9-Mar-06 22:41 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst10-Mar-06 0:30
markhaslehurst10-Mar-06 0:30 
GeneralRe: Controlling powerpoint?! Pin
Ryan Binns10-Mar-06 0:39
Ryan Binns10-Mar-06 0:39 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst10-Mar-06 0:47
markhaslehurst10-Mar-06 0:47 
GeneralRe: Controlling powerpoint?! Pin
toxcct9-Mar-06 23:56
toxcct9-Mar-06 23:56 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst10-Mar-06 0:04
markhaslehurst10-Mar-06 0:04 
GeneralRe: Controlling powerpoint?! Pin
toxcct10-Mar-06 0:10
toxcct10-Mar-06 0:10 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst10-Mar-06 0:15
markhaslehurst10-Mar-06 0:15 
GeneralRe: Controlling powerpoint?! Pin
toxcct10-Mar-06 0:20
toxcct10-Mar-06 0:20 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst10-Mar-06 0:26
markhaslehurst10-Mar-06 0:26 
QuestionSir, I want to know the diffrence between Adding a Virtual Function And Message Handler pls help me. Pin
CodeVarma9-Mar-06 20:44
CodeVarma9-Mar-06 20:44 
AnswerRe: Sir, I want to know the diffrence between Adding a Virtual Function And Message Handler pls help me. Pin
toxcct9-Mar-06 21:13
toxcct9-Mar-06 21:13 

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.