DelphiFAQ Home Search:

The meaning of Runtime Error 217

 

comments87 comments. Current rating: 4 stars (18 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_FLOAT_DIVIDE_BY_ZERO:    200;
 STATUS_INTEGER_DIVIDE_BY_ZERO:  200;
 STATUS_ARRAY_BOUNDS_EXCEEDED:   201;
 STATUS_STACK_OVERFLOW:          202;
 STATUS_FLOAT_OVERFLOW:          205;
 STATUS_FLOAT_UNDERFLOW,
 STATUS_FLOAT_DENORMAL_OPERAND:  206;
 STATUS_FLOAT_INEXACT_RESULT,
 STATUS_FLOAT_INVALID_OPERATION,
 STATUS_FLOAT_STACK_CHECK:       207;
 STATUS_INTEGER_OVERFLOW:        215;
 STATUS_ACCESS_VIOLATION:        216;
 STATUS_CONTROL_C_EXIT:          217;
 STATUS_PRIVILEGED_INSTRUCTION:  218;
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

Comments:

You are on page 4 of 6, other pages: 1 2 3 [4] 5 6
2007-03-26, 09:55:50
Mike from Switzerland  
rating
Thanks to rick. Had the same problem with IE2007 after Norton installation. Will disable the Norton Confidential Browser helper.
2007-03-29, 18:36:48
anonymous  
yea all the folks out there if your getting the runtime error 217 after you close the internet explorer 7 browser, I found that if you remove internet explorer 7 & go back to the old explorer you will have no runtime errors.
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

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^
THANK YOU
2007-04-19, 20:54:49
anonymous from United States  
rating
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  
rating
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)
dgauntt2005@yahoo.com 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;
uses
Forms,
ShareMem;

{$R *.res}

begin
Application.Initialize;
Application.Run;
end. // Some exception is raised and Runtime error 217 is shown

------------------ Corrected Sample
program Project1;
uses
ShareMem,
Forms;

{$R *.res}

begin
Application.Initialize;
Application.Run;
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  
rating
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 rebecca.hamers@hotmail.com

Thanks (:
2007-11-04, 14:23:43
anonymous from Israel  
the best way is (FORMAT YOUR PC) and install the new xp operation system
You are on page 4 of 6, other pages: 1 2 3 [4] 5 6

 

 

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: