|
-
Jun 7th, 2006, 09:33 AM
#1
[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 ??
-
Jun 7th, 2006, 09:36 AM
#2
PowerPoster
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
-
Jun 7th, 2006, 09:47 AM
#3
PowerPoster
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:
private sub AddLogs(byval logstring as string)
ErrLog = ErrLog & time & " - " & logstring & vbcrlf
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 :-)
-
Jun 7th, 2006, 09:49 AM
#4
Re: Error List ?
Does your application deal with music files?
-
Jun 7th, 2006, 09:53 AM
#5
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
-
Jun 7th, 2006, 09:55 AM
#6
PowerPoster
Re: Error List ?
 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 :-)
-
Jun 7th, 2006, 10:02 AM
#7
Re: Error List ?
 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
-
Jun 7th, 2006, 10:11 AM
#8
Re: Error List ?
 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 !
-
Jun 7th, 2006, 10:28 AM
#9
-
Jun 7th, 2006, 10:31 AM
#10
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 ?
-
Jun 7th, 2006, 10:36 AM
#11
-
Jun 7th, 2006, 10:54 AM
#12
Re: Error List ?
 Originally Posted by penagate
Thanks, I just found out this too:
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.
-
Jun 7th, 2006, 10:56 AM
#13
Re: Error List ?
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|