How to debug a crash that only occurs on application shutdown? (Delphi)

后端 未结 6 2378
一生所求
一生所求 2021-02-13 06:21

So, after some recent changes we discovered that one of our oldest applications is sometimes crashing on shutdown. This manifests itself either in the form of \"Runtime error 21

6条回答
  •  一个人的身影
    2021-02-13 06:53

    Well the Runtime error 216 are memory issue (Access violation), it seems like you refer to some Object which doesnt exist at that point of time.

    Emarcadero writes:

    Applications that use the SysUtils class map most runtime errors to Exceptions, which allow your application to resolve the error without terminating

    Did you try to set a breackpoint at the finalization section of Sysutils?

    I would try it with an Allocation / Memory Profiler, its not sure you will find the error code line but this may show you some parts of your code where Memory issues occure.

提交回复
热议问题