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 5 of 6, other pages: 1 2 3 4 [5] 6
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.

suuri_ot@yahoo.com
2008-01-14, 13:06:40
xwatt15x@comcast.net from United States  
Hi, Im getting the error '217 at 02CF1722' Every time I close IE, could someone help me out? E-mail: Xwatt15x@comcast.net
2008-02-17, 18:05:21
marliese from Brazil  
rating
Hi...i need help for the error when i close my application:

Invalid Pointer Operation

Runtime error 217 at 00402848

Marlise
2008-03-25, 07:39:08   (updated: 2008-03-25, 07:39:56)
diquydiq@gmail.com from Netherlands  
Even sp1 for vista is no cure for this 'runtime error 217 at 0042900B'. ie just sucks!!!
2008-08-05, 16:01:56
anonymous from United States  
Does anyone know what a Runtime error 217 at 0666FD29 is? I get it whenever I close IE.
IF anyone knows, could you email me at dave.davehua@gmail.com
Thanks!
2009-02-19, 10:15:05
anonymous from United Kingdom  
just thought I'd add to this thread. Someone might benefit.

I've been developing an app in delphi 7 and was getting this problem.

We develop a COM+ multi tier app and in one of our units we have the following

uses
nxReplacementMemoryManager,
MidasMemPatch,
ComServ,

I commented out the nxReplacementMemoryManager

so the code looks like this :

uses
//nxReplacementMemoryManager,
MidasMemPatch,
ComServ,

when I ran the app and checked teh process I noticed 2 cpu charts because we run on a multi-core machine.

If I set the COM objects affinity to cpu 0 i.e to run on one processor/core

The issue goes away i.e. no more runtime 217.

I'm digging deeper into this problem but for now it looks like delphi's memory clean up and single core processing is the way to make this problem go away.



2009-02-19, 12:14:49
anonymous from Spain  
BUENAS TARDES, TENGO UN PROBLEMA. AL INTENTAR ABRIR ACER EMANAGER M SALE ERROR 217 AT 00494417. ALGUIEN ME PUEDE EXPLICAR QUE ERROR ES ESE? MUCHAS GRACIAS.

GOOD AFTERNOON. I HAVE A PROBLEM. WHEN I WANT TO OPEN ACER EMANAGER, IT APPEAR AN ERROR NAMED 217 AT 00494417. CAN YOU HELP ME??
2009-03-05, 07:57:31
anonymous from United Kingdom  
Just to extend my previous contribution.

remove the nexus memory manager and make sure that SysUtils is the first unit in the uses file.

2009-07-06, 13:56:35
[hidden] from São Paulo, Brazil  
rating
I was with the same problem of Marliese.But my case was very specific, because i was changing the dlls of the program to the main program and i needed to delete from uses the unit ShareMem.
I removed it and it works.

Sorry for my English

Good lucky for you
2010-01-08, 01:55:50
anonymous  
I get
runtime error 217 at 03F8FD2D
2010-03-04, 09:22:09
anonymous from United States  
rating
I'm developing in delphi7. My program ran fine on my machine, fine on the boss's machine, but gave the 217 error on the customer rep's machine. Turned out to be just some missing dll's on her machine.
2010-03-18, 10:48:16   (updated: 2010-03-18, 11:15:50)
anonymous  
I suddenly get 'Runtime error 217' when I'm trying to start MediaMonkey and DVBViewer under Windows 7 x64. No errors if I run those programs as administrator. I don't have Norton, any IE add-ons or memory tools installed.
2010-05-05, 02:44:03
Henryk from Poland  
Hi All,
I looking for solution how to detect collision of 2 components of form
each of them is in move by timer A from top to down
B from down to top (of form)
Collision in this situation should be then and only then when A tough B by its bottom side
Maybe there is some one to help me with?


My address : kallas555@wp.l
2012-02-25, 10:11:09   (updated: 2012-02-25, 10:11:53)
omarlogan from Mexico  
I have a some problem whit some program when i want to start to work appear this message error run time 217 at 005D8AES and deny the acces at the program some body could give me hand
You are on page 5 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: