Changeset 129 for PinConnection


Ignore:
Timestamp:
Jan 17, 2011, 6:55:36 AM (14 years ago)
Author:
george
Message:
Location:
PinConnection
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommProtocol.pas

    r119 r129  
    77uses
    88  Classes, SysUtils, UVarBlockSerializer, syncobjs, UCommPin,
    9   UDebugLog, UStreamHelper, StopWatch, SpecializedList;
     9  UDebugLog, UStreamHelper, StopWatch, SpecializedList, UCommon;
    1010
    1111type
     
    6363
    6464  TRetransmitCheckThread = class(TThread)
    65   private
    6665  public
    6766    Parent: TCommProtocol;
     
    474473      except
    475474        on E: Exception do begin
    476           //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);
     475          if Assigned(ExceptionHandler) then ExceptionHandler(Self, E);
    477476        end;
    478477      end;
  • PinConnection/UCommSocket.pas

    r119 r129  
    66
    77uses
    8   Classes, SysUtils, blcksock, UCommPin;
     8  Classes, SysUtils, blcksock, UCommPin, UCommon;
    99
    1010type
     
    1616
    1717  TCommSocketReceiveThread = class(TThread)
     18  public
    1819    Parent: TCommSocket;
    1920    Stream: TMemoryStream;
     
    110111    except
    111112      on E: Exception do
    112         //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);
     113        if Assigned(ExceptionHandler) then ExceptionHandler(Self, E);
    113114    end;
    114115  until Terminated;
  • PinConnection/UCommThread.pas

    r119 r129  
    66
    77uses
    8   Classes, SysUtils, blcksock, UCommPin, SyncObjs, UStreamHelper;
     8  Classes, SysUtils, blcksock, UCommPin, SyncObjs, UStreamHelper, UCommon;
    99
    1010type
     
    1616
    1717  TCommThreadReceiveThread = class(TThread)
     18  public
    1819    Parent: TCommThread;
    1920    Stream: TMemoryStream;
     
    130131    except
    131132      on E: Exception do
    132         //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);
     133        if Assigned(ExceptionHandler) then ExceptionHandler(Self, E);
    133134    end;
    134135  until Terminated;
  • PinConnection/UPacketBurst.pas

    r119 r129  
    66
    77uses
    8   Classes, UCommPin, SyncObjs, UStreamHelper;
     8  Classes, UCommPin, SyncObjs, UStreamHelper, UCommon, SysUtils;
    99
    1010type
     
    103103  inherited;
    104104  try
     105  try
    105106    Stream := TStreamHelper.Create;
    106107    with PacketBurst do
     
    126127    Stream.Free;
    127128  end;
     129  except
     130    on E: Exception do
     131      if Assigned(ExceptionHandler) then ExceptionHandler(Self, E);
     132  end;
    128133end;
    129134
  • PinConnection/USerialPort.pas

    r119 r129  
    66
    77uses
    8   Classes, SysUtils, SynaSer, StdCtrls, Dialogs;
     8  Classes, SysUtils, SynaSer, StdCtrls, Dialogs, UCommon;
    99
    1010type
     
    2323
    2424  TSerialPortReceiveThread = class(TThread)
     25  public
    2526    Parent: TSerialPort;
    2627    procedure Execute; override;
     
    306307    except
    307308      on E: Exception do
    308         //MainForm.ExceptionLogger1.ThreadExceptionHandler(Self, E);
     309        if Assigned(ExceptionHandler) then ExceptionHandler(Self, E);
    309310    end;
    310311  until Terminated;
Note: See TracChangeset for help on using the changeset viewer.