Changeset 129 for PinConnection
- Timestamp:
- Jan 17, 2011, 6:55:36 AM (14 years ago)
- Location:
- PinConnection
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/UCommProtocol.pas
r119 r129 7 7 uses 8 8 Classes, SysUtils, UVarBlockSerializer, syncobjs, UCommPin, 9 UDebugLog, UStreamHelper, StopWatch, SpecializedList ;9 UDebugLog, UStreamHelper, StopWatch, SpecializedList, UCommon; 10 10 11 11 type … … 63 63 64 64 TRetransmitCheckThread = class(TThread) 65 private66 65 public 67 66 Parent: TCommProtocol; … … 474 473 except 475 474 on E: Exception do begin 476 //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);475 if Assigned(ExceptionHandler) then ExceptionHandler(Self, E); 477 476 end; 478 477 end; -
PinConnection/UCommSocket.pas
r119 r129 6 6 7 7 uses 8 Classes, SysUtils, blcksock, UCommPin ;8 Classes, SysUtils, blcksock, UCommPin, UCommon; 9 9 10 10 type … … 16 16 17 17 TCommSocketReceiveThread = class(TThread) 18 public 18 19 Parent: TCommSocket; 19 20 Stream: TMemoryStream; … … 110 111 except 111 112 on E: Exception do 112 //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);113 if Assigned(ExceptionHandler) then ExceptionHandler(Self, E); 113 114 end; 114 115 until Terminated; -
PinConnection/UCommThread.pas
r119 r129 6 6 7 7 uses 8 Classes, SysUtils, blcksock, UCommPin, SyncObjs, UStreamHelper ;8 Classes, SysUtils, blcksock, UCommPin, SyncObjs, UStreamHelper, UCommon; 9 9 10 10 type … … 16 16 17 17 TCommThreadReceiveThread = class(TThread) 18 public 18 19 Parent: TCommThread; 19 20 Stream: TMemoryStream; … … 130 131 except 131 132 on E: Exception do 132 //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);133 if Assigned(ExceptionHandler) then ExceptionHandler(Self, E); 133 134 end; 134 135 until Terminated; -
PinConnection/UPacketBurst.pas
r119 r129 6 6 7 7 uses 8 Classes, UCommPin, SyncObjs, UStreamHelper ;8 Classes, UCommPin, SyncObjs, UStreamHelper, UCommon, SysUtils; 9 9 10 10 type … … 103 103 inherited; 104 104 try 105 try 105 106 Stream := TStreamHelper.Create; 106 107 with PacketBurst do … … 126 127 Stream.Free; 127 128 end; 129 except 130 on E: Exception do 131 if Assigned(ExceptionHandler) then ExceptionHandler(Self, E); 132 end; 128 133 end; 129 134 -
PinConnection/USerialPort.pas
r119 r129 6 6 7 7 uses 8 Classes, SysUtils, SynaSer, StdCtrls, Dialogs ;8 Classes, SysUtils, SynaSer, StdCtrls, Dialogs, UCommon; 9 9 10 10 type … … 23 23 24 24 TSerialPortReceiveThread = class(TThread) 25 public 25 26 Parent: TSerialPort; 26 27 procedure Execute; override; … … 306 307 except 307 308 on E: Exception do 308 //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);309 if Assigned(ExceptionHandler) then ExceptionHandler(Self, E); 309 310 end; 310 311 until Terminated;
Note:
See TracChangeset
for help on using the changeset viewer.