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 8019549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:25:12+00:00 2026-06-04T21:25:12+00:00

Ok so I have this weird problem, and I’ve searched Google many times for

  • 0

Ok so I have this weird problem, and I’ve searched Google many times for an answer but to no avail… Anyways I have this problem where I can’t seem to get my program(s) to show me error messages when I want. This has happened on many occasions and eventually figure out that its a variable that’s null, but for some reason no error was thrown?

Here’s an example of one I just had.

Person clicks a button to show a new form called debug.

Debug debug = new Debug();
debug.Show(this);

And this was in my debug form.

public new void Show(IWin32Window owner)
{
    base.Show(owner);
    Parent.Move += new EventHandler(delegate(object sender, EventArgs e)
    {
        Location = new Point(Parent.Location.X + Parent.Width, Parent.Location.Y);
    });
}

Long story short, the code didn’t work because Parent was null but it never even hinted that was the problem.

I’m sure there some explanation but I have yet to find one in my Google searches…

  • 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-06-04T21:25:14+00:00Added an answer on June 4, 2026 at 9:25 pm

    You can also try the following in Visual Studio:

    1. Debug > Exceptions
    2. Expand the “Common Language Runtime Exceptions” entry
    3. Expand the “System” entry
    4. Click the checkbox for System.NullReferenceException
    5. Click OK
    6. Run your application with the debugger attached.

    It will now cause the debugger to break whenever a NullReferenceException is thrown.

    I would guess that either your Application is wrapped in a try{} catch{} or, somewhere at the base of the callstack that results in debug.Show() being called, the code is wrapped in a try{} catch{}

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

Sidebar

Related Questions

This is a weird problem. I have a solution for it, but I don't
Hi this may seem like a weird question, but here's my situation: I have
I have this weird problem where my Google Maps API script doesn't work, no
Hi I have this weird problem with Google Maps V3 API. Showing multiple markers
I have this weird gridview problem in .net, I haven't found what can be
I have this weird problem with setting up cookies with PHP. Everything worked fine
I have a weird problem, and I don't know if this is the default
this seems to be weird but it really happened. I have this code working
I have this weird problem as to how to name objects of a class.
I've tried searching high and low for the answer to this weird problem. My

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.