The meaning of Runtime Error 217
The online help that comes with Delphi lists "control-C-exit" as the reason for a runtime error 217, here a listing of Delphi 3 Runtime Errors:
In the case of 217, this listing is wrong.
In fact, Delphi executables will die with runtime error 217 when an exception was raised before SysUtils is initialized or after it is finalized. In both situations the regular exception handling is not put in place.
If the error occurs right at your application's startup, check your initialization sections. Try to move code into a later part, e.g. into FormCreate() events.
Otherwise check your units' finalization sections.
Some typical situations where this can happen:
- unexpected date formats
- disk or registry accesses where the user has not sufficient privileges
- BDE Net Dir mismatches