| 1 | tim | 67 | //--------------------------------------------------------------------------- | 
| 2 |  |  |  | 
| 3 |  |  | #include <clx.h> | 
| 4 |  |  | #pragma hdrstop | 
| 5 |  |  | int main(void) | 
| 6 |  |  | { | 
| 7 |  |  | try | 
| 8 |  |  | { | 
| 9 |  |  | Application->Initialize(); | 
| 10 |  |  | Application->Run(); | 
| 11 |  |  | } | 
| 12 |  |  | catch (Exception &exception) | 
| 13 |  |  | { | 
| 14 |  |  | Application->ShowException(&exception); | 
| 15 |  |  | } | 
| 16 |  |  | catch(...) | 
| 17 |  |  | { | 
| 18 |  |  | try | 
| 19 |  |  | { | 
| 20 |  |  | throw Exception(""); | 
| 21 |  |  | } | 
| 22 |  |  | catch(Exception &exception) | 
| 23 |  |  | { | 
| 24 |  |  | Application->ShowException(&exception); | 
| 25 |  |  | } | 
| 26 |  |  | } | 
| 27 |  |  | return 0; | 
| 28 |  |  | } | 
| 29 |  |  | //--------------------------------------------------------------------------- |