Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4322396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:52:04+00:00 2026-05-21T08:52:04+00:00

I have a Delphi 2010 DLL loaded in a Delphi 2010 app. It works

  • 0

I have a Delphi 2010 DLL loaded in a Delphi 2010 app. It works fine for the most of the time. But there are some exceptions that escapes from the DLL (even those that are treated by a try..except block) and my application crash with no error message, no information at all. The exceptions what I am talking about are like AV, not like the exceptions raised by the developer. I have tried loading the DLL with SafeLoadLibrary without luck. I also have the app and DLL source code. I am not posting the DLL or the app source code because I can’t, they are copyrighted (I really wish I could).

Is there anything I can do to avoid an internal DLL exception to crash my app?

EDIT

I have no way of not allowing the DLL to raise an exception. It can happens, not all codes are perfect. It may be inevitable that the dll raises an exception, but it should not crash the main app. Imagine, for example, that you are using a third party dll which you have no source code. Its not a good thing that when this dll crashs for some reason your main app get killed. It must have an way of not allowing that to happen.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T08:52:05+00:00Added an answer on May 21, 2026 at 8:52 am

    What you are asking for is not possible. DLL’s share the same memory space as the executing process. As such either can do things to cause the application to crash.

    You do have the correct idea, in that your DLL needs to do what it can. It needs to be a good citizen in the application process space.

    Some things you can do to be nice.

    • Wrap each exported function with a try/except block and handle the exceptions gracefully.
    • During testing use SafeMM to check for memory issues that you may have not have found otherwise.
    • Make sure your not passing Delphi Managed Types
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Delphi 2010 app which shows/hides the desktop icons under XP fine.
I have a Delphi application similar to Taskbar Shuffle that includes a hook dll.
I have a Delphi 2010 ADO program that has a DBGrid. Its dataset selects
does Delphi 2010 have C# Style XML comments that show up when hovering over
I have a Delphi 2007 Program, which calls a Delphi 2010 DLL. The Program
I am using Delphi 7 but I have trialed the Delphi 2005 - 2010
I have a Delphi 7 application that has two views of a document (e.g.
I have a Delphi DLL with a function defined as: function SubmitJobStringList(joblist: tStringList; var
I have a delphi (Win32) web application that can run either as a CGI
I have a Delphi 5 executable that calls into a .NET assembly via the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.