Jump to content

Hafedh TRIMECHE

Members
  • Content Count

    28
  • Joined

  • Last visited

Everything posted by Hafedh TRIMECHE

  1. Hafedh TRIMECHE

    Messages for exceptions only for main thread?

    You may try this code: procedure GlobalExceptionHandler(ExceptionObj:TObject); var LException : Exception; begin if (ExceptionObj is Exception) then LException := Exception(ExceptionObj) else LException := nil; TExceptionHandler.ProcessException(nil,LException); end; constructor TExceptionHandler.Create; begin inherited; JclStackTrackingOptions := [stStack,stRawMode,stTraceAllExceptions]; JclStartExceptionTracking; Application.OnException := ProcessException; ExceptionAcquired := @GlobalExceptionHandler; end; destructor TExceptionHandler.Destroy; begin StopExceptionHandler; inherited; end; It worked for me !
  2. Hafedh TRIMECHE

    Detecting Memory Leaks

    Setting OPENSSL_SET_MEMORY_FUNCS inside IdCompilerDefines.inc file generated Assertion Exception: =============================================================================== Computer Name : WIN-U8VNBK8EO77 Local IP : 192.168.56.1,192.168.31.150 Memory manager : tbbmalloc.dll Application Name : UTest.exe Compiler Version : Delphi Tokyo+ [VER330] JCL Version : 2.8.0 Build 5677 Indy Version : 10.6.2.0 Report Unique ID : {2350E01A-18BF-45E8-A20A-DC95B7C19733} Start Time : 2019-06-10 00:39:45.192 Exception Time : 2019-06-10 00:40:16.443 Application up time : 31 seconds 251 milliseconds =============================================================================== System : Windows Server 2016 Server, Version: 10.0, Build: 3839, "" Processor : AMD, AMD Athlon(tm) II P320 Dual-Core Processor, 2100 MHz MMX Display : 1680x1050 pixels, 32 bpp Total Physical Memory : 5.748 GB Free Physical Memory : 1.232 GB Working Set Memory : 160.309 MB =============================================================================== Exception class : EAssertionFailed Assertion failure (D:\Developer\Packages\Indy\Protocols\IdSSLOpenSSL.pas, line 2164) Exception address : 007703EB ------------------------------------------------------------------------------- Module : IdSSLOpenSSL Procedure : IdSSLOpenSSL.IdSslCryptoMallocInit Unit : IdSSLOpenSSL.pas Line : 2164 ------------------------------------------------------------------------------- [007703E6] IdSSLOpenSSL.IdSslCryptoMallocInit (Line 2164, "IdSSLOpenSSL.pas" + 2) + $15 [0040AC8D] System.@Assert (Line 24854, "System.pas" + 2) + $D [007703E6] IdSSLOpenSSL.IdSslCryptoMallocInit (Line 2164, "IdSSLOpenSSL.pas" + 2) + $15 [00770A91] IdSSLOpenSSL.LoadOpenSSLLibrary (Line 2368, "IdSSLOpenSSL.pas" + 14) + $0 [00973EB3] uNetwork.THTTPClient.Create (Line 632, "uNetwork.pas" + 1) + $0
  3. Hafedh TRIMECHE

    Detecting Memory Leaks

    Indeed CRYPTO_set_mem_functions is used to detect memory leaks but failed to be set at the first call to SSL initialization.
×