DelphiFAQ Home Search:

The meaning of Runtime Error 217


comments192 comments. Current rating: 4 stars (41 votes). Leave comments and/ or rate it.

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:

 STATUS_CONTROL_C_EXIT:          217;
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

Content-type: text/html


You are on page 4 of 13, other pages: 1 2 3 [4] 5 6 7 10 11 12 13
2007-03-29, 23:13:28
anonymous from Russian Federation  
it seems to be that some '(Not Verified)' addons cause the problems... probably not fully compatible with ie7. just disable them, error notification should disappear
2007-04-04, 15:24:24
anonymous from United States  
I had runtime error 217 when closing IE2007 after installing Norton 2007,

It went away after disabling 'Norton Confidential Browser Helper' addon.

In IE, Tools - Manage Add Ons - Enable/Disable Add-ons
2007-04-13, 19:48:16
anonymous from United States  
I did what other suggested and it worked. I just disabled my Bellsouth toolbar. Here is how.....

Go to IE tools - manage add-ons- enable/disable add-ons and I disabled a bellsouth toolbar. No more problem. It comes back if I re-enable the toolbar so I know I got it.
2007-04-18, 10:05:24
anonymous from Syrian Arab Republic  
How can I resize my form and all its components
2007-04-18, 10:06:33
anonymous from United States  
I had runtime error 217 when closing IE2007 after installing Norton 2007,

It went away after disabling 'Norton Confidential Browser Helper' addon.

In IE, Tools - Manage Add Ons - Enable/DisabAdd- ons

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
2007-04-19, 20:54:49
anonymous from United States  
Thanks for the Bellsouth idea anonymous. My problem started when Bellsouth sent a new modem and I installed it. Went to tools==>manage add-ons like you said...all gone!!
2007-04-20, 13:33:25
anonymous from United States  
Thank You Sliderule. Had same problem with IE2007 and Norton IS 07-2. Removed Norton Conf. Browser Helper. NO MORE Trouble with Runtime Error 217. Thanks
2007-05-28, 17:27:13
anonymous from United States  
i keep getting runtime error 217 at 035F4D5A?Does anyone know how to cure this promble? Please
2007-05-28, 17:36:57   (updated: 2007-05-28, 17:37:42) from United States  
runtime error 217 at 035F4D5A: runs the internet again after i have click it once.i tried spy ware and reboot winows by f8.Run windows normal same thig happens.Would anyone help me out,Please.
2007-05-30, 06:46:38
[hidden] from Barcelona, Spain  

If you are using ShereMem unit, make sure that ShareMem is the first unit in the program's uses section, otherwise it throws some exception at unit finalization.

Reproduced with Delphi 7

---------------- Sample with Error
program Project1;

{$R *.res}

end. // Some exception is raised and Runtime error 217 is shown

------------------ Corrected Sample
program Project1;

{$R *.res}

end. // Every thing it's ok

2007-07-19, 12:11:16
anonymous from Denmark  
Hi guys,
I had the same problem with one of the programs that i am developing, and it seems that it is correct that it is the sharemem that causes trouble. Even though I used sharemem correct (as the first unit) I got this dammed 217 error when i closed the program with sharemem (delphi 6).

After removing the sharemem unit, the program ends without the 217 error

e.g. stay away from sharemem, use pchar instead of strings in your add-in modules
2007-09-17, 00:45:35
anonymous from Netherlands  
When I try to upload an image, my internet acts strange and it closes. This is reallt annoying, can somebody help me with this? I get a box with this on it:

Runtime error 217 at 01CEFD29

If you know the anwser, please mail me at

Thanks (:
2007-11-04, 14:23:43
anonymous from Israel  
the best way is (FORMAT YOUR PC) and install the new xp operation system
2007-11-15, 10:08:57
anonymous from United States  
Put 'ShareMem' first in your 'dpr' file, not the main form! -Skats McDoogle
2008-01-11, 02:01:26
anonymous from China  
Runtime error 217 starts with my boot. And can you tell me whats wrong with my PC??
And in safe mode it starts when i open something.A thing called setup1.exe.I dont know.
Need help.I dont wanna run my computer on Safe Mode forever.
You are on page 4 of 13, other pages: 1 2 3 [4] 5 6 7 10 11 12 13



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: