Results 1 to 5 of 5

Thread: debugger stops at application.Run on unhandled error

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    didn't decide yet
    Posts
    222

    debugger stops at application.Run on unhandled error

    when i get an unhadled error the dubbuger stops at the main procedure at -->"Application.Run(new Form1())" and the stack is empty. But if i run the application without the debuger a must more informative window pops up giving all the error info i want. How can i get the same behaviour when working inside the IDE

    thnks in advance
    Come and get our ISDN CallerID http://www.3wm.biz

  2. #2
    Junior Member
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    19

    Re: debugger stops at application.Run on unhandled error

    Use error handling like this :
    Code:
    Try
                    ' your code
     Catch ex As Exception
                    MessageBox.Show(ex.ToString)
    End Try

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    didn't decide yet
    Posts
    222

    Re: debugger stops at application.Run on unhandled error

    i know about that i just was wondwering if there is a way to achieve the the behaviour i stated without havind to write error handling statements for every line of code
    Come and get our ISDN CallerID http://www.3wm.biz

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: debugger stops at application.Run on unhandled error

    Quote Originally Posted by tolisss
    i know about that i just was wondwering if there is a way to achieve the the behaviour i stated without havind to write error handling statements for every line of code
    I've often thought of going on a "Clairvoyance For Beginners" training course for times like this.

    POST YOUR CODE!!!!
    I don't live here any more.

  5. #5
    Junior Member
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    19

    Re: debugger stops at application.Run on unhandled error

    put your whole code between the try en the catch, dan you wil see the line number of the code were the problem is.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width