1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 4<head> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 <meta http-equiv="Content-Style-Type" content="text/css" /> 7 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 8</head> 9<body> 10 11<h1><CODE>ro</CODE> - <CODE>exception</CODE> Demo</h1> 12 13<h2>Description</h2> 14 15<div class="section"> 16 <p> 17 This demo is an example of using C++ exceptions in dynamic modules. 18 </p> 19</div> 20 21<h2>Required Environment</h2> 22 23<div class="section"> 24 <p>None.</p> 25</div> 26 27<h2>How to Use</h2> 28 29<div class="section"> 30 <p>None.</p> 31</div> 32 33<h2>Notes</h2> 34 35<div class="section"> 36 <p> 37 This demo does not display anything on the screen. The only output is debugger output. 38 </p> 39</div> 40 41<h2>Description</h2> 42 43<div class="section"> 44 <p> 45 This demo loads a dynamic module and then runs the following four different C++ exception patterns. 46 </p> 47 <ul> 48<li>Throw and catch exception in dynamic modules.</li> 49<pre> 50App::nnMain 51 Module::Test() -- catch 52 Module::Test2() -- throw 53</pre> 54<li>Throw exception in dynamic module and catch in static module.</li> 55<pre> 56App::nnMain -- catch 57 Module::Test() -- throw 58</pre> 59<li>Throw and catch exception in static modules.</li> 60<pre> 61App::nnMain -- catch 62 App::Test3() -- throw 63</pre> 64<li>Call static module function inside dynamic module function, which is called by static module. Then, the exception is thrown inside this latter static module function and caught within the context of the first static module.</li> 65<pre> 66App::nnMain -- catch 67 Module::Test4() 68 App::Test3() -- throw 69</pre> 70 </ul> 71</div> 72 73<h2>Revision History</h2> 74 75<div class="section"> 76 <dl class="history"> 77 <dt>2011/12/12</dt> 78 <dd>Deleted Execution Procedure, added new explanation.</dd> 79 <dt>2011/08/03</dt> 80 <dd>Initial version.</dd> 81 </dl> 82</div> 83 84 85<hr><p>CONFIDENTIAL</p></body> 86</html>