Discuss this help topic in SecureBlackbox Forum


TElZipReader     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This event is fired when an error occurs during archive reading.


    event TSBZipArchiveErrorEvent OnArchiveError;
    delegate void TSBZipArchiveErrorEvent(Object Sender, int ErrorCode, string ErrorMessage, ref bool TryContinue);

    Event OnArchiveError As TSBZipArchiveErrorEvent
    Delegate Sub TSBZipArchiveErrorEvent(ByVal Sender As Object, ByVal ErrorCode As Integer, ByVal ErrorMessage As String, ByRef TryContinue As Boolean)

    property OnArchiveError : TSBZipArchiveErrorEvent;
    TSBZipArchiveErrorEvent = procedure(Sender : TObject; ErrorCode : integer; const ErrorMessage : string; var TryContinue : boolean) of object;

    void get_OnArchiveError(TSBZipArchiveErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnArchiveError(TSBZipArchiveErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBZipArchiveErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ErrorCode, const char * pcErrorMessage, int32_t szErrorMessage, int8_t &TryContinue);

    TSBZipArchiveErrorEvent|callable|NULL get_OnArchiveError()
    void set_OnArchiveError(TSBZipArchiveErrorEvent|callable|NULL $Value)
    callable TSBZipArchiveErrorEvent(TObject $Sender, integer $ErrorCode, string $ErrorMessage, bool &$TryContinue)

    TSBZipArchiveErrorEvent getOnArchiveError();
    void setOnArchiveError(TSBZipArchiveErrorEvent Value);
    TSBZipArchiveErrorEvent.Callback OnArchiveError = new TSBZipArchiveErrorEvent.Callback() {
        public void TSBZipArchiveErrorEventCallback(TObject Sender, int ErrorCode, String ErrorMessage, TSBBoolean TryContinue) {


  • ErrorCode - specifies the error code.
  • ErrorMessage - contains textual description of the error.
  • TryContinue - set this parameter to True if you want TElZipReader to try to overcome the error.
  • pcErrorMessage - contains textual description of the error.
  • szErrorMessage - the length of pcErrorMessage.

Error codes:


    This event is fired when TElZipReader encounters error during archive reading. It is useful when archives are slightly corrupted, and TElZipReader may try to overcome these errors if user sets the TryContinue parameter to True. Instead of creating event handler, IgnoreArchiveErrors property may be used.

See also:     IgnoreArchiveErrors    

Discuss this help topic in SecureBlackbox Forum