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

  • SEARCH
  • Home
  • 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 4619398
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:25:09+00:00 2026-05-22T02:25:09+00:00

There are two DLLs, A and B, in A.DLL there is a form class

  • 0

There are two DLLs, A and B, in A.DLL there is a form class like this:

namespace AAA
public class AForm: Form
{
  ...
  private void btnOK_Click(object sender, EventArgs e)
  {
      DoSomeSth();
  }
}

In B.DLL, there is some code like this

try
{
   AForm dlg = new AAA.AForm();
   dlg.ShowDialog();    
}
catch(Exception ex)
{
   MessageBox.Show(ex.Message);
}

There will be exception in the function DoSomeSth after OK button is clicked
When I debug the code using vs2005, the exception could be caught in B.DLL, but if I ran the application directly without debug, the exception won’t be caught in B.DLL, what is the reason?

  • 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-22T02:25:09+00:00Added an answer on May 22, 2026 at 2:25 am

    This is a known issue. According to the KB article:

    When you run your Windows Forms
    application without using the
    debugger, you use the
    NativeWindow.CallBack method to catch
    the exception and to prevent the
    program from unexpectedly quitting
    (crashing). In the
    NativeWindow.CallBack method, you
    populate the exception message by
    using a standard exception dialog box.

    However, if you run your Windows Forms
    application with the debugger, you do
    not catch the exception because you
    use the
    NativeWindow.DebuggableCallBack
    method. When you use the
    NativeWindow.DebuggableCallBack
    method, the just-in-time (JIT)
    debugger stops the application from
    running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that loads aaa.dll. aaa.dll loads two other dlls bbb.dll and
There are two questions to this: How can I best spread the word about
There are two ways to overload operators for a C++ class: Inside class class
There are two objects. The Windows Form with a button and a progress bar,
I was asking to do two dll calls from our application. These two dlls
I'm using (and referencing) two 3rd party dlls (a.dll, and b.dll) in two of
I have two DLLs: a.dll and b.dll and in each one I have one
Is there a way to view the difference between two binary DLL files? I
My one ASP.NET web site uses two different business object class libraries. There is
I have read a document that they say: In java there two types of

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.