CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Error catching

  1. #1
    Join Date
    May 1999
    Posts
    23

    Error catching

    A class method Toto call Err.Raise ... .
    In my project, i have an object of this class and i call the Toto method :

    on error Goto Label
    Obj.Toto ...
    [...]
    Label:



    When i call Toto, and when an error occurs, the execution continues, and there's no jump to my Label.
    What's the solution ?

    Thanks !

    <KfR>

  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Error catching

    You don't mention if you are running this as an EXE or through the VB IDE. I suspect that you have the 'Break In Class Module' error handler switched on (see Tools->Options->General->Error Trapping).

    If this isn't the case, then is it possible that an error handler elsewhere in the TOTO class is capturing the error and acting on it ?



    Chris Eastwood

    CodeGuru - the website for developers
    http://www.codeguru.com/vb

  3. #3
    Join Date
    May 1999
    Posts
    23

    Re: Error catching

    I was running my app through the VB IDE with 'Break In Class Module' error handler switched on ...
    I switched it off ! And it works good !!

    Thanks a lot !!
    Regards.

    <KfR>

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

Featured