Changeset 99
- Timestamp:
- 05/08/11 17:45:36 (1 year ago)
- Files:
-
- trunk/win32/dfl/application.d (modified) (10 diffs)
- trunk/win32/dfl/base.d (modified) (1 diff)
- trunk/win32/dfl/colordialog.d (modified) (2 diffs)
- trunk/win32/dfl/control.d (modified) (8 diffs)
- trunk/win32/dfl/data.d (modified) (6 diffs)
- trunk/win32/dfl/event.d (modified) (3 diffs)
- trunk/win32/dfl/filedialog.d (modified) (1 diff)
- trunk/win32/dfl/folderdialog.d (modified) (1 diff)
- trunk/win32/dfl/fontdialog.d (modified) (1 diff)
- trunk/win32/dfl/form.d (modified) (1 diff)
- trunk/win32/dfl/internal/dlib.d (modified) (2 diffs)
- trunk/win32/dfl/label.d (modified) (1 diff)
- trunk/win32/dfl/timer.d (modified) (2 diffs)
- trunk/win32/dfl/tooltip.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/win32/dfl/application.d
r82 r99 404 404 // Execution continues after this so it's not idle. 405 405 } 406 catch( Objecte)406 catch(DThrowable e) 407 407 { 408 408 onThreadException(e); … … 543 543 return; 544 544 } 545 catch( Objecte)545 catch(DThrowable e) 546 546 { 547 547 onThreadException(e); … … 874 874 875 875 /// 876 void onThreadException( Objecte)876 void onThreadException(DThrowable e) 877 877 { 878 878 static bool except = false; … … 1483 1483 } 1484 1484 } 1485 catch( Objecto)1485 catch(DThrowable o) 1486 1486 { 1487 1487 Control ctrl; … … 1708 1708 pinv.result = pinv.dg(pinv.args); 1709 1709 } 1710 catch( Objecte)1710 catch(DThrowable e) 1711 1711 { 1712 1712 //Application.onThreadException(e); 1713 1713 try 1714 1714 { 1715 if(e) 1716 pinv.exception = e; 1717 else 1718 pinv.exception = new Object; 1715 pinv.exception = e; 1719 1716 } 1720 catch( Objecte2)1717 catch(DThrowable e2) 1721 1718 { 1722 1719 Application.onThreadException(e2); … … 1735 1732 pinv.dg(); 1736 1733 } 1737 catch( Objecte)1734 catch(DThrowable e) 1738 1735 { 1739 1736 //Application.onThreadException(e); 1740 1737 try 1741 1738 { 1742 if(e) 1743 pinv.exception = e; 1744 else 1745 pinv.exception = new Object; 1739 pinv.exception = e; 1746 1740 } 1747 catch( Objecte2)1741 catch(DThrowable e2) 1748 1742 { 1749 1743 Application.onThreadException(e2); … … 1759 1753 (cast(void function())lparam)(); 1760 1754 } 1761 catch( Objecte)1755 catch(DThrowable e) 1762 1756 { 1763 1757 Application.onThreadException(e); … … 1773 1767 p.fp(Application.lookupHwnd(hwnd), p.params.ptr[0 .. p.nparams]); 1774 1768 } 1775 catch( Objecte)1769 catch(DThrowable e) 1776 1770 { 1777 1771 Application.onThreadException(e); … … 1885 1879 Object[] args; 1886 1880 Object result; 1887 Objectexception = null;1881 DThrowable exception = null; 1888 1882 } 1889 1883 … … 1892 1886 { 1893 1887 void delegate() dg; 1894 Objectexception = null;1888 DThrowable exception = null; 1895 1889 } 1896 1890 trunk/win32/dfl/base.d
r82 r99 33 33 } 34 34 } 35 36 37 /// 38 alias DThrowable DflThrowable; 35 39 36 40 trunk/win32/dfl/colordialog.d
r83 r99 7 7 8 8 private import dfl.commondialog, dfl.base, dfl.internal.winapi, dfl.internal.wincom; 9 private import dfl.internal.utf, dfl.application, dfl.drawing ;9 private import dfl.internal.utf, dfl.application, dfl.drawing, dfl.internal.dlib; 10 10 11 11 … … 228 228 } 229 229 } 230 catch( Objecte)230 catch(DThrowable e) 231 231 { 232 232 Application.onThreadException(e); trunk/win32/dfl/control.d
r82 r99 2960 2960 result = S_OK; 2961 2961 } 2962 catch( Objecte)2962 catch(DThrowable e) 2963 2963 { 2964 2964 Application.onThreadException(e); … … 2986 2986 result = S_OK; 2987 2987 } 2988 catch( Objecte)2988 catch(DThrowable e) 2989 2989 { 2990 2990 Application.onThreadException(e); … … 3009 3009 result = S_OK; 3010 3010 } 3011 catch( Objecte)3011 catch(DThrowable e) 3012 3012 { 3013 3013 Application.onThreadException(e); … … 3036 3036 result = S_OK; 3037 3037 } 3038 catch( Objecte)3038 catch(DThrowable e) 3039 3039 { 3040 3040 Application.onThreadException(e); … … 3205 3205 result = cast(HRESULT)ea.action; 3206 3206 } 3207 catch( Objecte)3207 catch(DThrowable e) 3208 3208 { 3209 3209 Application.onThreadException(e); … … 3227 3227 result = ea.useDefaultCursors ? DRAGDROP_S_USEDEFAULTCURSORS : S_OK; 3228 3228 } 3229 catch( Objecte)3229 catch(DThrowable e) 3230 3230 { 3231 3231 Application.onThreadException(e); … … 5625 5625 createChildren(); // Might throw. 5626 5626 } 5627 catch( Objecte)5627 catch(DThrowable e) 5628 5628 { 5629 5629 Application.onThreadException(e); … … 5745 5745 } 5746 5746 } 5747 catch( Objecte)5747 catch(DThrowable e) 5748 5748 { 5749 5749 Application.onThreadException(e); trunk/win32/dfl/data.d
r82 r99 1211 1211 } 1212 1212 } 1213 catch( Objecte)1213 catch(DThrowable e) 1214 1214 { 1215 1215 Application.onThreadException(e); … … 1240 1240 result = S_OK; 1241 1241 } 1242 catch( Objecte)1242 catch(DThrowable e) 1243 1243 { 1244 1244 Application.onThreadException(e); … … 1260 1260 result = S_OK; 1261 1261 } 1262 catch( Objecte)1262 catch(DThrowable e) 1263 1263 { 1264 1264 Application.onThreadException(e); … … 1384 1384 result = E_OUTOFMEMORY; 1385 1385 } 1386 catch( Objecte)1386 catch(DThrowable e) 1387 1387 { 1388 1388 Application.onThreadException(e); … … 1442 1442 result = E_OUTOFMEMORY; 1443 1443 } 1444 catch( Objecte)1444 catch(DThrowable e) 1445 1445 { 1446 1446 Application.onThreadException(e); … … 1486 1486 } 1487 1487 } 1488 catch( Objecte)1488 catch(DThrowable e) 1489 1489 { 1490 1490 Application.onThreadException(e); trunk/win32/dfl/event.d
r74 r99 306 306 /// 307 307 // The exception that occured. 308 this( ObjecttheException)308 this(DThrowable theException) 309 309 { 310 310 except = theException; … … 313 313 314 314 /// 315 final Objectexception() // getter315 final DThrowable exception() // getter 316 316 { 317 317 return except; … … 320 320 321 321 private: 322 Objectexcept;322 DThrowable except; 323 323 } 324 324 trunk/win32/dfl/filedialog.d
r88 r99 1000 1000 } 1001 1001 } 1002 catch( Objecte)1002 catch(DThrowable e) 1003 1003 { 1004 1004 Application.onThreadException(e); trunk/win32/dfl/folderdialog.d
r54 r99 350 350 } 351 351 } 352 catch( Objecte)352 catch(DThrowable e) 353 353 { 354 354 Application.onThreadException(e); trunk/win32/dfl/fontdialog.d
r54 r99 444 444 } 445 445 } 446 catch( Objecte)446 catch(DThrowable e) 447 447 { 448 448 Application.onThreadException(e); trunk/win32/dfl/form.d
r97 r99 495 495 createChildren(); // Might throw. 496 496 } 497 catch( Objecte)497 catch(DThrowable e) 498 498 { 499 499 Application.onThreadException(e); trunk/win32/dfl/internal/dlib.d
r93 r99 376 376 377 377 alias Object DObject; 378 alias Object DThrowable; 378 379 } 379 380 else // Phobos … … 582 583 583 584 alias Object DObject; 585 version(DFL_D2_AND_ABOVE) 586 { 587 version(DFL_CanThrowObject) 588 { 589 alias Object DThrowable; 590 } 591 else 592 { 593 alias Throwable DThrowable; 594 } 595 } 596 else 597 { 598 alias Object DThrowable; 599 } 584 600 } 585 601 trunk/win32/dfl/label.d
r82 r99 416 416 } 417 417 } 418 catch( Objecte)418 catch(DThrowable e) 419 419 { 420 420 Application.onThreadException(e); trunk/win32/dfl/timer.d
r74 r99 6 6 module dfl.timer; 7 7 8 private import dfl.internal.winapi, dfl.event, dfl.base, dfl.application; 8 private import dfl.internal.winapi, dfl.event, dfl.base, dfl.application, 9 dfl.internal.dlib; 9 10 10 11 … … 175 176 } 176 177 } 177 catch( Objecte)178 catch(DThrowable e) 178 179 { 179 180 Application.onThreadException(e); trunk/win32/dfl/tooltip.d
r54 r99 209 209 ctrl.createControl(); 210 210 } 211 catch( Objecto)211 catch(DThrowable o) 212 212 { 213 213 assert(0); // If -ctrl- is a child, make sure the parent is set before setting tool tip text.
