Results 1 to 10 of 10

Thread: error catastropic failure

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2008
    Posts
    18

    Question error catastropic failure

    dear all VB-lovers........
    I had problems with my database program...... at error messages statement = catastropic failure......
    any one can describe it ? how to make this failure does not comes out anymore.....
    thanks for your times and willingness

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: error catastropic failure

    use an error handler to trap the error, then handle it in an appropriate way
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2008
    Posts
    18

    Cool Re: error catastropic failure

    thanks but the problem is : that I don't know the cause or by what that "catastropic failure" appears or happens..... I also check to literatur....vb for programmers ....." on error code " chapter...... there is no further information about that failure.....
    if I know what is the cause that failure or what the trigger (such as recordset conflict or connection conflict....or ?). I will know how to treat that errors..... any one can explain further information a bout "Catastropic Failure".....Thanks

  4. #4
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: error catastropic failure

    Track down the issue, by placing a breakpoint close, there the error will happen, then press the F8 key as long as the error will appear. You can see what variables containing values, so you will find out what is causing the failure.

    As the name stands for 'Catastrophic', the error should be a major (but unhandled) issue/error.

  5. #5
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: error catastropic failure

    This may help
    Get the Mztools vb addon and put line numbers in your subs then use:
    On error goto e

    e:
    Msgbox "Error Number " & err.Number, "Error description " & err.Description & "Line number " & Erl

    This may not work in your situation. if not i would put check points through out your code to determine where the problem is

    Msgbox "Check one"
    do stuff
    Msgbox "Check two"
    do stuff
    Msgbox "Check three"
    etc
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Nov 2008
    Posts
    18

    Re: error catastropic failure

    guys.... I've solved the trigger which make catastropic failure.... many heads better than one head..... thanks guys......

  7. #7
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: error catastropic failure

    Thanks for letting us know. You can help us now by pulling down the Thread Tools menu and selecting the Mark Thread Resolved item which will let everyone know that you have your answer.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Nov 2008
    Posts
    18

    Thumbs up Re: error catastropic failure

    the error : catastropic failure... that I've been through because of conflict adodb.recordset and dataenvironment recordset .... this is just my pre-asumption about this case ...... I'm not sure enough about exactly the cause that failure or maybe too early for me too judge the error from that I mention above...... perhaps some of senior vb programmer .... willing to confirm this case.... thankssss .... also I thank to all of you who had given advice to me ....

  9. #9
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: error catastropic failure

    I haven't used the DataEnvironment before, but using two data access technologies at the same time is likely to cause various issues, such as locking and corruption. Getting an odd error (such as the one you got) is not entirely unexpected.

    In this case both of your data access technologies are instances of ADODB, and I would normally assume that reduces (and maybe even eliminate) the chances for problems - unless the DataEnvironment modifies the objects in the connection/recordset collections (as it is bound, that is certainly possible!), in which case it would be much more likely to cause problems.

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Nov 2008
    Posts
    18

    Re: error catastropic failure

    well.... thanks si_the_geek .... the best things that we can do is to minimize errors ....... and leave 10 % things that we didn't know, maybe more such as bugs and others...... heheheheh

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