Results 1 to 11 of 11

Thread: Try...Catch block "pauses" while debugging

Threaded View

  1. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    72

    Re: Try... Catch block stops during debugging

    Pradeep, as Cicatrix says, the "OnValidate" event is a "default" one, i learned about it here:

    http://weblogs.asp.net/scottgu/archi...-database.aspx
    (See the "Custom Entity Object Validation Support" paragraph.
    The examples are in C#, but not so difficult to translate).

    I am using the same technique: the strange thing is that it does not break the program at runtime,
    but only while debugging.
    When it breaks, if I continue execution with F5, the program goes on without problems and executes
    the "MessageBox.Show(ex.Message)" line correctly.
    Last edited by axplains; Feb 8th, 2010 at 08:13 AM.

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