#1 2014-03-27 10:46:04

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Long up-time problem in Delphi

Very interesting article about "feature" in VCL which resulted in the crash of Delphi-based application. You can use google translator to read article in your language (originally in Russian) http://habrahabr.ru/post/217189/
In short - in Controls.pas initialization (in the InitControls) Delphi call windows function GlobalAddAtom several times.
And if we end Delphi application in unexpected way (Ctrl+F2 in IDE for example), finalization part not called, so GlobalDeleteAtom do not calls.
Since in Windows possible numbers of global atoms equal to 16383 we can easy overflow it and as a result - all Delphi based application do not run correctly anymore (reboot need).

Offline

Board footer

Powered by FluxBB