DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2004
    Posts
    7

    Abnormal application termination

    Hello all of you!

    I have a strange problem and I need help to solve it.

    I have a windows application written in C# that sporadically terminates, no exceptions, no error codes, no messages at all. The application starts a new thread which sends information to the windows form via events. The thread uses USB-connected printers to print small paper-labels and a USB-CAN interface.

    Is it a thread related error? Deadlock? Stack overflow?

    Is it caused by a collision in the USB-interface?

    Hopfully, Daniel Carlson

  2. #2
    Join Date
    Dec 2003
    Location
    South Carolina
    Posts
    72
    1. Check the Event Viewer Application Log, sometimes .Net applications will toss an error message there.
    2. Do you have Try/Catch/Finally blocks around the code?
    3. Can you run the application from within the IDE and get the same issue?
    4. Have you tried running in Debug and/or Trace mode to catch additional information?
    Stephen H. Stubbs
    Software Systems Engineer
    Smith Engineering, LLC

  3. #3
    Join Date
    Jun 2004
    Posts
    93
    Try adding an application-level exception handler.
    Very easy to do in .Net
    See Application.ThreadExceptionHandler

  4. #4
    Join Date
    Dec 2004
    Posts
    7
    Quote Originally Posted by shstubbs
    1. Check the Event Viewer Application Log, sometimes .Net applications will toss an error message there.
    2. Do you have Try/Catch/Finally blocks around the code?
    3. Can you run the application from within the IDE and get the same issue?
    4. Have you tried running in Debug and/or Trace mode to catch additional information?
    1. No information here...
    2. Yes, I have a try/catch-block around the thread code block. No exceptions can be thrown from within the thread.
    3. Yes, sometimes I have noticed the same problem when runnig in the IDE.
    4. No more information when running in debug and/or by using trace...

  5. #5
    Join Date
    Dec 2004
    Posts
    7
    Quote Originally Posted by darren
    Try adding an application-level exception handler.
    Very easy to do in .Net
    See Application.ThreadExceptionHandler
    Thank you for this replay. As I can se no application-level exceptions are thrown.

Similar Threads

  1. Replies: 0
    Last Post: 11-25-2002, 11:09 PM
  2. Replies: 0
    Last Post: 11-25-2002, 11:05 PM
  3. Inventory Management Application Using VB
    By Krishna in forum vb.announcements
    Replies: 0
    Last Post: 11-25-2002, 11:03 PM
  4. Application Termination
    By Ryan G in forum .NET
    Replies: 1
    Last Post: 07-16-2002, 10:33 PM
  5. Re: Abnormal termination after compilation of exe with user control
    By Mark Alexander Bertenshaw in forum VB Classic
    Replies: 3
    Last Post: 03-16-2000, 06:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links