1

Scenario of my problem is, I am working with three PCs , those are LIVE (OS Ver: Windows 2003 Server R2) , TEST (OS Ver: windows 2012 r2) and USER (OS Ver: Windows 7) PC respectively.

I have placed same applications in F-Drive of LIVE and TEST machines.

Trail - 1 : I mapped LIVE machine's F-Drive to USER PC and tried to run those Delphi6 application in USER PC. Ran well.

Trail - 2 : I mapped TEST machine's F-Drive to USER PC and tried to run those Delphi6 application in USER PC. Then only one application is running well and two of applications raising an error as "Runtime Error 217".

Thanks in advance.

12
  • 1
    @Remko: Nonsense. I have a Win2012 Server that acts as an application server for approximately 80 different LOB applications accessed by 50+ users and another 50 automated processes all day every day, running the executables from a common mapped network drive without any issues.
    – Ken White
    Jun 6, 2019 at 18:25
  • 1
    @ken And I have had lots of clients over the years who have had issues with running executables from network drives. Just because you have not had such issues does not mean they don't exist. IMAGE_FILE_NET_RUN_FROM_SWAP does of course change the ground rules. Jun 7, 2019 at 20:46
  • 1
    @David: So how does that make Remko's comment true? It's not a bad idea to run an executable from a network drive in general. Nitpick elsewhere.
    – Ken White
    Jun 7, 2019 at 20:48
  • 1
    @ken It is a bad idea to run from a network drive because netowkr drives are inherently less reliable than local drives. Jun 7, 2019 at 21:16
  • 1
    @David: Again, nonsense. A blanket statement that it's a bad idea to run from a network drive is simply wrong. Because problems can happen doesn't mean they'll always happen. I've got 30 years experience with app development on LANs, using Clipper and Delphi, using Netware and various Windows versions, and have seldom experienced issues (other than temporary ones, like when clueless IT staff rolled out a bad group policy that disabled Actvie Directory for a couple of hours until they fixed it). If your experience varies, maybe you're doing something wrong.
    – Ken White
    Jun 8, 2019 at 0:18

2 Answers 2

4

Runtime error 217 is thrown when an unhandled exception is raised before the exception handling framework is installed at startup, or after it is removed at shutdown.

As to why there is an unhandled exception you will need to do some debugging to find out.

1
  • Thanks - that "after it is removed at shutdown" comment led me to find an issue with otherwise untouched working code whose only change was that is now inside a thread.
    – GeoffM
    May 20, 2020 at 16:42
1

if your application uses Type Library, make sure to add in project file {$R *.TLB} to have it linked to executable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.