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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:32:45+00:00 2026-05-19T17:32:45+00:00

My relatively simple Window Application seems to crash as soon as it gets to

  • 0

My relatively simple Window Application seems to crash as soon as it gets to the InitializeComponent method in the form’s constructor. Now the form is obviously a partial class and InitializeComponent is call to the method in the other part of the partial class.
Problem is that other partial class is generated. How do I go about debugging it and finding out which line is causing my app to crash. The application crashes with an error report dialog with very sparse details of the error. I cant debug the app through the IDE because the application only crashes on the deployment machine and loading vs2008 on that machine is out of the question. Please help.

  • 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-19T17:32:46+00:00Added an answer on May 19, 2026 at 5:32 pm

    Without more details it will be difficult to give you any specific suggestions.

    You might add an event handler to the application ThreadException to catch any unhandled exceptions. In the event handler I would log the exception, stacktrace, and any other relevant data you might have. If you are not using a logging framework of some kind then you can always use what’s available in the System.Diagnostics namespace (and the necessary additions to your app.config) in order to add some simple log output handling.

    The other thought I have is are you using non-MS provided UI libraries? If so, are they included with your application/installer. Assuming your app uses some and they aren’t included this could be the reason why it crashed in the InitializeComponent call.

    Update:
    Based upon your comments I’ve updated my answer. You can add code to the InitializeComponent method, just keep in mind it’s generated code so editing it does pose some risk. Dumb question but have you checked to make sure the constructor is even being called? The fact that it’s crashing the way you describe is typically an indicator that something fundamental to the app is missing/configured incorrectly on the target machine. You might also check the Windows Event Log on that machine to see if anything useful was entered there for you.

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

Sidebar

Related Questions

I am building a relatively simple Django application and apart from the main page
I have a relatively simple form which asks a variety of questions. One of
I have a relatively simple application which I need to make native Mac OSX
Creating a relatively simple data entry form, and just want to separate certain sections
Given a relatively simple CSS: div { width: 150px; } <div> 12333-2333-233-23339392-332332323 </div> How
My program generates relatively simple PDF documents on request, but I'm having trouble with
Is there a relatively simple way in nant, without writing a custom task, to
I have a relatively simple site that I'm working up for an intranet environment.
We have are relatively simple Reporting Services report that our users commonly export to
Is there a relatively simple way to change all the data in a JTable?

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.