Results 1 to 13 of 13

Thread: [RESOLVED] Error List ?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Resolved [RESOLVED] Error List ?

    I gave my application to someone, and he installed it.

    He told me that he gets an "error 15".

    I looked in MSDN to find help on error 15, and I found the "Trappable Errors" list, but guess what ? error 15 is not listed !!!

    This is what is in the list of errors:
    Code:
    3 Return without GoSub 
    5 Invalid procedure call 
    6 Overflow 
    7 Out of memory 
    9 Subscript out of range 
    10 This array is fixed or temporarily locked 
    11 Division by zero 
    13 Type mismatch 
    14 Out of string space 
    16 Expression too complex 
    17 Can't perform requested operation
    .....
    .... etc....
    Where is 15 ? why it's missing ? and why other error codes are missing too ??

  2. #2
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Error List ?

    http://www.experts-exchange.com/Prog..._10082896.html has the same list and adds the note Any error # not in this list maps out to "Application Specific"

    HTH

  3. #3
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Error List ?

    Additionally, I suggest you write yourself some error handling code...take a look at http://www.visibleprogress.com/vb_error_handling.htm and I also have another idea for you to help you find out what this error is.

    At the start of form_load put "On Error savelogs" (I believe that should work...I personally don't use On Error :-))

    Now write yourself a function...addlogs (which adds a string you specify to the log string.

    It would look something like this:
    VB Code:
    1. private sub AddLogs(byval logstring as string)
    2. ErrLog = ErrLog & time & " - " & logstring & vbcrlf
    3. end sub
    Now in a module add "public ErrLog as string" - this makes the error log publicly available to all subs

    Now write a savelogs function, you would write this errlog to a file...I'll leave that up to you to work out.

    The last thing you need to do now is put lots of little addlog "stuff" into your program...after every section add one with a description of what's just been done or about to be done...when your friend runs it they'll get the error and it'll save the logs for you to look at to work out exactly where the error is...you then add in step-by-step addlogs so you can find out EXACTLY where the error is...you can even tell addlog to pass strings or numbers you're using in the program so you can see that all is as it should be...Hope THAT helps :-)

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error List ?

    Does your application deal with music files?

  5. #5
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Error List ?

    I would suggest including the Line numbers in your code and then use ERL to get the line of the line of code that is erroring out.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  6. #6
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Error List ?

    Quote Originally Posted by Shuja Ali
    I would suggest including the Line numbers in your code and then use ERL to get the line of the line of code that is erroring out.
    I didn't even know that was possible...if so it's better than my suggestion...mine is back from when I used to program in QB and worked wonders for me :-)

  7. #7
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Error List ?

    Quote Originally Posted by smUX
    I didn't even know that was possible...if so it's better than my suggestion...mine is back from when I used to program in QB and worked wonders for me :-)
    Well you still have to write the error handling code for this. I forgot to write it in my previous post.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  8. #8

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Error List ?

    Quote Originally Posted by Hack
    Does your application deal with music files?
    It deals with MANY things, including sound processing, the program is ~ 30000 lines, in 66 forms, modules and classes.

    Actually I did put line numbers, and I did put error handlers in almost every sub/function, but the guy just saw a message, and clicked OK, then told me it does not work. Quoting him: "(A pop up saying error 15 or something like that)."

    I just sent him an e-mail to send me a details on the message he gets, or a screen shot of the message. I made the program give the exact location of the error, as in the form, sub/function, line #, and error #, and description.

    At this point, I'm hoping that the error is in the sub/function that have error handler, because I did not set it in all the functions.

    I wanted to have an idea on the problem before I send the e-mail to him, that's why I looked for the description of the error, but I could not find it anywhere !

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error List ?

    Here are a couple of things I got from Google:

    http://service.real.com/help/errors/error15.html

    http://help.yahoo.com/help/us/launch...videos-23.html

    (Here is the entire Google search)

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Error List ?

    Since you did not put in the Google search "Visual Basic", my next question is:

    Are the error numbers a standard through all the programming languages ?

  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Error List ?

    Use
    VB Code:
    1. Err.Raise 15

  12. #12

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Error List ?

    Quote Originally Posted by penagate
    Use
    VB Code:
    1. Err.Raise 15
    Thanks, I just found out this too:
    VB Code:
    1. Debug.Print Error(15)
    Not much help though: "Application-defined or object-defined error"

    Weird, I did not code my program to raise errors...

    But anyways.... the problem is solved, the guy figured out that it was a file permission thing, the program could not write to a file. He set the neccessary permissions, and now it does not error anymore.

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error List ?

    Quote Originally Posted by CVMichael
    Since you did not put in the Google search "Visual Basic", my next question is:

    Are the error numbers a standard through all the programming languages ?
    I do not have a concrete answer for this, but my gut reaction would be no.

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