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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:09:17+00:00 2026-06-08T14:09:17+00:00

I built a console application that allows users to drag and drop files on

  • 0

I built a console application that allows users to drag and drop files on to it and it will process it. However, it crashes while it’s processing the file and I don’t know what’s going on.

How can I debug this? The console closes too fast for me to see what the issue was, and I can’t reproduce the error when I call it through command-line and specify some args there.

The procedure is as follows

  • In windows explorer, I drag my input file (an image) over an exe
  • The exe would then read the image and do something with it
  • I then save the image in a new file

The crash occurs during the saving, but I am not too interested in where the issue is, but the fact that I can’t come up with a way to actually debug this properly.

  • 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-08T14:09:19+00:00Added an answer on June 8, 2026 at 2:09 pm

    If your app is started automatically by some other program (like explorer) – configure Launch debugger on process start.

    Another simple way (when tweaking registry is not an option) is to add Debugger.Break in your code to have chance to attache debugger. Or even Thread.Sleep(10000) to give you chance to catch it.

    There is nothing very specific about drag-n-drop (unlike focus issues that often require remote debugging).

    Either start application form VS with correct parameter or attach to running appliction. You may want to turn on “Debug->Exception->break when thrown” for CLR exceptions (may need to disable “Tools->Options->Debug->My code only”).

    Watch output window while attached to the process for any suspicious traces.

    If VS is getting in a way you can use WinDbg the same way… But try VS route first before.

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

Sidebar

Related Questions

How do I built a console application that will convert all Excel 2003 templates
I've created a simple console Java application that is built with Maven. Is there
This is a Windows Console application (actually a service) that a previous guy built
I've built a console application that references version 4.3.2.1 of another dll we've built.
I have a console application that will be kicked off with a scheduler. If
I have built a console application that works okay when it references a .exe
I have a rails web application that allows users to run automated tasks with
I built a console application and built the solution, taking over the API to
I'm running a .NET remoting application built using .NET 2.0. It is a console
I have a console app built on .NET 4 that uses the HttpClient library

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.